-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add resolv #4618
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?
Add resolv #4618
Conversation
c82667c
to
a67b6e7
Compare
several things at quick glance :
hope it helps (hopefully it will pass on android :) do not have the sdk and nothing set to check it). |
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.
What exactly is the linking story here, by the way? Are the symbols always distributed with the libc binary?
@@ -2062,6 +2067,45 @@ extern "C" { | |||
|
|||
pub fn getdomainname(name: *mut c_char, len: size_t) -> c_int; | |||
pub fn setdomainname(name: *const c_char, len: size_t) -> c_int; | |||
|
|||
// <resolv.h> | |||
#[allow(dead_code)] |
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 shouldn't be needed
pub fn res_mkquery( | ||
op: c_int, | ||
dname: *const c_char, | ||
class: c_int, | ||
kind: c_int, | ||
data: *mut c_char, | ||
newrr: *const c_void, | ||
datalen: c_int, | ||
buf: *mut c_char, | ||
buflen: 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.
This doesn't seem to match the definitions linked at #4611: those have data
as const
and followed by an integer
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.
also few arguments misplacements see above my comment and on linux it should be linked to libresolv.
Description
See #4611
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
@rustbot label +stable-nominated