| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
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`?
|
| |/ |
|
|/
|
|
| |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|
|
|
| |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
| |
|
|\
| |
| |
| |
| |
| | |
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.
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
adds putenv call to win32.
closes #2926.
|
| | |
| | |
| | |
| | | |
closes #2926.
|
|/ / |
|
|/ |
|
|\
| |
| |
| |
| |
| | |
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 .
|
| | |
|
| | |
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
add missing STATX_ATTR_* constants on gnu/linux
Corresponds to [this](https://github.com/torvalds/linux/blob/master/include/uapi/linux/stat.h#L189~L191):
```c
#define STATX_ATTR_MOUNT_ROOT 0x00002000 /* Root of a mount */
#define STATX_ATTR_VERITY 0x00100000 /* [I] Verity protected file */
#define STATX_ATTR_DAX 0x00200000 /* File is currently in DAX state */
```
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
add xfs super magic to android targets
`XFS_SUPER_MAGIC` is defined in libc for android, but is missing in rust libc.
https://android.googlesource.com/platform/bionic/+/master/libc/include/sys/vfs.h#105
fix: #2948
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
add euidaccess and eaccess on gnu/musl linux
[man page for these two functions](https://man7.org/linux/man-pages/man3/euidaccess.3.html)
`uClibc` does not support them, so these two functions can not be put in `linux/mod.rs`.
|
| |/ / |
|
|\ \ \
| |_|/
|/| |
| | | |
os_log/signpost for apple api subset
|
| |/ |
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| | |
r=JohnTitor
add fgetpwent_r and fgetgrent_r on GNU/Linux
[man page for `fgetpwent_r()`](https://man7.org/linux/man-pages/man3/getpwent_r.3.html)
[man page for `fgetgrent_r()`](https://man7.org/linux/man-pages/man3/getgrent_r.3.html)
|
| | |
|
|/
|
|
| |
Co-authored-by: jtnunley <jtnunley01@gmail.com>
|
|\
| |
| |
| | |
linux add ptrace_rseq_configuration
|
| | |
|
|/
|
|
| |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\
| |
| |
| |
| |
| |
| |
| | |
Update Docker image to Ubuntu 22.04
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
r? `@ghost`
|
| |
| |
| |
| |
| |
| | |
It now causes an error because emsdk removed it.
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
| |
| |
| |
| | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
| |
| |
| |
| | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
| |
| |
| |
| | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
| |
| |
| |
| | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
| | |
|
|/ |
|
|\
| |
| |
| |
| |
| | |
Bump version to 0.2.133
Bump version to 0.2.133 to allow using #2902 from crates.io.
|
| | |
|
|\ \
| | |
| | |
| | | |
linux add FICLONE* ioctl.
|
| |/ |
|
| | |
|