Skip to content

Commit 2c10c4c

Browse files
committed
Add FIONCLEX for Linux
1 parent 2293748 commit 2c10c4c

File tree

21 files changed

+21
-0
lines changed

21 files changed

+21
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,7 @@ pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2;
785785
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL;
786786

787787
pub const FIOCLEX: ::c_int = 0x5451;
788+
pub const FIONCLEX: ::c_int = 0x5450;
788789

789790
pub const SIGCHLD: ::c_int = 17;
790791
pub const SIGBUS: ::c_int = 7;

src/unix/linux_like/linux/gnu/b32/arm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ pub const SOCK_STREAM: ::c_int = 1;
322322
pub const SOCK_DGRAM: ::c_int = 2;
323323

324324
pub const FIOCLEX: ::c_ulong = 0x5451;
325+
pub const FIONCLEX: ::c_ulong = 0x5450;
325326
pub const FIONBIO: ::c_ulong = 0x5421;
326327

327328
pub const MCL_CURRENT: ::c_int = 0x0001;

src/unix/linux_like/linux/gnu/b32/mips.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ pub const SO_ATTACH_BPF: ::c_int = 50;
698698
pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER;
699699

700700
pub const FIOCLEX: ::c_ulong = 0x6601;
701+
pub const FIONCLEX: ::c_ulong = 0x6602;
701702
pub const FIONBIO: ::c_ulong = 0x667e;
702703

703704
pub const SA_SIGINFO: ::c_int = 0x00000008;

src/unix/linux_like/linux/gnu/b32/powerpc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ pub const SOCK_STREAM: ::c_int = 1;
324324
pub const SOCK_DGRAM: ::c_int = 2;
325325

326326
pub const FIOCLEX: ::c_ulong = 0x20006601;
327+
pub const FIONCLEX: ::c_ulong = 0x20006602;
327328
pub const FIONBIO: ::c_ulong = 0x8004667e;
328329

329330
pub const MCL_CURRENT: ::c_int = 0x2000;

src/unix/linux_like/linux/gnu/b32/x86.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ pub const F_GETOWN: ::c_int = 9;
529529
pub const F_SETOWN: ::c_int = 8;
530530

531531
pub const FIOCLEX: ::c_ulong = 0x5451;
532+
pub const FIONCLEX: ::c_ulong = 0x5450;
532533
pub const FIONBIO: ::c_ulong = 0x5421;
533534

534535
pub const PTRACE_GETFPXREGS: ::c_uint = 18;

src/unix/linux_like/linux/gnu/b64/aarch64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ pub const MAP_HUGETLB: ::c_int = 0x040000;
529529
pub const EDEADLOCK: ::c_int = 35;
530530

531531
pub const FIOCLEX: ::c_ulong = 0x5451;
532+
pub const FIONCLEX: ::c_ulong = 0x5450;
532533
pub const FIONBIO: ::c_ulong = 0x5421;
533534

534535
pub const MCL_CURRENT: ::c_int = 0x0001;

src/unix/linux_like/linux/gnu/b64/mips64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,7 @@ pub const SO_ATTACH_BPF: ::c_int = 50;
785785
pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER;
786786

787787
pub const FIOCLEX: ::c_ulong = 0x6601;
788+
pub const FIONCLEX: ::c_ulong = 0x6602;
788789
pub const FIONBIO: ::c_ulong = 0x667e;
789790

790791
pub const SA_ONSTACK: ::c_int = 0x08000000;

src/unix/linux_like/linux/gnu/b64/powerpc64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ pub const EISNAM: ::c_int = 120;
545545
pub const EREMOTEIO: ::c_int = 121;
546546

547547
pub const FIOCLEX: ::c_ulong = 0x20006601;
548+
pub const FIONCLEX: ::c_ulong = 0x20006602;
548549
pub const FIONBIO: ::c_ulong = 0x8004667e;
549550

550551
pub const MCL_CURRENT: ::c_int = 0x2000;

src/unix/linux_like/linux/gnu/b64/s390x.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ pub const ENOSYS: ::c_int = 38;
333333
pub const ENOTCONN: ::c_int = 107;
334334
pub const ETIMEDOUT: ::c_int = 110;
335335
pub const FIOCLEX: ::c_ulong = 0x5451;
336+
pub const FIONCLEX: ::c_ulong = 0x5450;
336337
pub const FIONBIO: ::c_ulong = 0x5421;
337338
pub const O_APPEND: ::c_int = 1024;
338339
pub const O_CREAT: ::c_int = 64;

src/unix/linux_like/linux/gnu/b64/sparc64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ pub const SO_RCVTIMEO: ::c_int = 0x2000;
497497
pub const SO_SNDTIMEO: ::c_int = 0x4000;
498498

499499
pub const FIOCLEX: ::c_ulong = 0x20006601;
500+
pub const FIONCLEX: ::c_ulong = 0x20006602;
500501
pub const FIONBIO: ::c_ulong = 0x8004667e;
501502

502503
pub const MCL_CURRENT: ::c_int = 0x2000;

0 commit comments

Comments
 (0)