Skip to content

Commit e2a23f0

Browse files
sunshowerstgross35
authored andcommitted
[illumos] add some recently-added constants
Constants added from [this commit]. [this commit]: illumos/illumos-gate@0250c53
1 parent 94c7cae commit e2a23f0

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

libc-test/semver/illumos.txt

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
F_DUPFD_CLOFORK
2+
F_DUP2FD_CLOEXEC
3+
F_DUP2FD_CLOFORK
4+
F_DUP3FD
5+
FD_CLOFORK
6+
MSG_CMSG_CLOEXEC
7+
MSG_CMSG_CLOFORK
8+
O_CLOFORK
19
O_RSYNC
210
POLLRDHUP
311
POSIX_FADV_DONTNEED

src/unix/solarish/illumos.rs

+19
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ pub const EFD_SEMAPHORE: ::c_int = 0x1;
156156
pub const EFD_NONBLOCK: ::c_int = 0x800;
157157
pub const EFD_CLOEXEC: ::c_int = 0x80000;
158158

159+
pub const POLLRDHUP: ::c_short = 0x4000;
160+
159161
pub const TCP_KEEPIDLE: ::c_int = 34;
160162
pub const TCP_KEEPCNT: ::c_int = 35;
161163
pub const TCP_KEEPINTVL: ::c_int = 36;
@@ -171,7 +173,12 @@ pub const F_FLOCK: ::c_int = 53;
171173
pub const F_FLOCKW: ::c_int = 54;
172174

173175
pub const F_DUPFD_CLOEXEC: ::c_int = 37;
176+
pub const F_DUPFD_CLOFORK: ::c_int = 58;
174177
pub const F_DUP2FD_CLOEXEC: ::c_int = 36;
178+
pub const F_DUP2FD_CLOFORK: ::c_int = 57;
179+
pub const F_DUP3FD: ::c_int = 59;
180+
181+
pub const FD_CLOFORK: ::c_int = 2;
175182

176183
pub const FIL_ATTACH: ::c_int = 0x1;
177184
pub const FIL_DETACH: ::c_int = 0x2;
@@ -184,9 +191,20 @@ pub const SOL_FILTER: ::c_int = 0xfffc;
184191

185192
pub const MADV_PURGE: ::c_int = 9;
186193

194+
pub const POSIX_FADV_NORMAL: ::c_int = 0;
195+
pub const POSIX_FADV_RANDOM: ::c_int = 1;
196+
pub const POSIX_FADV_SEQUENTIAL: ::c_int = 2;
197+
pub const POSIX_FADV_WILLNEED: ::c_int = 3;
198+
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
199+
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
200+
187201
pub const SIGINFO: ::c_int = 41;
188202

189203
pub const O_DIRECT: ::c_int = 0x2000000;
204+
pub const O_CLOFORK: ::c_int = 0x4000000;
205+
206+
pub const MSG_CMSG_CLOEXEC: ::c_int = 0x1000;
207+
pub const MSG_CMSG_CLOFORK: ::c_int = 0x2000;
190208

191209
pub const PBIND_HARD: ::processorid_t = -3;
192210
pub const PBIND_SOFT: ::processorid_t = -4;
@@ -305,6 +323,7 @@ extern "C" {
305323
stackaddr: *mut ::c_void,
306324
) -> ::c_int;
307325

326+
pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advice: ::c_int) -> ::c_int;
308327
pub fn preadv(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t) -> ::ssize_t;
309328
pub fn pwritev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t)
310329
-> ::ssize_t;

0 commit comments

Comments
 (0)