Commit Graph

2051 Commits

Author SHA1 Message Date
Michael Neumann
a9d80d6452 No fexecve() on DragonFly
This was not caught by libc-test, as checks for the execv functions
are disabled.
2017-11-17 12:50:18 +01:00
Michael Neumann
62ac76cbd5 Add WCONTINUED and WSTOPPED for DragonFly 2017-11-17 12:44:47 +01:00
Michael Neumann
ce48715a5e Add MADV_SETMAP for DragonFly 2017-11-17 12:36:29 +01:00
bors
5cacf97831 Auto merge of #850 - Susurrus:errno, r=malbarbo
Add errno getter for Android
2017-11-17 09:30:09 +00:00
Bryant Mairs
c9d1e3923a Add errno getter for Android 2017-11-16 21:16:51 -08:00
bors
a72a79b34d Auto merge of #849 - cramertj:separate-fuchsia, r=alexcrichton
Separate and Update Fuchsia

The first commit pulls Fuchsia out into its own directory, while the second commit updates the "open" flags as in #848.

cc @smklein, @alexcrichton
2017-11-15 23:45:05 +00:00
Taylor Cramer
b4cfe883bb Reorganize Fuchsia module 2017-11-15 11:29:01 -08:00
Taylor Cramer
42b57da46b Update Fuchsia open flags 2017-11-15 10:37:05 -08:00
Taylor Cramer
f7f9be31c2 Move Fuchsia out of unix and into its own module 2017-11-15 10:22:26 -08:00
Kelvin Ly
fdcb8d96de Syntax fix 2017-11-14 14:23:10 -05:00
Kelvin Ly
58c3fa0feb Add some fixes to allow it to compile with newer libstd 2017-11-14 14:18:55 -05:00
bors
73f531b07d Auto merge of #847 - roblabla:feature-aarch64Newlib, r=alexcrichton
Add aarch64 support to newlib bindings

It's all in the title. I grabbed the definition from  a small test in with a gcc toolchain, I hope it's correct.

There's currently no tests around newlib in the CI. Would it be possible to add them ? If so, how ?
2017-11-14 13:24:32 +00:00
roblabla
ae81dc8df4 Add aarch64 support to newlib bindings 2017-11-14 10:15:16 +01:00
bors
c1068cd82a Auto merge of #846 - malbarbo:syscall-sparch64, r=alexcrichton
Add syscall table for Linux sparc64
2017-11-13 23:22:26 +00:00
Marco A L Barbosa
34aa991123 Add syscall table for Linux sparc64 2017-11-13 21:07:09 -02:00
bors
55c03cd25a Auto merge of #844 - dereckson:unix-agnosticity, r=malbarbo
Use more convenient and UNIX-agnostic shebang

Pure sh scripts should use /bin/sh as it's available on every platform.

When using bash-specific features, use env to find it, as bash can
be installed in different places according the OS.
2017-11-13 16:20:53 +00:00
Sébastien Santoro
97a81d7920 Use more convenient and UNIX-agnostic shebang
Pure sh scripts should use /bin/sh as it's available on every platform.

When using bash-specific features, use env to find it, as bash can
be installed in different places according the OS.
2017-11-13 13:42:00 +00:00
bors
9e59cf98f1 Auto merge of #843 - sfackler:dylib, r=alexcrichton
Add dyld functions and related types

r? @alexcrichton
2017-11-11 10:09:02 +00:00
bors
44458f5f48 Auto merge of #842 - sfackler:dl_iterate_phdr, r=alexcrichton
Add dl_iterate_phdr and related types

A lot of this is more broadly supported than just Linux, but support for
those can be added later.

r? @alexcrichton
2017-11-11 09:49:47 +00:00
Steven Fackler
bbba4bfc7e Add dyld functions and related types 2017-11-10 21:10:51 -08:00
Steven Fackler
8f7839f41b Add dl_iterate_phdr and related types
A lot of this is more broadly supported than just Linux, but support for
those can be added later.
2017-11-10 20:04:08 -08:00
bors
ecc3e01064 Auto merge of #840 - LuoZijun:patch-1, r=alexcrichton
Add network interface flag constants for all platforms

Add network interface flag constants for all platforms.

old PR: https://github.com/rust-lang/libc/pull/839
2017-11-09 17:49:02 +00:00
luozijun
165bbc36df FIX: line longer than 80 chars 2017-11-09 17:10:59 +08:00
luozijun
1c87180bf1 Merge branch 'patch-2' into patch-1 2017-11-09 16:57:36 +08:00
luozijun
f8b9cf58c1 Revert "Add network interface flag constants for all platforms"
This reverts commit c124acbae3.
2017-11-09 16:57:03 +08:00
luozijun
9108f5b51d Add network interface flag constants for all platforms
Add network interface flag constants for all platforms.
2017-11-09 16:54:03 +08:00
luozijun
c124acbae3 Add network interface flag constants for all platforms 2017-11-08 13:46:40 +08:00
bors
86b4281c98 Auto merge of #838 - Susurrus:mfd, r=alexcrichton
Expose MFD_ constants on all Linux targets.

