summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* some time functions on glibc and muslSteve Lau2022-10-124-2/+30
|
* Auto merge of #2951 - MrCroxx:xx/bump-to-135, r=JohnTitor0.2.135bors2022-10-102-3/+3
|\ | | | | | | | | | | 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 .
| * bump to 0.2.135MrCroxx2022-10-092-3/+3
| |
* | Auto merge of #2954 - JohnTitor:ignore-i686-android, r=JohnTitorbors2022-10-101-2/+8
|\ \ | | | | | | | | | | | | | | | | | | Ignore `i686-linux-android` on bors Signed-off-by: Yuki Okushi <jtitor@2k36.org> r? `@ghost`
| * | Ignore Android targets on borsYuki Okushi2022-10-101-2/+8
|/ / | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | Auto merge of #2952 - SteveLauC:eaccess-on-freebsd-and-dragonfly, r=JohnTitorbors2022-10-103-0/+4
|\ \ | | | | | | | | | | | | | | | | | | 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&section=2)
| * | add eaccess on freebsd and dragonflySteve Lau2022-10-093-0/+4
| | |
* | | Auto merge of #2953 - SteveLauC:faccessat-on-illumos-and-solaris, r=JohnTitorbors2022-10-092-0/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | 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 faccessat on illumos/solaris and euidaccess on solarisSteve Lau2022-10-092-0/+4
|/ /
* | Auto merge of #2941 - SteveLauC:statx-constants-on-gnu-linux, r=JohnTitorbors2022-10-093-0/+9
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | 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 missing STATX_ATTR_* constants on gnu/linuxSteve Lau2022-10-093-0/+9
| |
* | Auto merge of #2949 - MrCroxx:xx/android-xfs-super-magic, r=JohnTitorbors2022-10-092-0/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 xfs super magic to android targetsMrCroxx2022-10-082-0/+12
| | |
* | | Auto merge of #2947 - SteveLauC:euidaccess-and-eaccess, r=JohnTitorbors2022-10-094-0/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
| * | | add euidaccess and eaccess on gnu/musl linuxSteve Lau2022-10-084-0/+10
| |/ /
* | | Auto merge of #2946 - devnexen:os_log_macos, r=JohnTitorbors2022-10-093-0/+42
|\ \ \ | |_|/ |/| | | | | os_log/signpost for apple api subset
| * | os_log/signpost for apple api subsetDavid CARLIER2022-10-073-0/+42
| |/
* | Auto merge of #2944 - thomcc:apple-iconv, r=JohnTitorbors2022-10-091-1/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | 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
| * | Don't link against iconv on apple targets when used by `std`Thom Chiovoloni2022-10-061-1/+4
| |/
* | Auto merge of #2943 - SteveLauC:fgetpwent_r-and-fgetgrent_r-on-GNU-Linux, ↵bors2022-10-092-0/+16
|\ \ | |/ |/| | | | | | | | | | | | | | | 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)
| * add fgetpwent_r and fgetgrent_r on GNU/LinuxSteve Lau2022-10-072-0/+16
| |
* | Auto merge of #2930 - devnexen:solarish_regset_amd64, r=JohnTitorbors2022-10-061-0/+31
|\ \ | | | | | | | | | solarish amd64 regset constants
| * | solarish amd64 regset constantsDavid Carlier2022-09-281-0/+31
| | |
* | | Auto merge of #2940 - thomcc:unfair_lock_finish, r=JohnTitorbors2022-10-063-0/+50
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Add bindings to Apple's `os/lock.h` APIs (os_unfair_lock)Thom Chiovoloni2022-10-053-0/+50
|/ / / | | | | | | | | | Co-authored-by: jtnunley <jtnunley01@gmail.com>
* | | Auto merge of #2938 - sashashura:patch-2, r=JohnTitorbors2022-10-042-0/+46
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | Harden workflows securitysashashura2022-10-042-0/+46
| | |/ | |/| | | | | | | Signed-off-by: Alex <aleksandrosansan@gmail.com>
* | | Auto merge of #2939 - JohnTitor:gha-macos-workaround, r=JohnTitorbors2022-10-041-1/+5
|\ \ \ | |/ / |/| | | | | | | | | | | gha: Downgrade macOS image to 11 as workaround Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * | gha: Downgrade macOS image to 11 as workaroundYuki Okushi2022-10-041-1/+5
|/ / | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | Auto merge of #2937 - SteveLauC:add-major-minor-makedev-on-apple-oses, ↵bors2022-10-021-0/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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))) ```
| * | add major/minor/makedev on apple OSesSteve Lau2022-10-021-0/+12
|/ /
* | Auto merge of #2936 - asomers:13.1, r=JohnTitorbors2022-10-011-1/+1
|\ \ | | | | | | | | | | | | | | | Update FreeBSD 13 CI image to 13.1 13.0 is EoL.
| * | Update FreeBSD 13 CI image to 13.1Alan Somers2022-10-011-1/+1
|/ / | | | | | | 13.0 is EoL.
* | Auto merge of #2923 - devnexen:ptrace_another_update, r=JohnTitorbors2022-09-303-0/+14
|\ \ | | | | | | | | | linux add ptrace_rseq_configuration
| * | linux add ptrace_rseq_configurationDavid Carlier2022-09-293-0/+14
| | |
* | | Auto merge of #2922 - devnexen:mman_update_solarish, r=JohnTitorbors2022-09-302-0/+6
|\ \ \ | | | | | | | | | | | | mmap/madvise specific solaris additional flags.
| * | | mmap/madvise specific solaris additional flags.David Carlier2022-09-242-0/+6
| | | |
* | | | Auto merge of #2933 - JohnTitor:ghpages-from-gha, r=JohnTitorbors2022-09-291-21/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | Deploy GitHub Pages via GitHub ActionsYuki Okushi2022-09-291-21/+22
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | | | | Auto merge of #2932 - JohnTitor:0.2.134, r=JohnTitor0.2.134bors2022-09-292-3/+3
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | Prepare 0.2.134 release Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * | | | Prepare 0.2.134 releaseYuki Okushi2022-09-292-3/+3
|/ / / / | | | | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | | | Auto merge of #2931 - thomcc:option-root, r=JohnTitorbors2022-09-291-1/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | Use `::Option` and not `Option` for `pthread_jit_write_callback_t`Thom Chiovoloni2022-09-291-1/+1
|/ / /
* | | Auto merge of #2915 - JohnTitor:road-to-jammy, r=JohnTitorbors2022-09-2835-153/+186
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | Update Docker image to Ubuntu 22.04 Signed-off-by: Yuki Okushi <jtitor@2k36.org> r? `@ghost`
| * | Downgrade to Ubuntu 20.04 on sparc64Yuki Okushi2022-09-281-1/+2
| | | | | | | | | | | | | | | | | | ...because of glibc version mismatching between Debian and Ubuntu. Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * | Update sparc64 Debian imageYuki Okushi2022-09-281-1/+1
| | | | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * | Do not import `sys/sendfile.h`Yuki Okushi2022-09-281-1/+0
| | | | | | | | | | | | | | | | | | It now causes an error because emsdk removed it. Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * | Ignore some itemsYuki Okushi2022-09-281-4/+120
| | | | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * | Try to update emsdk versionYuki Okushi2022-09-254-23/+18
| | | | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * | test: Unignore some itemsYuki Okushi2022-09-201-105/+13
| | | | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>