-
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
Declare setdomainname
and getdomainname
on Android.
#4212
base: main
Are you sure you want to change the base?
Conversation
Use weak `setdomainname` only for android; remove this special case once [libc#4212] is merged. [libc#4212]: rust-lang/libc#4212
Changes lgtm, but could you instead add this to @maurer could you double check this? |
LGTM, these two functions are in fact available since API level 26. Not aware of any special caveats for Android here other than that apps don't have |
Actually sorry, one request - since all |
Android [supports] `setdomainname` and `getdomainname` in API level 26. [supports] https://github.com/aosp-google/bionic/blob/28f9101d76b709febe25977f98530d77580387d1/libc/include/unistd.h#L236
Which semver file corresponds to "linux_like"? Is it linux.txt? I can't tell whether that's used for Android or not. |
Ah you're right, we don't have one for (this test setup needs improvement at some point...) |
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.
Thanks!
Description
Declare
setdomainname
andgetdomainname
on Android.Sources
Android [supports]
setdomainname
andgetdomainname
in API level 26.[supports] https://github.com/aosp-google/bionic/blob/28f9101d76b709febe25977f98530d77580387d1/libc/include/unistd.h#L236
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