Commit Graph

1564 Commits

Author SHA1 Message Date
Bryant Mairs
558c288125 Add WIFCONTINUED for NetBSD and OpenBSD 2017-08-10 19:21:28 -07:00
Bryant Mairs
748e872a8b Add MADV_*DUMP on Android 2017-08-10 19:21:28 -07:00
Bryant Mairs
c9e6f55f1c Add MADV_FREE and MADV_SOFT_OFFLINE for Android/Linux 2017-08-10 19:21:22 -07:00
bors
916b82d6f2 Auto merge of #717 - Susurrus:sock_nonblock, r=alexcrichton
Add more socket flags for Android and the BSDs
2017-08-10 05:28:40 +00:00
Bryant Mairs
75913469d0 Add more socket flags for Android and the BSDs 2017-08-09 21:44:04 -07:00
bors
10af28f43b Auto merge of #715 - goyox86:add-missing-constants-redox, r=alexcrichton
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
2017-08-07 21:50:49 +00:00
Jose Narvaez
dcb0f86f7a Changed Redox 'mode_t' constants to Hexadecimal. 2017-08-07 19:25:23 +01:00
Jose Narvaez
246f4be5e9 Add some permission and misc (mostly 'mode_t' related) constants to Redox. 2017-08-07 18:45:50 +01:00
bors
2a5b50b7f7 Auto merge of #714 - dhduvall:master, r=alexcrichton
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.
2017-08-07 03:38:27 +00:00
Danek Duvall
1375070196 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).
2017-08-06 20:04:35 -07:00
bors
6c0ff9e7ca Auto merge of #713 - marmistrz:fix-gettid, r=alexcrichton
Bring back SYS_gettid on Android/ARM which was accidentally removed by #710.
2017-08-05 01:53:28 +00:00
Marcin Mielniczuk
81eb0947ee Bring back SYS_gettid on Android/ARM which was accidentally removed by #710. 2017-08-04 15:33:55 +02:00
bors
0dae0e75bd Auto merge of #708 - wezm:remove-missing-openbsd-constants, r=alexcrichton
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.
2017-08-04 10:40:32 +00:00
bors
db27ee22ce Auto merge of #702 - berkowski:bsd_poll_flags, r=alexcrichton
A few missing *BSD poll flags

Added a few missing BSD poll flags for completeness.
2017-08-04 03:00:44 +00:00
bors
ecd468e6e9 Auto merge of #710 - marmistrz:android, r=alexcrichton
Port #672 and #686 to Android.

I'd rather avoid the duplication, but this is discussed in #707.
2017-08-04 01:50:04 +00:00
bors
3c2bd77c96 Auto merge of #712 - marmistrz:ptrace, r=alexcrichton
Add ptrace constants.
2017-08-04 01:06:11 +00:00
Marcin Mielniczuk
21eb1c5c0b Comment out PTRACE_EVENT_STOP.
It has been added to glibc in version 2.26.
2017-08-03 15:39:31 +02:00
Marcin Mielniczuk
76759d6492 Remove the definitions from submodules 2017-08-03 14:18:10 +02:00
Marcin Mielniczuk
dba08fa3bb Add ptrace constants. 2017-08-03 14:12:41 +02:00
Marcin Mielniczuk
47021028c6 Comment out some of the syscalls for Android.
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.
2017-08-03 14:04:54 +02:00
Wesley Moore
58c772bd51 Add KERN_ARND and KERN_USERMOUNT to don't check list on OpenBSD 2017-08-03 18:14:15 +10:00
Marcin Mielniczuk
381a4456fb Remove duplicate SYS_gettid 2017-08-02 09:56:38 +02:00
bors
c40b6af24a Auto merge of #709 - wezm:setresuid, r=alexcrichton
Add setresgid & setresuid to FreeBSD and OpenBSD

