- Nov 28, 2019
-
-
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
-
- 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
-
patrick felt authored
Signed-off-by:
patrick felt <patrick.felt@sling.com>
-
- Nov 21, 2019
-
-
Elichai Turkel authored
-
bors authored
Upgrade to musl 1.1.24 in CI Required by #1577 Note that in musl 1.1.24, `struct sched_param` from `sched.h` has changed and some fields became reserved. So [these fields](https://github.com/rust-lang/libc/blob/13d4a5da2eafd82d3ebb2acb729d8b8c9148fb1f/src/unix/linux_like/mod.rs#L97) are outdated. I'm not sure if we should rename them, since they are in public API. I simply skip `struct sched_param` from the test now. Here's the diff between musl 1.1.23 and 1.1.24 ``` diff --git a/include/sched.h b/include/sched.h index 05d40b1e..7e470d3a 100644 --- a/include/sched.h +++ b/include/sched.h @@ -18,10 +18,12 @@ extern "C" { struct sched_param { int sched_priority; - int sched_ss_low_priority; - struct timespec sched_ss_repl_period; - struct timespec sched_ss_init_budget; - int sched_ss_max_repl; + int __reserved1; + struct { + time_t __reserved1; + long __reserved2; + } __reserved2[2]; + int __reserved3; }; ```
-
bors authored
add pthread_getname_np for mac os In macos's `pthread.h` ```c /*SPI to set and get pthread name*/ __API_AVAILABLE(macos(10.6), ios(3.2)) int pthread_getname_np(pthread_t,char*,size_t); __API_AVAILABLE(macos(10.6), ios(3.2)) int pthread_setname_np(const char*); ``` I believe `pthread_getname_np` is usable in macos after 10.6. Signed-off-by:
Yang Keao <keao.yang@yahoo.com>
-
bors authored
Fix build.rs failing with a rustc built from a tarball Fixes #1601
-
Elichai Turkel authored
-
- Nov 20, 2019
-
-
Aaron Hill authored
Fixes #1601
-
GrayJack authored
-
bors authored
Implement utmpx to solaris/illumos Closes #1535 I followed these references: https://docs.oracle.com/cd/E23823_01/html/816-5168/getutxent-3c.html#REFMAN3Agetutxent-3c 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
Nfnetfilter log This adds the constants from linux/netfilter/nfnetlink.h and nfnetlink_log.h. These are the files I need for https://github.com/jbaublitz/neli/pull/48. After this gets in, I'd like to follow-up with the other nfnetlink_*.h files too, as I'd like to extend neli with further protocols in the future, but I want to do a smaller PR first to see if there are some things to tweak. I've noticed similar netfilter constants are also in the android subfolder, therefore I'm adding them there too (I don't like the copy-pasting, but it seems the other ones are already copy-pasted). I assume the test will catch it if anything is different on that platform.
-
- Nov 19, 2019
-
-
bors authored
Add illumos 3socket flags This adds missing flags for SOCKET(3SOCKET).
-
bors authored
Add two missing pthread calls to the OpenBSD support. These are shamelessly copied from the NetBSD support, whose prototypes in this regard are identical to OpenBSD's.
-
bors authored
Add a few functions & POSIX error codes to Windows API This change adds a few simple additional functions to the windows apis, as well as some additional error codes. Tests and style pass, as per contributing guidelines.
-