-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
@@ -156,6 +156,8 @@ pub const EFD_SEMAPHORE: ::c_int = 0x1; | |||
pub const EFD_NONBLOCK: ::c_int = 0x800; | |||
pub const EFD_CLOEXEC: ::c_int = 0x80000; | |||
|
|||
pub const POLLRDHUP: ::c_short = 0x4000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a revert of #3864.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are new.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert.
pub const O_CLOFORK: ::c_int = 0x4000000; | ||
|
||
pub const MSG_CMSG_CLOEXEC: ::c_int = 0x1000; | ||
pub const MSG_CMSG_CLOFORK: ::c_int = 0x2000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New.
@@ -305,6 +323,7 @@ extern "C" { | |||
stackaddr: *mut ::c_void, | |||
) -> ::c_int; | |||
|
|||
pub fn posix_fadvise(fd: ::c_int, offset: ::off_t, len: ::off_t, advice: ::c_int) -> ::c_int; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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/semver
have been updated*LAST
or*MAX
areincluded (see #3131)
cd libc-test && cargo test --target mytarget
);especially relevant for platforms that may not be checked in CI