bors
8ee27008ff
Auto merge of #1175 - Ralith:ip-tos, r=alexcrichton
...
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.
2018-12-24 17:34:07 +00:00
Alex Crichton
f0a6af02d3
Fix docs on nightly
2018-12-24 08:36:54 -08:00
Mackenzie Clark
1da1ffe0de
make tm struct members public
2018-12-23 13:26:14 -08:00
Mackenzie Clark
b9d86a6e8a
use the correct calling convention with extern "system"
2018-12-23 12:41:15 -08:00
Mackenzie Clark
a79a73f8bf
add some socket functions and a SOCKET type
2018-12-22 23:37:53 -08:00
bors
c1ae35dad5
Auto merge of #1180 - xmclark:add-stdio-constants-windows, r=alexcrichton
...
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.
2018-12-21 18:45:40 +00:00
Mackenzie Clark
f1b396f3ba
constants are for gnu target only
2018-12-21 09:55:13 -08:00
Mackenzie Clark
3ce82dd39f
Revert "add exception for msvc"
...
This reverts commit 0581f926ff
.
2018-12-21 09:54:01 -08:00
Mackenzie Clark
975eb6b5c7
Revert "instead backfill constants on msvc"
...
This reverts commit 0dd7f2d153
.
2018-12-21 09:50:09 -08:00
Mackenzie Clark
0dd7f2d153
instead backfill constants on msvc
2018-12-20 15:39:42 -08:00
Mackenzie Clark
0581f926ff
add exception for msvc
2018-12-20 15:28:12 -08:00
Mackenzie Clark
e92ed6d0ae
add stdio constants for windows
2018-12-20 13:25:16 -08:00
bors
027d483461
Auto merge of #1176 - xmclark:add-signal-and-raise-windows, r=alexcrichton
...
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
2018-12-18 05:15:39 +00:00
Mackenzie Clark
af19934f29
normalize to common name sighandler_t
2018-12-17 19:31:31 -08:00
Mackenzie Clark
4c32b9f4b9
move everything back into window mod with the type alias for msvc
2018-12-17 17:57:37 -08:00
Mackenzie Clark
2f25aaa235
add edge case for mingw
2018-12-17 17:24:37 -08:00
Alex Crichton
8b63b1cfb0
Merge pull request #1177 from reitermarkus/macos-netdb
...
Add `AI_*` constants from `netdb.h` for macOS.
2018-12-17 12:53:32 -06:00
Markus Reiter
b8e64540af
Add NI_*
constants from netdb.h
for macOS.
2018-12-17 16:44:24 +01:00
Markus Reiter
2a9c0c305f
Add AI_*
constants from netdb.h
for macOS.
2018-12-17 16:44:24 +01:00
Mackenzie Clark
313483ba2e
add signal and raise bindings
...
separate for gnu and msvc
scope resolve c_int
these types are not allowed, and more scope resolution
use size_t
2018-12-16 16:23:53 -08:00
Benjamin Saunders
0de81a6bdf
Narrow IPTOS_ECN_... definitions
2018-12-15 01:39:32 -08:00
Benjamin Saunders
26c34b7e92
No IP_RECVTOS for DragonFlyBSD
2018-12-15 01:18:54 -08:00
Benjamin Saunders
948f2ab622
Add BSD IP_RECVTOS definitions
2018-12-14 23:12:47 -08:00
Benjamin Saunders
076edb21b1
Add IPV6 analogs
2018-12-14 19:14:42 -08:00
Benjamin Saunders
ae6a26284b
Handle inconsistent spelling
2018-12-14 19:14:27 -08:00
Benjamin Saunders
0f9d41ff8a
Style fix
2018-12-14 19:14:01 -08:00
Benjamin Saunders
ba5bfc6c07
Fix BSD IP_TOS value
2018-12-14 19:13:53 -08:00
Benjamin Saunders
94e30dfacd
Expose unix ECN-related constants
2018-12-14 00:57:46 -08:00
Alex Crichton
ed8309bc03
Merge pull request #1174 from tklauser/mfd-hugetlb
...
Add MFD_HUGETLB const for linux
2018-12-13 09:34:16 -06:00
Tobias Klauser
df277e295b
Add MFD_HUGETLB const for linux
...
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2018-12-13 13:27:00 +01:00
Alex Crichton
c66221d07d
Merge pull request #1172 from piersfinlayson/master
...
Fix for rust-lang/rust issue #50583
2018-12-11 15:47:36 -06:00
Piers Finlayson
a01c32d6c8
Fix for rust-lang/rust issue #50583
2018-12-10 19:55:38 +00:00
Alex Crichton
f5636fc618
Merge pull request #1171 from alexcrichton/bump
...
Fix build on x86_64-unknown-cloudabi, bump version
2018-12-10 11:34:50 -05:00
Alex Crichton
dfb9579acc
Fix build on x86_64-unknown-cloudabi, bump version
2018-12-09 19:32:01 -08:00
bors
bf32336688
Auto merge of #1159 - cmbrandenburg:sysv_sem_support, r=alexcrichton
...
Add support for SysV semaphores on Apple platform
2018-12-09 02:34:28 +00:00
Alex Crichton
7862f87560
Allow Android builds to fail
2018-12-08 18:33:04 -08:00
Craig M. Brandenburg
6d22f54440
Add support for SysV semaphores on Apple platform
2018-12-08 06:50:19 -07:00
bors
01b2be3858
Auto merge of #1167 - asomers:cirrus, r=alexcrichton
...
Move FreeBSD testing from Travis/QEMU to Cirrus-CI
Fixes #1163
2018-12-08 12:49:40 +00:00
bors
728f6e06b7
Auto merge of #1169 - jmagnuson:feature/move-sol_bluetooth-to-notbsd, r=alexcrichton
...
Move SOL_BLUETOOTH to notbsd module
https://github.com/torvalds/linux/blob/master/include/linux/socket.h#L334
https://android.googlesource.com/platform/bionic/+/master/libc/include/sys/socket.h#283
https://git.musl-libc.org/cgit/musl/tree/include/sys/socket.h#n259
Seems like it should be okay for a broader exposure than `linux::other`. Maybe I am missing something.
2018-12-08 11:15:58 +00:00
Jon Magnuson
bbed4d4d05
Move SOL_BLUETOOTH to notbsd module
2018-12-08 00:24:42 -06:00
Alan Somers
3f0fff5a94
Remove bors.toml. Per @alexcrichton it isn't needed.
2018-12-07 13:59:55 -07:00
bors
74aeca262e
Auto merge of #1168 - asomers:byebye_buildbot, r=alexcrichton
...
Don't submit build status to buildbot.rust-lang.org
That service no longer exists.
2018-12-07 20:33:38 +00:00
Alan Somers
311722c7c5
Don't submit build status to buildbot.rust-lang.org
...
That service no longer exists.
2018-12-07 13:24:52 -07:00
Alan Somers
e88e6b99de
Move FreeBSD testing from Travis/QEMU to Cirrus-CI
...
Fixes #1163
2018-12-07 13:11:09 -07:00
bors
f5fa41603d
Auto merge of #1158 - strake:TIMER_ABSTIME, r=gnzlbg
...
define `TIMER_ABSTIME` on BSD
2018-12-07 08:31:53 +00:00
bors
7ada017b53
Auto merge of #1164 - AdelieLinux:musl-endianness, r=alexcrichton
...
musl: 64-bit: Ensure proper (c)msghdr layout on big-endian
Discovered while debugging: djg/audioipc-2#52
2018-12-06 23:25:32 +00:00
bors
9a8908c0f5
Auto merge of #1165 - xd009642:gid-funcs, r=gnzlbg
...
Added setegid function
Adding the `setegid` function to libc. I had a look and this is in Apple, Linux and Fuchsia so I'm hoping it works for all the BSDs etc. But if anything fails in CI I'll change it accordingly.
2018-12-06 16:59:50 +00:00
bors
8b207fc467
Auto merge of #1166 - jakllsch:netbsd-tcp-opts-fixes, r=alexcrichton
...
NetBSD: unbreak tests; neither TCP_NOPUSH or TCP_NOOPT yet exist here
2018-12-06 14:35:26 +00:00
M Farkas-Dyck
7d65de6b61
not define TIMER_ABSTIME
on Apple
2018-12-05 16:04:01 -08:00
Jonathan A. Kollasch
b668e77983
NetBSD: unbreak tests; neither TCP_NOPUSH or TCP_NOOPT yet exist here
2018-12-05 19:09:06 +00:00