Commit graph

2161 commits

Author SHA1 Message Date
bors c0817817ca Auto merge of #1005 - Susurrus:s390x_fix, r=alexcrichton
Fix sparc64 builds

Partially fixes #987.
2018-06-01 18:37:36 +00:00
bors 3783f1fbf4 Auto merge of #1001 - canndrew:add-rtentry, r=alexcrichton
add rtentry
2018-06-01 18:14:56 +00:00
bors 6acb091b5e Auto merge of #1008 - stratact:master, r=alexcrichton
Add `gethostname` support to Redox module

We need this for hostname support in Ion shell.
2018-06-01 13:53:40 +00:00
stratact d650166116 Add gethostname support to Redox module 2018-06-01 01:01:20 -07:00
Andrew Cann 399c37d19d remove lone symbol 2018-06-01 15:39:37 +08:00
Andrew Cann 78dbddb4f1 move rtentry even further down heirarchy 2018-06-01 15:39:04 +08:00
Andrew Cann 29d944b71a move stuff into linux subdir 2018-06-01 15:37:57 +08:00
Andrew Cann 02d95f622b move some symbols down the heirarchy 2018-06-01 15:11:48 +08:00
Andrew Cann 1c00b9be5c fix type error 2018-06-01 13:38:25 +08:00
Andrew Cann 4b526c2524 move rtentry, add rest of net/route.h 2018-06-01 13:10:15 +08:00
Andrew Cann 651d6feafe add rtentry 2018-06-01 13:10:15 +08:00
Bryant Mairs 0f8a62bce6 Fail hard on sparc64 build failures 2018-05-31 19:27:03 -07:00
Bryant Mairs d41e62ac29 Correct path for sparc64 debian image 2018-05-31 19:24:53 -07: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