-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix the types of constants used for the 'request' argument of ioctl() on AIX #4582
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
Conversation
libc-test/build.rs
Outdated
@@ -5593,6 +5593,21 @@ fn test_aix(target: &str) { | |||
// values because non-unique values are being used which will | |||
// fail the test when _ALL_SOURCE is defined. | |||
"EWOULDBLOCK" | "ENOTEMPTY" => true, | |||
|
|||
// These constants are intended for use as the 'int request' argument to 'ioctl()'. |
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.
Could you make this comment FIXME(ctest)
? Because if it's an issue that only shows up during tests but not in C, presumably we could do some better validation on our end.
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.
Could you make this comment
FIXME(ctest)
? Because if it's an issue that only shows up during tests but not in C, presumably we could do some better validation on our end.
Good point! Thanks!
ffd8efe
to
3c84eb6
Compare
I assume this is because BSD and Linux use |
@rustbot label +stable-nominated |
…octl()'. (backport <rust-lang#4582>) (cherry picked from commit 3c84eb6)
Description
The
request
argument of theioctl()
function has typec_int
, but the associated constants were mistakenly defined asc_long
due to an oversight on my part.Sources
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