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
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 ?
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.
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.
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
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.
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.
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)
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.
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!
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!
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.
Add sparc64-unknown-linux-gnu to CI (with disabled tests)
Tests are disabled because qemu segfaults, see https://github.com/rust-lang/libc/issues/822
The builder is still useful to catch some errors.