Skip to content

Commit 5c55ee8

Browse files
committed
[illumos] add some recently-added constants
Constants added from [this commit]. [this commit]: illumos/illumos-gate@0250c53
1 parent 81f0cd3 commit 5c55ee8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

libc-test/semver/illumos.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
F_DUPFD_CLOFORK
2+
F_DUP2FD_CLOEXEC
3+
F_DUP2FD_CLOFORK
4+
F_DUP3FD
5+
FD_CLOFORK
6+
O_CLOFORK
17
O_RSYNC
28
POLLRDHUP
39
POSIX_FADV_DONTNEED

src/unix/solarish/illumos.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ pub const F_FLOCK: ::c_int = 53;
4545
pub const F_FLOCKW: ::c_int = 54;
4646

4747
pub const F_DUPFD_CLOEXEC: ::c_int = 37;
48+
pub const F_DUPFD_CLOFORK: ::c_int = 58;
4849
pub const F_DUP2FD_CLOEXEC: ::c_int = 36;
50+
pub const F_DUP2FD_CLOFORK: ::c_int = 57;
51+
pub const F_DUP3FD: ::c_int = 59;
52+
53+
pub const FD_CLOFORK: ::c_int = 2;
4954

5055
pub const FIL_ATTACH: ::c_int = 0x1;
5156
pub const FIL_DETACH: ::c_int = 0x2;
@@ -56,8 +61,13 @@ pub const FILF_AUTO: ::c_int = 0x2;
5661
pub const FILF_BYPASS: ::c_int = 0x4;
5762
pub const SOL_FILTER: ::c_int = 0xfffc;
5863

64+
pub const O_CLOFORK: ::c_int = 0x4000000;
65+
5966
pub const MADV_PURGE: ::c_int = 9;
6067

68+
pub const MSG_CMSG_CLOEXEC: ::c_int = 0x1000;
69+
pub const MSG_CMSG_CLOFORK: ::c_int = 0x2000;
70+
6171
pub const POSIX_FADV_NORMAL: ::c_int = 0;
6272
pub const POSIX_FADV_RANDOM: ::c_int = 1;
6373
pub const POSIX_FADV_SEQUENTIAL: ::c_int = 2;

0 commit comments

Comments
 (0)