These aren't exposed on non-MIPS musl targets, but since they're
part of a kernel API, they're still applicable, so we just don't
test them there but expose them anyways.
2017-11-07 04:37:54 +00:00
Bryant Mairs
fa81ab39c7 Expose MFD_ constants on all Linux targets.
These aren't exposed on non-MIPS musl targets, but since they're
part of a kernel API, they're still applicable, so we just don't
test them there but expose them anyways.
2017-11-06 19:16:41 -08:00
bors
17e010698f Auto merge of #837 - myfreeweb:freebsd-shm-anon, r=alexcrichton
Add SHM_ANON for FreeBSD

This is a constant for `shm_open` that is used instead of the address to create an anonymous shared memory mapping.

a9656e45a9/sys/sys/mman.h (L168)
2017-11-06 20:32:38 +00:00
Greg V
715ed8cd19 Add SHM_ANON for FreeBSD 2017-11-06 21:52:28 +03:00
bors
e38483f494 Auto merge of #836 - Susurrus:memfd, r=alexcrichton
Add constants for memfd_create syscall
2017-11-06 03:15:44 +00:00
bors
600ea12cd3 Auto merge of #835 - GuillaumeGomez:rustdoc-warning, r=alexcrichton
Fix rustdoc warning
2017-11-06 02:54:56 +00:00
Bryant Mairs
c0935ac343 Add MFD_ constants for memfd_create 2017-11-05 13:52:59 -08:00
Guillaume Gomez
3a61e7a52f Fix rustdoc warning 2017-11-05 14:24:06 +01:00
bors
833e67ffb4 Auto merge of #830 - malbarbo:getrandom_const, r=alexcrichton
Add constants used by getrandom linux syscall

getrandom syscall was added in kernel 3.17. Musl and android seems to use old kernel headers, but considering that they define SYS_getrandom, the constants GRND_NONBLOCK and GRND_RANDOM should also be defined.
2017-11-02 17:51:18 +00:00
Marco A L Barbosa
ae49626940 Add constants used by getrandom linux syscall 2017-11-02 10:33:29 -02:00
bors
d96bf1712d Auto merge of #831 - alexcrichton:wasm, r=malbarbo
Compile an empty library on wasm32 non-Emscripten

In preparation for eventually having a non-Emscripten based wasm32 target, this
commit makes `libc` the crate an empty library on wasm32 targets that are not
with `target_os = "emscripten"`. This may eventually get filled out over time,
but for now it's all empty!
2017-11-02 11:56:03 +00:00
Alex Crichton
d9933b77f9 Compile an empty library on wasm32 non-Emscripten
In preparation for eventually having a non-Emscripten based wasm32 target, this
commit makes `libc` the crate an empty library on wasm32 targets that are not
with `target_os = "emscripten"`. This may eventually get filled out over time,
but for now it's all empty!
2017-11-01 19:25:15 -07:00
bors
48cc0c98a4 Auto merge of #828 - malbarbo:sparc64-fix-test, r=alexcrichton
Fix sparc64-unknown-linux-gnu tests

Run sparc64 test in qemu system like s390x. Fix O_TMPFILE const.

Fixes https://github.com/rust-lang/libc/issues/822
2017-10-31 14:11:40 +00:00
bors
f150863efc Auto merge of #820 - malbarbo:s390x-test, r=alexcrichton
Run s390x tests on qemu system

qemu in user mode cannot run binaries produced by rustc (it hangs), so we run the tests in a fully virtualized s390x machine using qemu-system-s390x.

Some constants had to be fixed.
2017-10-31 13:50:35 +00:00
Marco A L Barbosa
8fe5875699 Fix O_TMPFILE const for sparc64-unknown-linux-gnu 2017-10-31 10:10:35 -02:00
Marco A L Barbosa
6fa3870e5b Run sparc64-unknown-linux-gnu tests on qemu system 2017-10-31 10:10:35 -02:00
Marco A L Barbosa
a6c709142d Fix some s390x constants 2017-10-31 09:44:58 -02:00
Marco A L Barbosa
cd2e87d575 Run s390x test in qemu system instead of qemu user 2017-10-31 09:44:54 -02:00
bors
4feda87afd Auto merge of #827 - worr:master, r=alexcrichton
Add WCONTINUED const for OpenBSD

Simple addition of `WCONTINUED` for OpenBSD-like systems. Built nix against this modified libc and used it to test.
2017-10-30 14:34:25 +00:00
William Orr
e83f20bc0d Add WCONTINUED const for OpenBSD 2017-10-29 14:34:34 -07:00
bors
68f9959e53 Auto merge of #819 - andrewtj:atj-rel, r=alexcrichton
Bump to 0.2.33

Just bumping the release to make getprotobyname, getprotobynumber and getservbyname available.
2017-10-28 12:47:45 +00:00
Andrew Tunnell-Jones
9ff7111743 Bump to 0.2.33 2017-10-28 05:47:18 -07:00
bors
10ac3df173 Auto merge of #824 - malbarbo:x32-1, r=alexcrichton
Fixes and test for x86_64-unknown-linux-gnux32

This fixes all libc tests and almost all rustc tests (3 libstd tests and one run-pass test fails).

Fixes https://github.com/rust-lang/libc/issues/816https://github.com/rust-lang/libc/issues/816
2017-10-28 04:03:07 +00:00