-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix makedev function signature on Apple targets #4377
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
base: main
Are you sure you want to change the base?
Conversation
42c0376 to
8bf8de8
Compare
|
This lgtm, but any reason not to also fix |
|
@tgross35 Oh, right. They're not even using |
8bf8de8 to
4159fb5
Compare
|
Well, I just noticed the functions are only compiled for C++. C still uses those macros which are more loosely defined. Not sure that's reason enough to deviate from the type signatures even if they're questionable. |
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.
Going through old PRs, sorry I missed this one. I think this change is worth making even if they use untyped macros, given this makes Apple match all the other platforms. We still can't backport unfortunately due to breakage, but this would be good to have for 1.0.
Would you be able to rebase?
4159fb5 to
e14dee5
Compare
This comment has been minimized.
This comment has been minimized.
e14dee5 to
f480703
Compare
This comment has been minimized.
This comment has been minimized.
Done. :) |
f480703 to
d1cbeb6
Compare
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.
LGTM, thank you! I think you may need to rebase so CI actually passes
d1cbeb6 to
b1142b4
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Description
Fix the makedev function signature according to actual implementation:
https://github.com/apple-oss-distributions/xnu/blob/8d741a5de7ff4191bf97d57b9f54c2f6d4a15585/bsd/sys/types.h#L154
https://developer.apple.com/documentation/kernel/1547212-makedev
Issue: #4360
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