illumos: add some recently-added constants#3999
Conversation
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use |
|
☔ The latest upstream changes (presumably #3864) made this pull request unmergeable. Please resolve the merge conflicts. |
5c55ee8 to
e7b463f
Compare
|
@JohnTitor libc on illumos is currently missing some items accidentally removed in #3864. Could you accept this with a high priority? |
|
@rustbot label stable-nominated |
| pub const EFD_NONBLOCK: ::c_int = 0x800; | ||
| pub const EFD_CLOEXEC: ::c_int = 0x80000; | ||
|
|
||
| pub const POLLRDHUP: ::c_short = 0x4000; |
| pub const F_DUPFD_CLOFORK: ::c_int = 58; | ||
| pub const F_DUP2FD_CLOEXEC: ::c_int = 36; | ||
| pub const F_DUP2FD_CLOFORK: ::c_int = 57; | ||
| pub const F_DUP3FD: ::c_int = 59; | ||
|
|
||
| pub const FD_CLOFORK: ::c_int = 2; |
| pub const POSIX_FADV_NORMAL: ::c_int = 0; | ||
| pub const POSIX_FADV_RANDOM: ::c_int = 1; | ||
| pub const POSIX_FADV_SEQUENTIAL: ::c_int = 2; | ||
| pub const POSIX_FADV_WILLNEED: ::c_int = 3; | ||
| pub const POSIX_FADV_DONTNEED: ::c_int = 4; | ||
| pub const POSIX_FADV_NOREUSE: ::c_int = 5; |
| pub const O_CLOFORK: ::c_int = 0x4000000; | ||
|
|
||
| pub const MSG_CMSG_CLOEXEC: ::c_int = 0x1000; | ||
| pub const MSG_CMSG_CLOFORK: ::c_int = 0x2000; |
| stackaddr: *mut ::c_void, | ||
| ) -> ::c_int; | ||
|
|
||
| pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advice: ::c_int) -> ::c_int; |
tgross35
left a comment
There was a problem hiding this comment.
This looks good to me, I'll give a couple of days for somebody from the solarish pings to double check.
|
I haven't checked the specifics (it's been a rough week!) but I vouch for @sunshowers and we should proceed! |
|
Works for me, thanks for the ack! |
[illumos] add some recently-added constants
|
Apologies. I missed a few items in illumos.txt. Will put up a PR for that shortly. |
|
No problem, you can just update that here |
e7b463f to
bba9595
Compare
|
All right, good to go, sorry about the churn! I'm also working on getting build time libc CI on illumos, which would have caught the regression. |
Not a problem! Thanks for the quick fix.
That would be awesome 👍 |
Constants added from [this commit]. [this commit]: illumos/illumos-gate@0250c53
bba9595 to
e2a23f0
Compare
Constants added from [this commit]. [this commit]: illumos/illumos-gate@0250c53 Additionally, resolves some issues introduced in ec3c338 ("Fix tests on Solaris"). [ add note about fixing ec3c338 - Trevor ] (backport <rust-lang#3999>) (cherry picked from commit e2a23f0)
Constants added from [this commit]. [this commit]: illumos/illumos-gate@0250c53 Additionally, resolves some issues introduced in ec3c338 ("Fix tests on Solaris"). [ add note about fixing ec3c338 - Trevor ] (backport <rust-lang#3999>) (cherry picked from commit e2a23f0)
Constants added from [this commit]. [this commit]: illumos/illumos-gate@0250c53 Additionally, resolves some issues introduced in ec3c338 ("Fix tests on Solaris"). [ add note about fixing ec3c338 - Trevor ] (backport <rust-lang#3999>) (cherry picked from commit e2a23f0)
Constants added from [this commit]. [this commit]: illumos/illumos-gate@0250c53 Additionally, resolves some issues introduced in ec3c338 ("Fix tests on Solaris"). [ add note about fixing ec3c338 - Trevor ] (backport <rust-lang#3999>) (cherry picked from commit e2a23f0)
Constants added from [this commit]. [this commit]: illumos/illumos-gate@0250c53 Additionally, resolves some issues introduced in ec3c338 ("Fix tests on Solaris"). [ add note about fixing ec3c338 - Trevor ] (backport <rust-lang#3999>) (cherry picked from commit e2a23f0)
Description
Constants added from the commit linked below.
Also restored items accidentally deleted in #3864.
Sources
illumos/illumos-gate@0250c53 -- this commit to illumos-gate also includes documentation.
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI