Skip to content

Commit 88c33d4

Browse files
committed
Auto merge of #920 - glaubitz:sparc64, r=alexcrichton
Prefer hexadecimal representation of O_TMPFILE on linux-sparc64 While working on the libc bindings for sparc-linux, I stumbled across this typo in the O_TMPFILE definition on linux-sparc64. Compare with: > https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/sparc/bits/fcntl.h;hb=16efad5171ac1ac2c8728405f2703045f08c494b#l42 > https://sources.debian.org/src/glibc/2.26-6/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h/#L42 CC @jrtc27
2 parents a4fb64a + a9cddbc commit 88c33d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +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;
148+
pub const O_TMPFILE: ::c_int = 0x2000000 | O_DIRECTORY;
149149

150150
pub const MAP_GROWSDOWN: ::c_int = 0x0200;
151151

0 commit comments

Comments
 (0)