| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| | |
Prepare 0.2.137 release
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|/
|
|
| |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\
| |
| |
| |
| |
| | |
Add MADV constants for Redox
Required for `memmap2` crate
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
add dirname and basename
This PR adds `dirname(3)` and `basename(3)` on the following platforms:
* Linux with glibc
* Linux with musl
* Android
* FreeBSD
* DragonFlyBSD
* NetBSD
* OpenBSD
* Apple platforms
I tested this PR on my host machine (Linux with glibc), and got the following error:
```
RUNNING ALL TESTS
bad basename function pointer: rust: 140093945892128 (0x7f6a29e14d20) != c 140093945544944 (0x7f6a29dc00f0)
thread 'main' panicked at 'some tests failed', /home/steve/Documents/workspace/libc/target/debug/build/libc-test-592f01d15ee93e7a/out/main.rs:12:21
stack backtrace:
0: std::panicking::begin_panic
at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:616:12
1: main::main
at /home/steve/Documents/workspace/libc/target/debug/build/libc-test-592f01d15ee93e7a/out/main.rs:12:21
2: core::ops::function::FnOnce::call_once
at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/ops/function.rs:248:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: test failed, to rerun pass '--test main'
```
The reason for this error probably is that there are two `basename(3)` on Linux with glibc, the POSIX version and the GNU version, and they clash with each other. In C, if one `#include <libgen.h>`, then the POSIX version will be available; If one ` #define _GNU_SOURCE` and `#include <string.h>`, then the GNU one will be used.
Can we distinguish them in `libc`?
|
| |/ |
|
|\ \
| | |
| | |
| | | |
follow-up on #2963, changing MSG* constant types for musl/emscripten.
|
| |/ |
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Ignore `res_init` test on macOS
This addresses the below failure:
```
= note: Undefined symbols for architecture x86_64:
"_res_9_init", referenced from:
main::fn_res_init::h8e336279ac8061c4 in main-00bd2ff8180a104c.3yxb2bpe56zwhp2u.rcgu.o
___test_fn_res_init in libmain.a(main.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|/
|
|
| |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\
| |
| |
| |
| |
| | |
Prepare 0.2.136 release
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|/
|
|
| |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\
| |
| |
| |
| |
| | |
illumos: Remove obsolete (and private) a.out define
This cleans up an obsolete definition which [has been removed](https://github.com/illumos/illumos-gate/commit/fec047081731fd77caf46ec0471c501b2cb33894#diff-33b9ac79706b16f65c95e909fde32771b388f896bee74a006d13fefdf877fe91L163) in upstream illumos, and thus is causing libc-test to fail on up-to-date machines.
|
| | |
|
|\ \
| | |
| | |
| | | |
Add more MNT_ flags on {Dragonfly,Net,Open}BSD
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | | |
linux fixes recvmmsg flags type for musl/emscripten.
closes #2945
|
|/ /
| |
| |
| |
| |
| | |
a type change to fit Musl and Emscripten.
close #2945.
|
|\ \
| | |
| | |
| | |
| | |
| | | |
add missing clockid_t on macOS
See https://github.com/apple-open-source-mirror/Libc/blob/master/include/time.h#L205
|
| | | |
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
Redox updates
Adds some missing constants and functions for Redox
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
linux add missing SIOC* constants.
close #2909.
|
| | |/
| |/|
| | |
| | | |
close #2909.
|
|\ \ \
| | | |
| | | |
| | | | |
openbsd: add more locale constants for use with newlocale()
|
| | | | |
|
| |/ / |
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | | |
solarish: Fix libsendfile symbol dependency
A number of function symbols were erroneously grouped under the `libsendfile` link section. This should correct the situation.
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
adds putenv call to win32.
closes #2926.
|
| | |
| | |
| | |
| | | |
closes #2926.
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | | |
implement ifreq for linux
defines the `ifreq` struct, for use with `ioctl`. I used the definition from the [manpages](https://man7.org/linux/man-pages/man7/netdevice.7.html)
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
Add support for tvOS
This is essentially identical to the iOS support, as the OS is... essentially identical to iOS.
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
add some time functions on glibc and musl
#### man pages
* [asctime/ctime man page](https://man7.org/linux/man-pages/man3/ctime.3.html)
* [strftime](https://man7.org/linux/man-pages/man3/strftime.3.html)
* [strptime](https://man7.org/linux/man-pages/man3/strptime.3.html)
I didn't add `ctime()/ctime_r()` on musl because they involve the `time_t` type, which elicits [a deprecation wraning](https://github.com/rust-lang/libc/pull/1956).
Is it fine to add these two functions on `musl`, they will have the same definitions as the `glibc` ones:
```rust
pub fn ctime(timep: *const time_t) -> *mut ::c_char;
pub fn ctime_r(timep: *const time_t, buf: *mut ::c_char) -> *mut ::c_char;
```
If it's ok, I will add them:)
|
| |/ |
|
|\ \
| |/
|/|
| |
| |
| |
| | |
Ignore `arm-linux-androideabi` on bors
r? `@ghost`
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|/
|
|
| |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\
| |
| |
| |
| |
| | |
Bump to 0.2.135
I'm going to make a new release as requested by https://github.com/nix-rust/nix/pull/1743#issuecomment-1272269999 .
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Ignore `i686-linux-android` on bors
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
r? `@ghost`
|
|/ /
| |
| |
| | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
add eaccess on freebsd and dragonfly
[man page of freebsd](https://www.freebsd.org/cgi/man.cgi?query=eaccess&sektion=2&n=1)
[man page of dragonfly](https://man.dragonflybsd.org/?command=access§ion=2)
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | | |
add faccessat on illumos/solaris and euidaccess on solaris
[`faccessat` man page of illumos](https://illumos.org/man/2/faccessat)
[`faccessat` and `euidaccess` man page of solaris](https://docs.oracle.com/cd/E88353_01/html/E37841/access-2.html)
|
|/ / |
|