Add some permission and misc (mostly 'mode_t' related) constants to Redox.
Hi!
While porting some software ((exa)[https://github.com/ogham/exa])to Redox I found these missing constants.
Cheers!
//cc @ids1024 @jackpot51
struct addrinfo needs padding on Solaris/SPARC
64-bit Solaris/SPARC has a 4-byte pad before `ai_addrlen` for historical reasons (`ai_addrlen` used to be defined as a `size_t`, which is 4 bytes in ILP32 and 8 in LP64, but was converted to a 4-byte `socklen_t` in Solaris 10, which necessitated padding for (more or less) binary compatibility).
See rust-lang/rust#43649.
64-bit Solaris/SPARC has a 4-byte pad before ai_addrlen for historical
reasons (ai_addrlen used to be defined as a size_t, which is 4 bytes in
ILP32 and 8 in LP64, but was converted to a 4-byte socklen_t in Solaris
10, which necessitated padding for (more or less) binary compatibility).
Add KERN_USERMOUNT and KERN_ARND to don't check list on OpenBSD
These [two constants are no longer in OpenBSD](3f376b0849/sys/sys/sysctl.h (L133-L140)). They were preventing the the tests from passing. With this change the test now pass:
```
CC=egcc cargo run
Compiling libc v0.2.29 (file:///home/vagrant/libc)
Compiling libc-test v0.1.0 (file:///home/vagrant/libc/libc-test)
Finished debug [unoptimized + debuginfo] target(s) in 11.7 secs
Running `/home/vagrant/libc/target/debug/libc-test`
RUNNING ALL TESTS
PASSED 5935 tests
```
They are still present in bitrig so I moved them there.
For some reason, they are in the NDK sources but
they are not available in the tests. I don't know what
Android does here, but nothing that makes sense.
Bump to version 0.2.29
Rationale for release: My changes in https://github.com/nix-rust/nix/pull/688 are blocked on getting a libc release out with the missing constant present.
change type of INADDR constants to in_addr_t
These should be `in_addr_t` (u32) instead of `c_int`
This is a breaking change but it is just breaking newlib platforms for now.
@alexcrichton Do you prefer that I split the definition in submodules, to keep `c_int` in newlib and update the others ?