Andrew Cann
0198ea0d76
add const_fn feature
2018-06-01 17:31:11 +08:00
Andrew Cann
c460b376c2
make dox::mem::size_of a const fn
2018-06-01 16:58:47 +08:00
bors
6578c7c7d1
Auto merge of #1002 - canndrew:add-linux-ip-defs, r=alexcrichton
...
Add consts from netinet/ip.h
2018-05-31 14:20:47 +00:00
bors
eb75e53f55
Auto merge of #1004 - canndrew:fix-size_of, r=alexcrichton
...
fix size_of function in dox.rs
I'm assuming this is meant to have the same signature as the one in core/std
2018-05-31 13:57:27 +00:00
Andrew Cann
020a68a1c4
fix size_of function in dox.rs
2018-05-31 16:47:19 +08:00
Andrew Cann
96c94839f1
make some symbols linux-specific
2018-05-31 14:21:46 +08:00
Andrew Cann
e4a50811dd
remove conflicting linux/ip.h header
2018-05-31 13:53:10 +08:00
Andrew Cann
8dd5125f1e
add constants from linux/ip.h
2018-05-31 13:40:05 +08:00
bors
9f3681c35c
Auto merge of #998 - canndrew:linux-socket-ioctls, r=alexcrichton
...
Add linux socket ioctl defs
2018-05-30 12:59:32 +00:00
Andrew Cann
b02c6a328d
Remove ioctl symbols for emscripten
2018-05-30 18:08:28 +08:00
Andrew Cann
dfaa8f6055
correct some ioctl request values
2018-05-30 18:04:09 +08:00
Andrew Cann
93f9167bea
Add linux socket ioctl defs
2018-05-30 17:27:18 +08:00
bors
4083c89d54
Auto merge of #994 - bkchr:android_fixes, r=alexcrichton
...
Moves `ifaddrs` and some functions to common Linux module
The `ifaddrs` interface is available since api version 24 in android.
The function signatures are now equal to the standard Linux function
signatures.
2018-05-26 19:45:44 +00:00
Bastian Köcher
6a6dc86fb2
Fixes test for android getifaddrs
2018-05-26 10:48:02 +02:00
Bastian Köcher
0280db396d
Moves ifaddrs
and some functions to common Linux module
...
The `ifaddrs` interface is available since api version 24 in android.
The function signatures are now equal to the standard Linux function
signatures.
2018-05-26 10:47:57 +02:00
bors
a0edf29e28
Auto merge of #993 - redox-os:master, r=alexcrichton
...
Add SIG* on redox
2018-05-25 15:00:40 +00:00
jD91mZM2
786495f5f6
c_int over usize, whoops
2018-05-25 14:44:48 +02:00
jD91mZM2
030e503f81
Add SIG* on redox
2018-05-25 08:49:53 +02:00
bors
ad4d49261d
Auto merge of #992 - redox-os:master, r=alexcrichton
...
Add Redox definitions for net functions
Adds the following function definitions for Redox:
- getpeername
- sendto
- send
- recvfrom
- recv
If it is possible to do a release after merging this, that would be great! These function definitions are required for porting mio and tokio to Redox
2018-05-25 02:02:33 +00:00
jD91mZM2
24cf502f59
Add a bunch of functions on redox and hope for the best
2018-05-24 16:05:25 +02:00
bors
7d64d5a545
Auto merge of #990 - lucab:ups/android-sysconf, r=alexcrichton
...
android: add POSIX sysconf constants
Ref: 1c19194c9d
%5E%21/libc/include/sys/sysconf.h
2018-05-22 15:00:46 +00:00
Luca Bruno
725608c9d2
android: add POSIX sysconf constants
...
Ref: 1c19194c9d
%5E%21/libc/include/sys/sysconf.h
2018-05-22 12:21:24 +00:00
bors
c5fb6dbe81
Auto merge of #989 - faern:release-0-2-41, r=alexcrichton
...
Bump to 0.2.41
I mainly need the change that makes the fields of `nlmsghdr` public (c8e9232f3d
).
2018-05-21 14:32:07 +00:00
Linus Färnstrand
6bbe4412c4
Bump to 0.2.41
2018-05-21 13:30:14 +02:00
bors
5e025d65d4
Auto merge of #988 - morrowa:new_freebsd_sf_flags, r=alexcrichton
...
Add new sendfile flags for FreeBSD
Two new constants for FreeBSD:
* `SF_USER_READAHEAD` introduced in FreeBSD 12 [in this commit](b739d60344 (diff-b3f45d20f63d013e46f59f3f88a84d3d)
) (omitted from tests until FreeBSD 12 is stable)
* `SF_NOCACHE` introduced in FreeBSD 11 [in this commit](aaa09777e1 (diff-b3f45d20f63d013e46f59f3f88a84d3d)
)
2018-05-17 17:31:29 +00:00
Andrew Morrow
96ee7bf81c
Add new sendfile flags for FreeBSD
2018-05-17 08:54:53 -06:00
bors
d0a5726599
Auto merge of #985 - longshorej:sem_getvalue, r=alexcrichton
...
Add sem_getvalue to unix
Adds `sem_getvalue` for supported platforms.
Reference: https://www.gnu.org/software/libc/manual/html_node/Semaphores.html
2018-05-10 23:35:10 +00:00
Jason Longshore
b58c25de76
Temporarily disable s390x
2018-05-10 15:30:51 -05:00
Jason Longshore
802bd7de05
Temporarily disable sparc64
2018-05-10 12:21:50 -05:00
Jason Longshore
18ff68357d
Add sem_getvalue to unix
2018-05-10 11:04:14 -05:00
bors
f717d4b113
Auto merge of #984 - kpcyrd:openbsd-TIOCGWINSZ, r=alexcrichton
...
Add TIOCGWINSZ to openbsd
Adds a commonly used ioctl to openbsd, related to #957 . I've tested this on OpenBSD 6.3.
2018-05-07 14:13:57 +00:00
kpcyrd
4861720ab5
Add TIOCGWINSZ to openbsd
2018-05-06 22:36:07 +02:00
bors
3054d3e0eb
Auto merge of #983 - mcginty:bsd-pktinfo, r=alexcrichton
...
add remaining pktinfo consts/structs for the other BSDs
This continues the work from https://github.com/rust-lang/libc/pull/980 , adding a more complete set of supported platforms for the "I want to know what destination this UDP packet had" problem.
2018-05-01 23:03:48 +00:00
Jake McGinty
6f0e67abb9
add remaining pktinfo consts/structs for the other BSDs
2018-05-01 14:14:51 -07:00
bors
66190b3df0
Auto merge of #982 - aep:for-upstream, r=alexcrichton
...
define more TCP_ sockopts on bsd
seee #978
sources for sockopt numbers:
- openbsd: i can't find them, so maybe they dont exist.
- dragonfly: https://github.com/DragonFlyBSD/DragonFlyBSD/search?utf8=%E2%9C%93&q=TCP_KEEPINTVL&type=
- netbsd: https://github.com/IIJ-NetBSD/netbsd-src/search?utf8=%E2%9C%93&q=TCP_KEEPINTVL&type=
2018-05-01 17:12:19 +00:00
Arvid E. Picciani
09c718164c
define more TCP_ sockopts on bsd
...
Signed-off-by: Arvid E. Picciani <aep@exys.org>
2018-05-01 18:50:52 +02:00
bors
297fc414c3
Auto merge of #980 - mcginty:pktinfo, r=alexcrichton
...
add pktinfo consts and structs for linux and apple
The constants and structs are from `/usr/include/linux/in.h`, `/usr/include/linux/in6.h` for Linux (+ Android) and `/usr/include/netinet/in.h`, `/usr/include/netinet6/in6.h` for Apple.
With Apple it's important to mention that I'm choosing the RFC 3542 versions of the constants in alignment with other critical pieces of software like [nginx](http://hg.nginx.org/nginx/rev/9fb994513776 ), and Linux also defaults to this RFC version.
2018-04-23 14:14:13 +00:00
Jake McGinty
0e3cf4737b
add pktinfo consts and structs for linux and apple
2018-04-22 21:24:33 -07:00
bors
73af363c84
Auto merge of #979 - tspiteri:readme-url-domain, r=alexcrichton
...
fix README.md links
Follow up to PR #977 , which just fixed lib.rs while leaving similar broken links in README.md.
2018-04-21 20:37:07 +00:00
Trevor Spiteri
254bf2edce
fix README.md links
2018-04-21 21:56:52 +02:00
bors
484f2758a3
Auto merge of #977 - tspiteri:url-domain, r=alexcrichton
...
fix domain of html_root_url to be rust-lang.github.io
Fixes #976
2018-04-21 15:37:45 +00:00
Trevor Spiteri
ec3a29cd69
fix domain of html_root_url to be rust-lang.github.io
2018-04-21 08:48:06 +02:00
bors
c8c3fb56ad
Auto merge of #975 - return:haiku, r=alexcrichton
...
haiku: Add RLIMIT_STACK and fix RTLD_* definitions
This commit adds additional definitions for Haiku which fixes issues in building libc and backtrace-rs when cross-compiling Haiku using docker ci.
2018-04-20 14:01:43 +00:00
Calvin Hill
353d64549d
haiku: Add RLIMIT_STACK and fix RTLD_* definitions
2018-04-20 12:35:01 +01:00
bors
69769fbf3b
Auto merge of #972 - gnzlbg:packed, r=alexcrichton
...
Fix undefined-behavior on MacOSX structs in stdbuilds
Some MacOSX structs have an incorrect layout that results in undefined behavior. This is because on `x86_64` the MacOSX kernel headers define these using `#pragma pack 4`.
This PR fixes their layout using `repr(packed(4))` . Since it is only available on nightly, it is only enabled for stdbuilds .
2018-04-17 04:01:32 +00:00
bors
735a5a925f
Auto merge of #974 - hawkingrei:feat/add_fread_unlock, r=alexcrichton
...
feat: add fread_unulock for linux
add fread_unulock for linux
2018-04-17 03:28:53 +00:00
真人
19a4c202e3
feat: add fread_unulock for linux
2018-04-17 08:56:34 +08:00
gnzlbg
77837a0f33
bump compat Rust version from 1.0.0 to 1.13.0
2018-04-17 00:30:50 +02:00
gnzlbg
dfee17f1ff
fix this for stdbuild only
2018-04-15 14:50:00 +02:00
gnzlbg
dc1956e2ef
fix undefined behavior due to incorrect packing on macosx
2018-04-15 14:45:26 +02:00