Skip to content

Conversation

@alexcrichton
Copy link
Member

Collections of a few other PRs to all land at once.

Should also hopefully help out the MIPS situation

semarie and others added 29 commits December 23, 2015 11:03
- under openbsd and bitrig: dli_saddr member is *mut ::c_void
- under netbsd: it is *const ::c_void
- IPV6_{ADD,DROP}_MEMBERSHIP
- HW_AVAILCPU
- same prototype on bitrig and openbsd
- for netbsd, I did found it at all (?)
- sysctl: *mut -> *const
- mprotect: *const -> *mut
- remove sysctlbyname() that don't exists under openbsd
arguments `hostlen' and `servlen' are `socklen_t' or `size_t' depending
the platform

- apple: I don't known, so I don't change the original definition (socklen_t)
- netbsd: socklen_t
- freebsd: size_t
- dragonfly: size_t
- openbsd: size_t
- bitrig: size_t
under openbsd it is a `caddr_t` which expand to `char *`.
as the size of the type change, adjust the padding too.
- under openbsd/bitrig it is 256
- change type to `size_t` where system have `getnameinfo()` with
  `hostlen` as `size_t`
SYS_entropy is internal and may more easily change than getentropy(2).
Signed-off-by: David Henningsson <[email protected]>
The `net2` crate currently fails to cross-compile to Android with
``error: unresolved name `libc::SO_REUSEPORT` ``

According to http://stackoverflow.com/a/14388707/1162888,
Android is essentially the same as Linux for the purpose of
socket features support, and the Linux kernel has supported
`SO_REUSEPORT` since version 3.9.

According to http://android.stackexchange.com/a/51656,
Android has had more recent kernels than that since version 4.4 Kit Kat.
alexcrichton added a commit that referenced this pull request Jan 11, 2016
Merging a number of PRs into one
@alexcrichton alexcrichton merged commit 0ba8571 into rust-lang:master Jan 11, 2016
@alexcrichton alexcrichton deleted the merge branch January 11, 2016 23:31
danielverkamp pushed a commit to danielverkamp/libc that referenced this pull request Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants