Commit Graph

1341 Commits

Author SHA1 Message Date
Bryant Mairs
2aa329751a Add some termios constants for sparc64 2018-06-01 15:24:37 -07:00
bors
a75938db01 Auto merge of #1010 - canndrew:make-size_of-const, r=alexcrichton
make dox::mem::size_of a const fn
2018-06-01 19:57:12 +00:00
bors
1fc4c57828 Auto merge of #1007 - canndrew:dox-traits, r=alexcrichton
add more built-in traits to dox.rs

Add/fix bitwise operation traits in dox.rs
2018-06-01 19:16:33 +00:00
bors
3783f1fbf4 Auto merge of #1001 - canndrew:add-rtentry, r=alexcrichton
add rtentry
2018-06-01 18:14:56 +00:00
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
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
0eaa305c71 add more built-in traits to dox.rs 2018-06-01 13:49:03 +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
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
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
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
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
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
jD91mZM2
24cf502f59
Add a bunch of functions on redox and hope for the best 2018-05-24 16:05:25 +02: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
Andrew Morrow
96ee7bf81c Add new sendfile flags for FreeBSD 2018-05-17 08:54:53 -06:00
Jason Longshore
18ff68357d Add sem_getvalue to unix 2018-05-10 11:04:14 -05: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
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
Jake McGinty
0e3cf4737b add pktinfo consts and structs for linux and apple 2018-04-22 21:24:33 -07:00
Trevor Spiteri
ec3a29cd69 fix domain of html_root_url to be rust-lang.github.io 2018-04-21 08:48:06 +02: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
真人
19a4c202e3 feat: add fread_unulock for linux 2018-04-17 08:56:34 +08: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
bors
28b4d16309 Auto merge of #971 - faern:public-netlink-fields, r=alexcrichton
Make netlink struct fields public

I realized my netlink structs were a bit unusable if their fields are not public 🤦‍♂️

Follow up and improvement to #922
2018-04-12 15:31:20 +00:00
Linus Färnstrand
c8e9232f3d Make fields in all netlink related structs public 2018-04-11 09:18:41 +02:00
Mike Hommey
4c5e483f7f Fix statvfs on mips and powerpc glibc 2018-04-11 12:11:09 +09:00
bors
846ecb00ff Auto merge of #960 - glandium:mutex-init, r=alexcrichton
Add PTHREAD_*_MUTEX_INITIALIZER_NP for glibc

`pthread_mutex_t` varies across architectures, in several ways:
- endianness alters the ordering of bytes, since the contents of the
  struct are larger than 8-bit.
- its length varies.
- the location of the mutex kind (`PTHREAD_MUTEX_RECURSIVE`,
  `PTHREAD_MUTEX_ERRORCHECK` or `PTHREAD_MUTEX_ADAPTIVE_NP`) varies
  between 32-bit and 64-bit: On 32-bit architectures, it is preceded by
  three int/unsigned int, while on 64-bit architectures, it is preceded
  by four of them.

These initializers are only available from <pthread.h> when _GNU_SOURCE
is defined.
2018-04-10 21:51:01 +00:00
Mike Hommey
d9013273a0 Add PTHREAD_*_MUTEX_INITIALIZER_NP for glibc
`pthread_mutex_t` varies across architectures, in several ways:
- endianness alters the ordering of bytes, since the contents of the
  struct are larger than 8-bit.
- its length varies.
- the location of the mutex kind (`PTHREAD_MUTEX_RECURSIVE`,
  `PTHREAD_MUTEX_ERRORCHECK` or `PTHREAD_MUTEX_ADAPTIVE_NP`) varies
  between 32-bit and 64-bit: On 32-bit architectures, it is preceded by
  three int/unsigned int, while on 64-bit architectures, it is preceded
  by four of them.

These initializers are only available from <pthread.h> when _GNU_SOURCE
is defined.

Relax the cfg_if check in ci/style.rs to allow #[cfg(target_endian)]
tests.
2018-04-11 06:38:18 +09:00
Mike Hommey
4355dfcfa4 Add PTHREAD_MUTEX_ADAPTIVE_NP for glibc 2018-04-11 06:38:18 +09:00
Sébastien Marie
04aa1bb572 openbsd: SIGSTKSZ has been reduced 2018-04-10 16:53:12 +02:00
Craig M. Brandenburg
263abfefef Add flock type value definitions for Linux/other/x86_64 2018-04-08 06:47:32 -07:00
bors
67713687fc Auto merge of #952 - semarie:map_stack, r=alexcrichton
Add MAP_STACK constant to OpenBSD

The mmap(2) flag indicate that the mapping is used as a stack.

https://man.openbsd.org/mmap.2#MAP_STACK
https://marc.info/?l=openbsd-tech&m=152035796722258&w=2
2018-04-07 14:30:24 +00:00