Skip to content

Commit 44034f0

Browse files
committed
Auto merge of #644 - roblabla:feature-missing-SO_PASSCRED-arm, r=alexcrichton
Add missing flags in glibc arm Adds two missing flags that are defined everywhere except for arm-linux-gnueabi for some reason : SO_PASSCRED and SO_SNDBUFFORCE. Also adds MAP_32BIT on x86_64-linux-android and i686-linux-android.
2 parents ce93306 + 0ea2040 commit 44034f0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/unix/notbsd/android/b32/x86.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ pub type wchar_t = i32;
44
pub const O_DIRECT: ::c_int = 0x4000;
55
pub const O_DIRECTORY: ::c_int = 0x10000;
66
pub const O_NOFOLLOW: ::c_int = 0x20000;
7+
8+
pub const MAP_32BIT: ::c_int = 0x40;

src/unix/notbsd/android/b64/x86_64.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ pub const SYS_gettid: ::c_long = 186;
5151

5252
pub const SIGSTKSZ: ::size_t = 8192;
5353
pub const MINSIGSTKSZ: ::size_t = 2048;
54+
55+
pub const MAP_32BIT: ::c_int = 0x40;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ pub const MAP_NORESERVE: ::c_int = 0x04000;
8181

8282
pub const EDEADLOCK: ::c_int = 35;
8383

84+
pub const SO_PASSCRED: ::c_int = 16;
8485
pub const SO_PEERCRED: ::c_int = 17;
8586
pub const SO_RCVLOWAT: ::c_int = 18;
8687
pub const SO_SNDLOWAT: ::c_int = 19;
8788
pub const SO_RCVTIMEO: ::c_int = 20;
8889
pub const SO_SNDTIMEO: ::c_int = 21;
90+
pub const SO_SNDBUFFORCE: ::c_int = 32;
8991

9092
pub const FIOCLEX: ::c_ulong = 0x5451;
9193
pub const FIONBIO: ::c_ulong = 0x5421;

0 commit comments

Comments
 (0)