- Sep 07, 2019
-
-
bors authored
Copy structs from bits/user.h for musl x86_64 While statically compiling a binary with `musl`, I ran into the following error regarding a missing struct: ``` error[E0412]: cannot find type `user_regs_struct` in crate `libc` --> src/debug.rs:37:32 | 37 | fn show_user_regs(regs: &libc::user_regs_struct) -> String { | ^^^^^^^^^^^^^^^^ not found in `libc` ``` This struct was previously added for `glibc` in #599, but was never added to `musl`, despite the data format being the same in both. This fix simply copies `user_regs_struct` into the proper location within the `musl` files.
-
bors authored
Remove WASI Core API Closes #1434 This change does not break the backwards compatibility promise since WASI Core API is unstable right now. If applications or libraries want to use Core API directly they should use [`wasi`](https://crates.io/crates/wasi) instead of `libc`. Blocked by: rust-lang/rust#63676 cc @sunfishcode
-
bors authored
Deprecate AIO_LISTIO_MAX This value can vary at runtime. Applications should instead use sysconf(3) with _SC_AIO_LISTIO_MAX.
-
bors authored
Deprecate RLIM_NLIMITS This constant is not stable across OS versions, so it cannot be used in any backwards- or forwards- compatible way. It's typically used to size arrays in the kernel and in debugging utilities that are closely tied to the OS version. Since libc is ignorant about OS versions, we shouldn't even be defining it.
-
bors authored
linux/gnu: add utmpname() This adds `utmpname(3)` on Linux with GNU libc. Ref: https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/baselib-utmpname-3.html
-
bors authored
Adding UTIME_NOW and UTIME_OMIT to dragonfly Verified in both repos: - [musl](https://git.musl-libc.org/cgit/musl/tree/include/sys/stat.h#n70) - [dragonfly](https://github.com/DragonFlyBSD/DragonFlyBSD/blob/e7ab884bd49753f8884eb597d10d6569a08fa0df/sys/sys/stat.h#L250)
-
bors authored
Update Emscripten system types These changes bring the types up to parity with recent Emscripten versions using the upstream LLVM wasm backend. These changes should be coordinated with the upgrade of rustc's Emscripten support. See https://internals.rust-lang.org/t/upgrading-rust-s-emscripten-support/10684
-
- Sep 06, 2019
- Sep 02, 2019
-
-
Luke Petre authored
-
Luke Petre authored
-
Alan Somers authored
This value can vary at runtime. Applications should instead use sysconf(3) with _SC_AIO_LISTIO_MAX.
-
Alan Somers authored
This constant is not stable across OS versions, so it cannot be used in any backwards- or forwards- compatible way. It's typically used to size arrays in the kernel and in debugging utilities that are closely tied to the OS version. Since libc is ignorant about OS versions, we shouldn't even be defining it.
-
gnzlbg authored
Fix the link_name for fstat and fstatfs on FreeBSD
-
- Sep 01, 2019
-
-
Alan Somers authored
-
Luca Bruno authored
This adds `utmpname(3)` on Linux with GNU libc. Ref: https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/baselib-utmpname-3.html
-
- Aug 29, 2019
-
-
Thomas Lively authored
-
Thomas Lively authored
-
- Aug 27, 2019
-
-
Thomas Lively authored
-
Thomas Lively authored
This reverts commit 89e8ae6a.
-
Thomas Lively authored
-
- Aug 26, 2019
-
-
Thomas Lively authored
-
Thomas Lively authored
-
- Aug 23, 2019
-
-
Logan Wendholt authored
-
Logan Wendholt authored
-
- Aug 22, 2019
-
-
Logan Wendholt authored
-
- Aug 21, 2019
-
-
newpavlov authored
-
bors authored
UTIME_OMIT and UTIME_NOW values are inverted on OpenBSD. correct it unbreak OpenBSD after #1474
-
bors authored
ci: switch to the rust-lang-ci-mirrors bucket for mirrors Previously mirrors were stored in the rust-lang-ci2 bucket, which is meant to store temporary data (the CI artifacts). This switches the code to fetch from the new mirrors bucket. The old files won't be removed, but they won't be backed up either. r? @gnzlbg
-
Pietro Albini authored
Previously mirrors were stored in the rust-lang-ci2 bucket, which is meant to store temporary data (the CI artifacts). This switches the code to fetch from the new mirrors bucket. The old files won't be removed, but they won't be backed up either.
-
Sébastien Marie authored
-
- Aug 20, 2019
-
-
bors authored
Revert breaking musl change
-
gnzlbg authored
-
gnzlbg authored
-
bors authored
Adding UTIME_NOW and UTIME_OMIT to OSes which support utimensat I've managed to verify a handful of these: - [FreeBSD](https://github.com/freebsd/freebsd/blob/1d6e4247415d264485ee94b59fdbc12e0c566fd0/tools/build/stat.h#L35) - [NetBSD](https://github.com/NetBSD/src/blob/64b8a48e1288eb3902ed73113d157af50b2ec596/sys/sys/stat.h#L235) - [Apple](https://opensource.apple.com/source/xnu/xnu-4903.221.2/bsd/sys/stat.h.auto.html) I'm less confident in these: - [Haiku](https://github.com/haiku/haiku/blob/abb59d7351c7ddb50c63c40430a82d94fa61917a/headers/posix/sys/stat.h#L105) - I could be wrong on this one: https://github.com/haiku/haiku/search?q=UTIME_NOW&unscoped_q=UTIME_NOW - [WASI](https://github.com/CraneStation/wasi-libc/blob/24792713d7e31cf593d7e19b943ef0c3aa26ef63/libc-top-half/musl/include/sys/stat.h#L71) - I could be wrong on this one: https://github.com/CraneStation/wasi-libc/search?q=UTIME_NOW&unscoped_q=UTIME_NOW - [Solarish](https://github.com/illumos/illumos-gate/blob/4e0c5eff9af325c80994e9527b7cb8b3a1ffd1d4/usr/src/uts/common/sys/stat.h#L478)
-
bors authored
Some update for vxWorks This is to address issues: rust-lang#1469 and rust-random/getrandom#86 (comment) What have been changed in this PR: 1. adding randBytes(), randABytes(), randUBytes(), randSecure() and taskDelay() 2. change armv7-wrs-vxworks to armv7-wrs-vxworks-eabihf 3. code cleanup
-
bors authored
Define newlib socket types by target arch This is a follow-up to https://github.com/rust-lang/libc/pull/1477. As mentioned in that PR, the primary (only?) users of these newlib definitions are myself and @leo60228. This PR makes it so that my arm-based 3DS target keeps using the old socket definitions while leo's aarch64-based Switch target uses the BSD versions. The 3DS also has inverted definitions for `POLLHUP` and `POLLOUT` for whatever reason, so I figured I'd take care of that here too.
-
- Aug 19, 2019
-
-
Thomas Lively authored
-
Thomas Lively authored
-