| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\ \ \
| | | |
| | | |
| | | | |
CPU_SETSIZE constant to dragonflybsd.
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | |
| | | |
| | | |
| | | | |
fs: add NSFS_MAGIC constant
NSFS_MAGIC defines the filesystem type for namespaces in Linux
|
|/ / /
| | |
| | | |
NSFS_MAGIC defines the filesystem type for namespaces in Linux
|
|\ \ \
| |_|/
|/| |
| | |
| | |
| | | |
Exposed malloc_size on Mac
This change exposes malloc_size, which is available in libc on MacOSX.
|
| | | |
|
| | | |
|
|/ / |
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
refactor: use grep -E instead of egrep
`egrep` and `fgrep` are obsolescent now. This PR updates all `egrep` and `fgrep` commands to `grep -E` and `grep -F`.
Running egrep/fgrep command with grep v3.8 will output the following warning to stderr:
```
egrep: warning: egrep is obsolescent; using grep -E
```
see also:
- https://www.phoronix.com/news/GNU-Grep-3.8-Stop-egrep-fgrep
- https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html
|