Skip to content

Commit

Permalink
Auto merge of rust-lang#920 - glaubitz:sparc64, r=alexcrichton
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Feb 17, 2018
2 parents a4fb64a + a9cddbc commit 88c33d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/notbsd/linux/other/b64/sparc64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub const O_DSYNC: ::c_int = 0x2000;
pub const O_FSYNC: ::c_int = 0x802000;
pub const O_NOATIME: ::c_int = 0x200000;
pub const O_PATH: ::c_int = 0x1000000;
pub const O_TMPFILE: ::c_int = 0o200000000 | O_DIRECTORY;
pub const O_TMPFILE: ::c_int = 0x2000000 | O_DIRECTORY;

pub const MAP_GROWSDOWN: ::c_int = 0x0200;

Expand Down

0 comments on commit 88c33d4

Please sign in to comment.