- Dec 23, 2019
-
-
bors authored
Add sock_extended_err and associated constants from errqueue.h to linux_like This is an alternate version of #1614 that attempts to fix issues with the android ctests by rearranging the headers. Due to long CI cycle time, I've opened it as an alternate PR. Only one or the other should merge, depending if linux_like or linux is the correct place for this. sock_extended_err is a struct returned as a control message when the sockopt IP_RECVERR is set, when recvmsg has the MSG_ERRQUEUE flag set. IP_RECVERR and MSG_ERRQUEUE are constants both already defined here.
-
- Dec 16, 2019
-
-
Alex Crichton authored
Update bindings for the wasm32-wasi target
-
Alex Crichton authored
This commit performs a number of updates for libc with the `wasm32-wasi` target: * Updates the `wasi-libc` repository commit used (previously known as `wasi-sysroot`) * Updates the container to Ubuntu 19.10 which has Clang 9 packaged which is all we need. * Avoids building `wasmtime` and instead downloads a precompiled binary. * Updates bindings in `src/wasi.rs` to match the current upstream state.
-
- Dec 03, 2019
-
-
Matthew McPherrin authored
Modelled after the cmsg tests, this wraps the C macro into a function, and then compares the results to the Rust implementation in libc.
-
- Dec 02, 2019
-
-
Matthew McPherrin authored
-
Matthew McPherrin authored
-
Matthew McPherrin authored
sock_extended_err is a struct returned as a control message when the sockopt IP_RECVERR is set, when recvmsg has the MSG_ERRQUEUE flag set. IP_RECVERR and MSG_ERRQUEUE are constants both already defined here.
-
Matthew McPherrin authored
This moves the linux/ headers after others This keeps the Android tests closer to the Linux ones. I think this is needed to get linux/errqueue.h to not cause compilation failures.
-
- Nov 29, 2019
-
-
gnzlbg authored
-
bors authored
Implement utmp for NetBSD Followed this: https://github.com/NetBSD/src/blob/trunk/include/utmp.h
-
bors authored
use *const pointer for NetBSD's pthread_setname_np
-
- Nov 28, 2019
-
-
GrayJack authored
-
bors authored
Add ucred and socket related types to uclibc-mips32 Fix compilation of the [tokio](https://github.com/tokio-rs) rust for MIPS architecture when using uClibc. Added missed types, which are defined in library headers: https://github.com/kraj/uClibc/blob/ca1c74d67dd115d059a875150e10b8560a9c35a8/libc/sysdeps/linux/common/bits/socket.h#L320 https://github.com/kraj/uClibc/blob/ca1c74d67dd115d059a875150e10b8560a9c35a8/libc/sysdeps/linux/common/bits/in.h#L35-L36 https://github.com/kraj/uClibc/blob/ca1c74d67dd115d059a875150e10b8560a9c35a8/libc/sysdeps/linux/common/bits/in.h#L140-L143 Should also solve https://github.com/rust-lang-nursery/net2-rs/issues/88 Revisit of #1500
-
bors authored
Implement utmpx.h itens for NetBSD This PR partially closes #1534 If add the constants, structs and and extra traid implmentation
-
bors authored
Add support for shared memory operations for solaris/illumos This is needed because Firefox now uses slice-deque rust crate.
-
bors authored
expose futimens() for illumos systems illumos has an implementation of `futimens()` which we should expose. I'm working on a broader set of [fixes for illumos](https://github.com/rust-lang/libc/compare/master...jclulow:illumos_fixes) in general, but that's going to take a lot more work to be ready so the test suite doesn't currently seem to function.
-
bors authored
Support for RISC-V 64-bit GNU/Linux Add support for RISC-V 64-bit GNU/Linux. Follow up to rust-lang/rust#66661. r? @alexcrichton
-
msizanoen1 authored
-
Lzu Tao authored
-
- Nov 27, 2019
-
-
Joshua M. Clulow authored
-
Alex Povar authored
-
GrayJack authored
-
GrayJack authored
-
msizanoen1 authored
-
Joshua M. Clulow authored
-
- Nov 25, 2019
-
-
bors authored
Implement utmp for solarish targets I followed these references: https://github.com/illumos/illumos-gate/blob/4e0c5eff9af325c80994e9527b7cb8b3a1ffd1d4/usr/src/head/utmpx.h https://github.com/illumos/illumos-gate/blob/4e0c5eff9af325c80994e9527b7cb8b3a1ffd1d4/usr/src/head/utmp.h
-
bors authored
Add initial support for sparc-unknown-linux-gnu While the Rust compiler already supports the sparc-unknown-linux-gnu target, the libc crate is missing support for it. Let's add it so that Rust can built for this target as well.
-
John Paul Adrian Glaubitz authored
-
Petr Sumbera authored
-
bors authored
adds IPV6_ consts for linux
-
bors authored
- add ssm struct and setsockopt constants Signed-off-by:
patrick felt <patrick.felt@sling.com>
-
bors authored
Add flock64 to linux_like platforms Hi, I'm not sure about what to make of the ifdef in glibc `__USE_LARGEFILE64` that covers it. but I copied the impl from glibc's headers. everything is the same except for sparc which has a reserved short int. and in musl it's just `#define flock64 flock`
-
Elichai Turkel authored
Co-Authored-By:
gnzlbg <gnzlbg@users.noreply.github.com>
-
- Nov 22, 2019
-
-
Arthur Gautier authored
This reverts commit 6ff2e8f1.
-
bors authored
Provide SYS_statx for more target_arch/target_env Fixes #1545 The syscall `statx` is provided by Linux Kernel, so it should be available on any `target_env`/`target_arch`, not only some arch on `gnu`. Syscall ids are got from [this commit of musl](http://git.etalabs.net/cgit/musl/commit/?id=9864f60e929100e253fc813bd4105d6dd7652787), except for hexagon, which is got from Linux Kernel (`make O=build ARCH=hexagon headers`). **Not tested yet**
-
Petr Sumbera authored
-
oxalica authored
-
oxalica authored
-
GrayJack authored
-