| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| |
| |
| |
| | |
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)
|
|/ / |
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Don't link against iconv on apple targets when used by `std`
See https://github.com/rust-lang/libc/issues/2870 (and specifically my, erm, rant in https://github.com/rust-lang/libc/issues/2870#issuecomment-1271104762). I think we should probably remove it outright, but we definitely shouldn't have it in every Rust program by giving it to `std`.
FIxes https://github.com/rust-lang/libc/issues/2870
|
| |/ |
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| | |
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)
|
| | |
|
|\ \
| | |
| | |
| | | |
solarish amd64 regset constants
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Finish darwin os/lock.h bindings
This takes over for #2918, whose author indicated they won't be able to finish for a while: https://github.com/rust-lang/libc/pull/2918#issuecomment-1266096063.
Fixes #2917
Closes #2918
|
|/ / /
| | |
| | |
| | | |
Co-authored-by: jtnunley <jtnunley01@gmail.com>
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
GitHub Workflows security hardening
This PR adds explicit [permissions section](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions) to workflows. This is a security best practice because by default workflows run with [extended set of permissions](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token) (except from `on: pull_request` [from external forks](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)). By specifying any permission explicitly all others are set to none. By using the principle of least privilege the damage a compromised workflow can do (because of an [injection](https://securitylab.github.com/research/github-actions-untrusted-input/) or compromised third party tool or action) is restricted.
It is recommended to have [most strict permissions on the top level](https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions) and grant write permissions on [job level](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs) case by case.
|
| | |/
| |/|
| | |
| | | |
Signed-off-by: Alex <aleksandrosansan@gmail.com>
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | | |
gha: Downgrade macOS image to 11 as workaround
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|/ /
| |
| |
| | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
r=JohnTitor
add major/minor/makedev on apple OSes
This impl corresponds to the macros in [`sys/types.h`](https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/sys/types.h.auto.html):
```c
#define major(x) ((int32_t)(((u_int32_t)(x) >> 24) & 0xff))
#define minor(x) ((int32_t)((x) & 0xffffff))
#define makedev(x, y) ((dev_t)(((x) << 24) | (y)))
```
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
Update FreeBSD 13 CI image to 13.1
13.0 is EoL.
|
|/ /
| |
| |
| | |
13.0 is EoL.
|
|\ \
| | |
| | |
| | | |
linux add ptrace_rseq_configuration
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
mmap/madvise specific solaris additional flags.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Deploy GitHub Pages via GitHub Actions
This simplifies the deployment workflow. Tested it works fine on https://github.com/JohnTitor/libc/actions/runs/3151392197, you can also see https://johntitor.github.io/libc/.
r? `@ghost`
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\ \ \ \ \
| |/ / / /
|/| | | |
| | | | |
| | | | |
| | | | | |
Prepare 0.2.134 release
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|/ / / /
| | | |
| | | |
| | | | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Use `::Option` and not `Option` for `pthread_jit_write_callback_t`
The `pthread_jit_write_callback_t` type alias (introduced by https://github.com/rust-lang/libc/pull/2896) uses `Option` rather than `::Option`, which causes problems when trying to update the `libc` dependency that `std` has.
(Please cut a release after merging this <3)
|
|/ / / |
|
|\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | | |
Update Docker image to Ubuntu 22.04
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
r? `@ghost`
|
| | |
| | |
| | |
| | |
| | |
| | | |
...because of glibc version mismatching between Debian and Ubuntu.
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|