- Oct 25, 2020
-
-
Yuki Okushi authored
-
- Oct 07, 2020
-
-
Daniel Brooks authored
-
- Sep 21, 2020
-
-
Josh Triplett authored
Move the link line for `libdl` up to `src/unix/mod.rs`, making it easier to see all the libraries `libc` links to. This also makes `libdl` respect `target-feature=+crt-static`.
-
Josh Triplett authored
The two library blocks that specify `#[link(name = "util")]` do not actually reference any functions in `libutil`; the functions that do use `libutil` don't have any reference to it. And having two library blocks specify it results in two separate inclusions of `-lutil` on the linker command line. Move the link lines up to `src/unix/mod.rs`, making it easier to see all the libraries `libc` links to. This also makes `libutil` respect `target-feature=+crt-static`.
-
Josh Triplett authored
This will need corresponding changes in rust-lang/rust to activate, but this will make it possible to make those changes. Note that despite the apparent redundancy in config directives, the link directives cannot be simplified any further. Attempting to factor out the checks for `target_feature = "crt-static"` does not work.
-
- Aug 20, 2020
-
-
Jed Brown authored
Skip test on aarch64 due to https://github.com/rust-lang/libc/issues/1765
-
- Aug 05, 2020
-
-
Dark Kirb authored
DevkitPPC does not support unix sockets natively, meaning that bindings to these functions was removed for powerpc targets with "nintendo" as vendor. Suggested target json files: Nintendo Gamecube: ``` { "arch": "powerpc", "data-layout": "E-m:e-p:32:32-i64:64-n32", "dynamic-linking": false, "env": "newlib", "executables": true, "has-elf-tls": false, "has-rpath": true, "linker-flavor": "gcc", "llvm-target": "powerpc-eabi", "max-atomic-width": 32, "os": "dolphin", "target-c-int-width": "32", "target-endian": "big", "target-family": "unix", "target-mcount": "_mcount", "target-pointer-width": "32", "vendor": "nintendo" } ``` Nintendo Wii: ``` { "arch": "powerpc", "data-layout": "E-m:e-p:32:32-i64:64-n32", "dynamic-linking": false, "env": "newlib", "executables": true, "has-elf-tls": false, "has-rpath": true, "linker-flavor": "gcc", "llvm-target": "powerpc-eabi", "max-atomic-width": 32, "os": "revolution", "target-c-int-width": "32", "target-endian": "big", "target-family": "unix", "target-mcount": "_mcount", "target-pointer-width": "32", "vendor": "nintendo" } ```
-
- Jul 08, 2020
-
-
Jake Goulding authored
The new ARM-based platform doesn't need these as there's no legacy constraints. Tested via **demo.c** ```c int main() { fstat(0, NULL); fstatat(0, NULL, NULL, 0); lstat(NULL, NULL); stat(NULL, NULL); readdir(NULL); readdir_r(NULL, NULL, NULL); } ``` **Compilation** ```none % SDKROOT=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk MACOSX_DEPLOYMENT_TARGET=11.5 cc -arch arm64 demo.c % nm a.out 0000000100008030 d __dyld_private 0000000100000000 T __mh_execute_header U _fstat U _fstatat U _lstat 0000000100003e64 T _main U _readdir U _readdir_r U _stat U dyld_stub_binder ``` This has also been experimentally compiled on a Developer Transition Kit.
-
- May 21, 2020
-
-
Yuki Okushi authored
-
- Apr 11, 2020
-
-
Matthias Schiffer authored
Add strndup(), as specified by POSIX.1-2008.
-
- Apr 07, 2020
-
-
Brian Gavin authored
This does not add sys_siglist because the docs specify that the function should be used instead, whenever possible.
-
- Apr 03, 2020
-
-
Patrick Mooney authored
-
- Mar 26, 2020
-
-
Ivan Tham authored
Fix #1631
-
- Feb 29, 2020
-
-
Yuki Okushi authored
-
- Feb 21, 2020
-
-
Lzu Tao authored
-
- Feb 19, 2020
-
-
Marco A L Barbosa authored
-
- Sep 20, 2019
-
-
Artyom Pavlov authored
-
- Sep 16, 2019
-
-
gnzlbg authored
This adds libc-test support for Freebsd10 and a CI build job that tests FreeBSD10 with LIBC_CI only.
-
Magnus Ulimoen authored
-
- Sep 12, 2019
-
-
gnzlbg authored
-
- Jul 28, 2019
-
-
Luca Pizzamiglio authored
Currently, libc supports and detects freebsd11 and freebsd13 Unknown versions, like freebsd13, is treated as freebsd11. This patch solve the issues, detecting freebsd13 and treating it like freebsd12. Inverting the logic not(freebsd12) -> freebsd11 where possible
-
- Jul 26, 2019
-
-
Xavier L'Heureux authored
-
- Jul 21, 2019
-
-
Luca Pizzamiglio authored
Currently, libc supports and detects freebsd11 and freebsd13 Unknown versions, like freebsd13, is treated as freebsd11. This patch solve the issues, detecting freebsd13 and treating it like freebsd12. Inverting the logic not(freebsd12) -> freebsd11 where possible
-
- Jul 15, 2019
-
-
Xavier L'Heureux authored
-
Xavier L'Heureux authored
-
- Jun 23, 2019
-
-
Danilo Bargen authored
Add cfg_attr
-
- Jun 03, 2019
-
-
gnzlbg authored
-
- May 29, 2019
-
-
gnzlbg authored
-
- May 27, 2019
-
-
gnzlbg authored
-
- May 24, 2019
-
-
gnzlbg authored
This commits adds a second FreeBSD 12 build job, and splits the implementation of the FreeBSD module into two modules, one for FreeBSD 11, and one for FreeBSD 12. The FreeBSD 11 module is compiled always by default, and is mostly forward compatible with FreeBSD 12 systems. The FreeBSD 12 module is only built for now in libc's CI, and uses FreeBSD 12 data types and APIs, linking to symbols that are only available in FreeBSD 12. Basically, when LIBC_CI env variable is defined, and the host system is a FreeBSD 12 system, then the FreeBSD 12 module is automatically built and tested. Conditional compilation is done using a `cfg(freebsd12)` flag. This commit also re-enables many tests, and documents why some remain disabled.
-
gnzlbg authored
Closes #1055.
-
gnzlbg authored
Related to #657 .
-
- May 23, 2019
-
-
gnzlbg authored
-
- May 22, 2019
-
-
gnzlbg authored
The second argument of `gettimeofday` was a `*mut c_void` on all targets, but that type is incorrect in the following targets, where it should be a `*mut timezone` instead: On these other targets it appears that the signature of gettimeofday was incorrect (it takes a time-zone pointer instead of a void pointer): linux+gnu: http://man7.org/linux/man-pages/man2/gettimeofday.2.html freebsd: https://www.freebsd.org/cgi/man.cgi?query=gettimeofday&apropos=0&sektion=2&manpath=FreeBSD+11.2-stable&arch=default&format=html openbsd: https://man.openbsd.org/gettimeofday.2 android: https://github.com/ricardoquesada/android-ndk/blob/master/usr/include/sys/time.h dragonfly: https://www.dragonflybsd.org/cgi/web-man?command=gettimeofday§ion=2 This commit corrects the type on these targets, which is a breaking change. Due to how this API is commonly used (e.g. passing `ptr::null_mut` to the second argument), breakage should be minimal. Users wanting to support both versions can just write `ptr as *mut _` instead. Closes #1338.
-
- May 18, 2019
-
-
Danilo Bargen authored
-
- May 16, 2019
-
-
gnzlbg authored
See https://github.com/rust-lang/rust/pull/60775 .
-
gnzlbg authored
-
gnzlbg authored
-
- May 04, 2019
-
-
Jeremy Soller authored
-
- Apr 19, 2019
-
-
Jason King authored
-