summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* please do not land this, thxwoopsPietro Albini2019-01-021-0/+2
|
* Merge pull request #1191 from asomers/cirrus_badgeAlex Crichton2019-01-021-0/+1
|\ | | | | [skip ci] Add a Cirrus-ci.com build badge
| * [skip ci] Add a Cirrus-ci.com build badgeAlan Somers2019-01-011-0/+1
| | | | | | | | Reported-by: Alex Zepeda
* | Auto merge of #1189 - pusateri:recvdstaddr, r=alexcrichtonbors2019-01-021-0/+2
|\ \ | |/ |/| | | | | | | Add IP_RECVDSTADDR on netbsd. Accidentally left out IP_RECVDSTADDR on NetBSD in #1184
| * Add IP_RECVDSTADDR on netbsd.Tom Pusateri2018-12-281-0/+2
|/
* Auto merge of #1184 - pusateri:recvif, r=gnzlbgbors2018-12-284-0/+5
|\ | | | | | | | | | | | | | | Add IP_RECVIF to BSD and IP_RECVDSTADDR to apple. FreeBSD/OpenBSD do not support IP_PKTINFO for IPv4 but use IP_RECVIF for interface index and IP_RECVDSTADDR for destination address. NetBSD and macOS also support IP_RECVIF and IP_RECVDSTADDR in addition to IP_PKTINFO. (For IPv6, all use IPV6_PKTINFO)
| * Add IP_RECVIF to BSD and IP_RECVDSTADDR to apple.Tom Pusateri2018-12-264-0/+5
| |
* | Auto merge of #1186 - glaubitz:fcntl-fixes, r=alexcrichtonbors2018-12-262-0/+6
|\ \ | |/ |/| | | | | | | | | | | Define missing F_RDLCK, F_WRLCK and F_UNLCK constants on linux-mips -and s390x These are defined in the fcntl.h glibc header on MIPS and s390x systems on Linux but missing in the libc crate, so add them as they are required for the file locking API in rustc.
| * Define missing F_RDLCK, F_WRLCK and F_UNLCK constants on linux-s390xJohn Paul Adrian Glaubitz2018-12-251-0/+3
| | | | | | | | | | | | These are defined in the fcntl.h glibc header on s390x systems on Linux but missing in the libc crate, so add them as they are required for the file locking API in rustc.
| * Define missing F_RDLCK, F_WRLCK and F_UNLCK constants on linux-mipsJohn Paul Adrian Glaubitz2018-12-251-0/+3
|/ | | | | | These are defined in the fcntl.h glibc header on MIPS systems on Linux but missing in the libc crate, so add them as they are required for the file locking API in rustc.
* Auto merge of #1183 - xmclark:make-tm-members-public-windows, r=gnzlbgbors2018-12-241-9/+9
|\ | | | | | | | | | | | | | | | | | | make tm struct members public This PR makes the members of `struct tm` public. I see no reason why these fields should not be public fields. They are public in the other targets. I did a blame and it seems that they have been private since added a couple years ago. https://github.com/rust-lang/libc/commit/53e0d387f8765e9faa1ea921450167bb7f0b31ff
| * make tm struct members publicMackenzie Clark2018-12-231-9/+9
| |
* | Auto merge of #1182 - xmclark:add-socket-functions-for-windows, r=alexcrichtonbors2018-12-241-0/+35
|\ \ | | | | | | | | | | | | | | | add some socket functions and a SOCKET type for windows This PR adds a few of the socket functions for windows. Some targets use the `stdcall` calling convention for these functions, so I put them in an `extern "system"` block ([see the nomicon](https://doc.rust-lang.org/nomicon/ffi.html#foreign-calling-conventions)).
| * | use the correct calling convention with extern "system"Mackenzie Clark2018-12-231-14/+29
| | |
| * | add some socket functions and a SOCKET typeMackenzie Clark2018-12-221-0/+20
| |/
* | Auto merge of #1175 - Ralith:ip-tos, r=alexcrichtonbors2018-12-248-0/+32
|\ \ | | | | | | | | | | | | | | | Expose unix ECN-related constants I'm not certain of the correctness of the BSD definition, but I assume that's what CI's for.
| * | Narrow IPTOS_ECN_... definitionsBenjamin Saunders2018-12-153-5/+9
| | |
| * | No IP_RECVTOS for DragonFlyBSDBenjamin Saunders2018-12-152-1/+1
| | |
| * | Add BSD IP_RECVTOS definitionsBenjamin Saunders2018-12-142-0/+2
| | |
| * | Add IPV6 analogsBenjamin Saunders2018-12-144-0/+8
| | |
| * | Handle inconsistent spellingBenjamin Saunders2018-12-144-1/+6
| | |
| * | Style fixBenjamin Saunders2018-12-141-1/+1
| | |
| * | Fix BSD IP_TOS valueBenjamin Saunders2018-12-141-2/+1
| | |
| * | Expose unix ECN-related constantsBenjamin Saunders2018-12-143-0/+14
| | |
* | | Fix docs on nightlyAlex Crichton2018-12-241-0/+5
| |/ |/|
* | Auto merge of #1180 - xmclark:add-stdio-constants-windows, r=alexcrichtonbors2018-12-211-0/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | add stdio constants for windows A few useful constants for working with the stdio file descriptors. I referenced the [msdn](https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fileno?view=vs-2017) docs for the numbers, although I think 0,1,2 are standard on most platforms for the stdio.
| * | constants are for gnu target onlyMackenzie Clark2018-12-212-5/+5
| | |
| * | Revert "add exception for msvc"Mackenzie Clark2018-12-211-4/+0
| | | | | | | | | | | | This reverts commit 0581f926ffdebfd399f1a89d742e3b2e2e4f3a3d.
| * | Revert "instead backfill constants on msvc"Mackenzie Clark2018-12-211-7/+3
| | | | | | | | | | | | This reverts commit 0dd7f2d153cf7b744bdf3e49af67cfe780b2e97d.
| * | instead backfill constants on msvcMackenzie Clark2018-12-201-3/+7
| | |
| * | add exception for msvcMackenzie Clark2018-12-201-0/+4
| | |
| * | add stdio constants for windowsMackenzie Clark2018-12-201-0/+5
|/ /
* | Auto merge of #1176 - xmclark:add-signal-and-raise-windows, r=alexcrichtonbors2018-12-184-3/+21
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add signal and raise bindings for windows This PR adds `signal` and `raise` bindings for windows. I don't know these functions or linux very well, so I leaned on other overrides of signal in the linux bindings, and the [cppreference page](https://en.cppreference.com/w/cpp/header/csignal) for adding the bindings. I added some constants that were shown on the [microsoft signal page](https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/signal?view=vs-2017) and used the default values I found spelunking through my own copy of `signal.h` that came along with visual studio. The automated tests pass and my toy apps use the `signal` and `raise` as expected. Let me know if there is anything else I need to do, or any extra tests to write. EDIT: currently working on getting a nice isolated msys2 environment I can use to dev against. - [x] msys2 env setup and building
| * | normalize to common name sighandler_tMackenzie Clark2018-12-172-4/+5
| | |
| * | move everything back into window mod with the type alias for msvcMackenzie Clark2018-12-174-23/+15
| | |
| * | add edge case for mingwMackenzie Clark2018-12-171-0/+1
| | |
| * | add signal and raise bindingsMackenzie Clark2018-12-163-2/+26
| |/ | | | | | | | | | | | | | | | | | | | | | | separate for gnu and msvc scope resolve c_int these types are not allowed, and more scope resolution use size_t
* | Merge pull request #1177 from reitermarkus/macos-netdbAlex Crichton2018-12-171-0/+20
|\ \ | |/ |/| Add `AI_*` constants from `netdb.h` for macOS.
| * Add `NI_*` constants from `netdb.h` for macOS.Markus Reiter2018-12-171-0/+7
| |
| * Add `AI_*` constants from `netdb.h` for macOS.Markus Reiter2018-12-171-0/+13
|/
* Merge pull request #1174 from tklauser/mfd-hugetlbAlex Crichton2018-12-133-0/+6
|\ | | | | Add MFD_HUGETLB const for linux
| * Add MFD_HUGETLB const for linuxTobias Klauser2018-12-133-0/+6
|/ | | | Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
* Merge pull request #1172 from piersfinlayson/masterAlex Crichton2018-12-111-1/+1
|\ | | | | Fix for rust-lang/rust issue #50583
| * Fix for rust-lang/rust issue #50583Piers Finlayson2018-12-101-1/+1
| |
* | Merge pull request #1171 from alexcrichton/bump0.2.45Alex Crichton2018-12-103-66/+67
|\ \ | | | | | | Fix build on x86_64-unknown-cloudabi, bump version
| * | Fix build on x86_64-unknown-cloudabi, bump versionAlex Crichton2018-12-093-66/+67
|/ /
* | Auto merge of #1159 - cmbrandenburg:sysv_sem_support, r=alexcrichtonbors2018-12-093-1/+53
|\ \ | | | | | | | | | Add support for SysV semaphores on Apple platform
| * | Allow Android builds to failAlex Crichton2018-12-081-0/+4
| | |
| * | Add support for SysV semaphores on Apple platformCraig M. Brandenburg2018-12-082-1/+49
| | |
* | | Auto merge of #1167 - asomers:cirrus, r=alexcrichtonbors2018-12-083-16/+14
|\ \ \ | |/ / |/| | | | | | | | | | | Move FreeBSD testing from Travis/QEMU to Cirrus-CI Fixes #1163