These functions are both present in [FreeBSD](https://www.freebsd.org/cgi/man.cgi?query=setresuid&apropos=0&sektion=0&manpath=FreeBSD+11.1-RELEASE+and+Ports&arch=default&format=html) and [OpenBSD](http://man.openbsd.org/setresuid).
2017-08-02 02:03:39 +00:00
bors
5e6853b9c1 Auto merge of #699 - marmistrz:master, r=alexcrichton
Port #672 and #686 to musl.
2017-08-02 01:03:41 +00:00
Marcin Mielniczuk
b9166f42ff Include sys/reg.h on Android. 2017-08-01 16:20:13 +02:00
Marcin Mielniczuk
20591a37b9 Port #672 and #686 to Android.
I'd rather avoid the duplication, this is discussed in #707.
2017-08-01 14:05:07 +02:00
Wesley Moore
81e4c5bf06 Add setresgid & setresuid to FreeBSD and OpenBSD 2017-08-01 18:55:43 +10:00
Marcin Mielniczuk
0ef465a1a7 Fix double blank line 2017-08-01 10:05:20 +02:00
Marcin Mielniczuk
08fefb7b4e Fix links 2017-08-01 10:00:55 +02:00
Marcin Mielniczuk
a1f0de0449 Remove the offending syscalls.
They have been added in musl 1.16 but updating musl is non-trivial.
2017-08-01 10:00:14 +02:00
bors
1fbd19714f Auto merge of #705 - wezm:release-0.2.29, r=alexcrichton
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.
2017-07-31 23:58:23 +00:00
bors
60064cbc7b Auto merge of #706 - cactorium:master, r=alexcrichton
Add IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP to uclibc

Hello! Just some minor fixes so that net2 compiles correctly on uclibc
2017-07-31 21:14:39 +00:00
Kelvin Ly
db54adac84 Merge branch 'master' of https://github.com/rust-lang/libc 2017-07-31 16:25:21 -04:00
Kelvin Ly
5b55e05b60 Add IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP to uclibc 2017-07-31 16:17:39 -04:00
Wesley Moore
beb582e120 Bump to version 0.2.29 2017-07-31 21:12:05 +10:00
bors
560e73f357 Auto merge of #703 - mneumann:dragonfly-add-evfilt-except, r=alexcrichton
Add EVFILT_EXCEPT constant
2017-07-30 17:42:43 +00:00
Michael Neumann
31d55bcee4 Add EVFILT_EXCEPT constant 2017-07-30 16:01:35 +02:00
Zac Berkowitz
1935c1afc0 Fixed style issues. 2017-07-29 18:32:09 +00:00
Zac Berkowitz
c73ef9cdb7 Fixed openbsd POLLNORM flag. 2017-07-29 18:31:44 +00:00
Zac Berkowitz
b452c0641a Added POLLNORM constant to openbsd-like unix 2017-07-29 18:12:57 +00:00
Zac Berkowitz
f37010905d Added POLLSTANDARD and POLLINIGNEOF constants for freebsd-like unix 2017-07-29 17:59:55 +00:00
bors
5b519f6a2e Auto merge of #701 - ndusart:rcvbufforce, r=alexcrichton
add SO_RCVBUFFORCE for s390x
2017-07-27 14:01:47 +00:00
Nicolas Dusart
2560cda37e add SO_RCVBUFFORCE for s390x 2017-07-27 10:03:45 +02:00
Marcin Mielniczuk
bd9e6f4c09 Fix redefinitions 2017-07-25 17:59:16 +02:00
Marcin Mielniczuk
8a676cbe8b Port #672 and #686 to musl. 2017-07-25 16:31:47 +02:00
bors
f9119d51c3 Auto merge of #697 - wezm:openbsd-so_timestamp, r=alexcrichton
Add missing SO_TIMESTAMP constant for OpenBSD like OSes

Added to mod.rs as both [OpenBSD](e35050970e/sys/sys/socket.h (L97)) and [Bitrig](a15267d824/sys/sys/socket.h (L100)) have it.

Required for https://github.com/nix-rust/nix/pull/688
2017-07-25 14:24:04 +00:00
bors
27a319e832 Auto merge of #698 - ndusart:in_addr_t, r=alexcrichton
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 ?
2017-07-25 13:56:28 +00:00
Nicolas Dusart
ef1cb0763a change type of INADDR constants to in_addr_t 2017-07-25 11:03:38 +02:00
Wesley Moore
a586a85d16 Add SO_TIMESTAMP for OpenBSD like OSes 2017-07-25 17:46:48 +10:00
bors
7442182764 Auto merge of #696 - mgeisler:patch-1, r=alexcrichton
Add CI badges
2017-07-24 23:39:57 +00:00