Skip to content

Commit 8fe5875

Browse files
committed
Fix O_TMPFILE const for sparc64-unknown-linux-gnu
1 parent 6fa3870 commit 8fe5875

File tree

9 files changed

+8
-1
lines changed

9 files changed

+8
-1
lines changed

src/unix/notbsd/linux/mips/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ pub const O_TRUNC: ::c_int = 512;
5050
pub const O_NOATIME: ::c_int = 0o1000000;
5151
pub const O_CLOEXEC: ::c_int = 0x80000;
5252
pub const O_PATH: ::c_int = 0o10000000;
53+
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
5354

5455
pub const EBFONT: ::c_int = 59;
5556
pub const ENOSTR: ::c_int = 60;

src/unix/notbsd/linux/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,6 @@ pub const ENOATTR: ::c_int = ::ENODATA;
10241024
pub const SO_ORIGINAL_DST: ::c_int = 80;
10251025
pub const IUTF8: ::tcflag_t = 0x00004000;
10261026
pub const CMSPAR: ::tcflag_t = 0o10000000000;
1027-
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
10281027

10291028
f! {
10301029
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {

src/unix/notbsd/linux/musl/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ pub const NCCS: usize = 32;
9090
pub const O_TRUNC: ::c_int = 512;
9191
pub const O_NOATIME: ::c_int = 0o1000000;
9292
pub const O_CLOEXEC: ::c_int = 0x80000;
93+
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
9394

9495
pub const EBFONT: ::c_int = 59;
9596
pub const ENOSTR: ::c_int = 60;

src/unix/notbsd/linux/other/b32/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ pub const O_DSYNC: ::c_int = 4096;
8787
pub const O_FSYNC: ::c_int = 0x101000;
8888
pub const O_NOATIME: ::c_int = 0o1000000;
8989
pub const O_PATH: ::c_int = 0o10000000;
90+
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
9091

9192
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
9293

src/unix/notbsd/linux/other/b64/aarch64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ pub const O_DSYNC: ::c_int = 4096;
145145
pub const O_FSYNC: ::c_int = 0x101000;
146146
pub const O_NOATIME: ::c_int = 0o1000000;
147147
pub const O_PATH: ::c_int = 0o10000000;
148+
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
148149

149150
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
150151

src/unix/notbsd/linux/other/b64/powerpc64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ pub const O_DSYNC: ::c_int = 4096;
132132
pub const O_FSYNC: ::c_int = 0x101000;
133133
pub const O_NOATIME: ::c_int = 0o1000000;
134134
pub const O_PATH: ::c_int = 0o10000000;
135+
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
135136

136137
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
137138

src/unix/notbsd/linux/other/b64/sparc64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ pub const O_DSYNC: ::c_int = 0x2000;
145145
pub const O_FSYNC: ::c_int = 0x802000;
146146
pub const O_NOATIME: ::c_int = 0x200000;
147147
pub const O_PATH: ::c_int = 0x1000000;
148+
pub const O_TMPFILE: ::c_int = 0o200000000 | O_DIRECTORY;
148149

149150
pub const MAP_GROWSDOWN: ::c_int = 0x0200;
150151

src/unix/notbsd/linux/other/b64/x86_64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ pub const O_DSYNC: ::c_int = 4096;
249249
pub const O_FSYNC: ::c_int = 0x101000;
250250
pub const O_NOATIME: ::c_int = 0o1000000;
251251
pub const O_PATH: ::c_int = 0o10000000;
252+
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
252253

253254
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
254255

src/unix/notbsd/linux/s390x.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ pub const O_LARGEFILE: ::c_int = 0;
327327
pub const O_NOATIME: ::c_int = 0o1000000;
328328
pub const O_CLOEXEC: ::c_int = 0x80000;
329329
pub const O_PATH: ::c_int = 0o10000000;
330+
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
330331

331332
pub const EBFONT: ::c_int = 59;
332333
pub const ENOSTR: ::c_int = 60;

0 commit comments

Comments
 (0)