Skip to content

Commit 6ab0359

Browse files
committed
Auto merge of #2900 - gco:master, r=JohnTitor
fcntl F_DUPFD_CLOEXEC has different values on Solaris and Illumos
2 parents 9667d5f + 89aacef commit 6ab0359

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/unix/solarish/illumos.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ pub const F_OFD_SETLKW: ::c_int = 49;
4242
pub const F_FLOCK: ::c_int = 53;
4343
pub const F_FLOCKW: ::c_int = 54;
4444

45+
pub const F_DUPFD_CLOEXEC: ::c_int = 37;
46+
pub const F_DUP2FD_CLOEXEC: ::c_int = 36;
47+
4548
pub const FIL_ATTACH: ::c_int = 0x1;
4649
pub const FIL_DETACH: ::c_int = 0x2;
4750
pub const FIL_LIST: ::c_int = 0x3;

src/unix/solarish/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,6 @@ pub const F_LOCK: ::c_int = 1;
13271327
pub const F_TEST: ::c_int = 3;
13281328
pub const F_TLOCK: ::c_int = 2;
13291329
pub const F_ULOCK: ::c_int = 0;
1330-
pub const F_DUPFD_CLOEXEC: ::c_int = 37;
13311330
pub const F_SETLK: ::c_int = 6;
13321331
pub const F_SETLKW: ::c_int = 7;
13331332
pub const F_GETLK: ::c_int = 14;
@@ -1601,7 +1600,6 @@ pub const NI_NUMERICSCOPE: ::c_uint = 0x0040;
16011600

16021601
pub const F_DUPFD: ::c_int = 0;
16031602
pub const F_DUP2FD: ::c_int = 9;
1604-
pub const F_DUP2FD_CLOEXEC: ::c_int = 36;
16051603
pub const F_GETFD: ::c_int = 1;
16061604
pub const F_SETFD: ::c_int = 2;
16071605
pub const F_GETFL: ::c_int = 3;

src/unix/solarish/solaris.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ pub const TCP_KEEPIDLE: ::c_int = 0x1d;
3636
pub const TCP_KEEPCNT: ::c_int = 0x1e;
3737
pub const TCP_KEEPINTVL: ::c_int = 0x1f;
3838

39+
pub const F_DUPFD_CLOEXEC: ::c_int = 47;
40+
pub const F_DUPFD_CLOFORK: ::c_int = 49;
41+
pub const F_DUP2FD_CLOEXEC: ::c_int = 48;
42+
pub const F_DUP2FD_CLOFORK: ::c_int = 50;
43+
3944
extern "C" {
4045
pub fn fexecve(
4146
fd: ::c_int,

0 commit comments

Comments
 (0)