Vojtech Kral
7e5a2e52fe
Typo in unix/solaris/mod.rs
2016-10-06 16:50:56 +02:00
bors
a6ada0035f
Auto merge of #413 - zenhack:CLONE_NEWCGROUP, r=alexcrichton
...
Define CLONE_NEWCGROUP
Should be fairly self explanatory.
2016-10-05 16:08:44 -07:00
Ian Denhardt
cd03b14093
Fix musl-i686 CI failures.
...
* Override the compiler via CC; ./configure can't seem to detect it.
* Unset CROSS_COMPILE when running make. Per the comment, we otherwise
end up invoking commands like i686-ar.
2016-10-05 18:53:52 -04:00
Ian Denhardt
0ecafc3197
Consolidate and fix musl-specific definitions.
...
Musl 1.1.14 defined these incorrectly, and we followed suit. They're
fixed in 1.1.15, so we fix them here as well.
Since these are kernel ABIs, the correct values match other libc
implementations, so we move them up to the topmost module possible.
2016-10-05 18:53:52 -04:00
Ian Denhardt
8ff1c4172e
Test against newer c libraries
...
Specifically:
* Update the base docker images to ubuntu 16.10
* Update musl to version 1.1.15
This is necessary since the versions we were previously using do not
define CLONE_NEWCGROUP, so adding the symbol to the libc crate causes
test failures.
2016-10-05 18:53:51 -04:00
Ian Denhardt
2faafb3815
Define CLONE_NEWCGROUP
...
Currently restricted to non-Android Linux. In theory this should work on
Android as well (since it's a function of the kernel ABI), but the
released version of the NDK doesn't export it, so putting it in
`notbsd/mod.rs` makes Travis very unhappy.
2016-10-05 18:51:21 -04:00
bors
7c493967d9
Auto merge of #417 - valarauca:master, r=alexcrichton
...
Added all additional ptrace options.
Added additional PTrace Flags.
All the `PTRACE_O` are flags options values that are passed with `PTRACE_OPTION`.
The `PTRACE_PEEKSIGINFO_SHARED` is used for setting/fetching signal masks when interacting with thread groups not individual threads.
`SYSEMU` stuff I pulled from the kernel sources. As far as I can tell these flags haven't been added to `<sys/ptrace.h>`, which is weird because the two `SYSEMU` calls have been live on x64 since 2011. I'm starting a thread on kernel-newies about it.
2016-10-04 22:51:39 -07:00
William Laeder
12e1cd1896
Forgot the x86 changes
2016-10-05 02:58:58 +00:00
William Laeder
a114e91ba7
Removed SYSEMU flags until I get the stuff sorted out with sys mainters.
2016-10-05 02:55:45 +00:00
William Laeder
acaea91e8f
Added all additional ptrace options.
2016-10-05 01:54:51 +00:00
bors
4577f089b4
Auto merge of #416 - kallisti5:master, r=alexcrichton
...
Haiku: More build fixes
2016-10-04 16:19:26 -07:00
Alexander von Gluck IV
573c5fe94d
Haiku: Add in final missing pthread pubs
2016-10-04 17:47:19 -05:00
Alexander von Gluck IV
9f0696e1e8
Haiku: Add missing sem/thread structs. Fix non-pub ULONG
2016-10-04 15:19:38 -05:00
bors
68abfade9f
Auto merge of #415 - kallisti5:master, r=alexcrichton
...
Haiku: Add in missing build-time types, fix module usage
Working through the few final remaining build issues for the Haiku target.
2016-10-04 10:00:05 -07:00
Alexander von Gluck IV
e8155ba221
Haiku: Add missing nl_item type
2016-10-03 10:17:58 -05:00
Alexander von Gluck IV
c5660180a5
Haiku: Fix missing use merge of pointer module
2016-10-03 10:04:11 -05:00
bors
ed16fe6d87
Auto merge of #411 - apasel422:pthread_mutex_timedlock, r=alexcrichton
...
Add `pthread_mutex_timedlock`
2016-10-02 23:31:43 -07:00
Andrew Paseltiner
45179c97da
Add pthread_mutex_timedlock
2016-10-01 08:01:47 -04:00
bors
858092c822
Auto merge of #410 - kallisti5:master, r=alexcrichton
...
Add support for Haiku x86 and x86_64
* Rework of original patches from Niels Sascha Reedijk
that include style and build fixes for libc master
2016-09-30 11:30:27 -07:00
bors
fd06ed7361
Auto merge of #409 - jakllsch:netbsdlike-long-fixes, r=alexcrichton
...
Use correct type for c_ulong and c_long on 32-bit netbsdlike
2016-09-30 10:36:43 -07:00
bors
0e0ab04abe
Auto merge of #391 - japaric:mips-musl, r=alexcrichton
...
add CI for mips-musl
and fix the statvfs struct for this target
r? @alexcrichton
I didn't really test the CI part but this target now passes libc-test under QEMU
2016-09-30 09:31:35 -07:00
bors
84fbc431f2
Auto merge of #412 - alexcrichton:checksums, r=alexcrichton
...
Add checksums to cargo lock files
2016-09-30 08:59:55 -07:00
Alex Crichton
10142aa24a
Add checksums to cargo lock files
2016-09-29 19:20:58 -07:00
Jorge Aparicio
c0fd46fa36
handle mips-musl in ci/run.sh
2016-09-29 21:12:54 -05:00
Niels Sascha Reedijk
a3ff95554e
Add support for Haiku x86 and x86_64
...
* Rework of original patches from Niels Sascha Reedijk
that include style and build fixes for libc master
2016-09-29 14:00:57 -05:00
Jonathan A. Kollasch
07a0190be9
Recognize 32-bit NetBSD
2016-09-29 11:31:02 -05:00
Jonathan A. Kollasch
09ba9f7399
Move 64-bit-specific NetBSD stuff around
2016-09-29 11:24:07 -05:00
Jonathan A. Kollasch
c6799c5b96
Move c_long and c_ulong for netbsdlike
2016-09-29 11:21:55 -05:00
Jonathan A. Kollasch
d75ebdc288
Move NetBSD into its own directory
2016-09-29 11:21:51 -05:00
bors
b474785561
Auto merge of #408 - kali:master, r=alexcrichton
...
add MSG_NOSIGNAL (linux, android)
see rust-lang/rust#36426
2016-09-28 09:06:37 -07:00
Mathieu Poumeyrol
6d940f6653
add MSG_NOSIGNAL (linux, android)
2016-09-28 10:26:53 +02:00
bors
2b8ea0911e
Auto merge of #406 - philippkeller:shadowpw, r=alexcrichton
...
Add shadow password bindings
Add shadow password bindings: setspent, endspent, getspent, getspnam plus spwd, the corresponding struct.
[Example code](https://github.com/philippkeller/apue-rust/blob/master/src/bin/e06-01-shadow-pw.rs ) (tested on Linux 4.4.0-21-generic)
2016-09-26 22:48:24 -07:00
Philipp Keller
04d0b71d2c
Add missing header shadow.h
2016-09-27 07:19:17 +02:00
Philipp Keller
7e0274b021
Merge remote-tracking branch 'upstream/master' into shadowpw
2016-09-26 22:03:24 +02:00
Philipp Keller
26f3eb9401
Add shadow password bindings: setspent, endspent, getspent, getspnam plus spwd, the corresponding struct
2016-09-26 22:00:29 +02:00
bors
ae70d3d464
Auto merge of #405 - mmun:patch-1, r=alexcrichton
...
Add getchar_unlocked and putchar_unlocked
Adds [getchar_unlocked](http://pubs.opengroup.org/onlinepubs/9699919799/functions/getchar_unlocked.html ) and [putchar_unlocked](http://pubs.opengroup.org/onlinepubs/9699919799/functions/putchar_unlocked.html ).
2016-09-26 10:13:19 -07:00
bors
eb708c0208
Auto merge of #402 - tmiasko:getaddrinfo-error-codes, r=alexcrichton
...
Add EAI_SYSTEM getaddrinfo error code.
This is useful to decide if value returned from getaddrinfo is actual
error or you should look at errno instead.
2016-09-26 09:22:56 -07:00
Tomasz Miąsko
f514d46f49
Add EAI_SYSTEM getaddrinfo error code.
...
This is useful to decide if value returned from getaddrinfo is actual
error or you should look at errno instead.
2016-09-26 09:10:07 +02:00
bors
4548dc66da
Auto merge of #401 - alexander255:master, r=alexcrichton
...
Add System V message queue bindings for Linux (glibc/musl)
2016-09-25 17:20:41 -07:00
bors
e3d05ca649
Auto merge of #400 - mrjana:netlink, r=alexcrichton
...
Add netlink constants
Add netlink constants from linux/netlink.h
Signed-off-by: Jana Radhakrishnan <mrjana@gmail.com>
2016-09-25 16:03:05 -07:00
bors
e183f93b9d
Auto merge of #399 - semarie:sethostname, r=alexcrichton
...
define `sethostname` under OpenBSD and Bitrig
factorize the definition with NetBSD
2016-09-25 14:01:30 -07:00
Martin Muñoz
5ec771593e
Add getchar_unlocked and putchar_unlocked
2016-09-25 16:47:49 -04:00
bors
d8a70464b2
Auto merge of #404 - philippkeller:master, r=alexcrichton
...
add time, localtime
time, localtime and strftime are all in POSIX.1 and should IMO all be part of `libc`.
I [tested the bindings](https://github.com/philippkeller/apue-rust/blob/master/src/bin/f06-11-strftime.rs ) - works fine on OSX and linux.
And: I added the netbsd aliases based on `time.h` of netbsd
2016-09-25 12:36:32 -07:00
Philipp Keller
377ee7307a
couldn't get strftime to work, even with help from IRC. Removing it now as it's not worth the hassle
2016-09-25 13:16:21 +02:00
Philipp Keller
04cd409c32
reverting accidental Cargo.lock commit
2016-09-24 22:28:54 +02:00
Philipp Keller
771377f746
fixing 'bad strftime function pointer' for i686-apple-darwin
2016-09-24 16:38:30 +02:00
Philipp Keller
3be2c0fadf
fix double blank line
2016-09-24 11:48:46 +02:00
Philipp Keller
a77ea86392
added time, localtime, strftime
2016-09-23 22:00:18 +02:00
Alexander Schlarb
7590565993
Add System V message queue bindings for Linux (glibc/musl)
2016-09-18 13:14:28 +02:00
Jana Radhakrishnan
85be843cd1
Add netlink constants
...
Add netlink constants from linux/netlink.h
Signed-off-by: Jana Radhakrishnan <mrjana@gmail.com>
2016-09-17 10:21:27 -07:00