summaryrefslogtreecommitdiff
path: root/libc-test
Commit message (Collapse)AuthorAgeFilesLines
* Prepare 0.2.137 releaaseYuki Okushi2022-10-261-2/+2
| | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* Auto merge of #2979 - redox-os:redox-0.2.136, r=JohnTitorbors2022-10-251-0/+5
|\ | | | | | | | | | | Add MADV constants for Redox Required for `memmap2` crate
| * Add MADV constants for RedoxJeremy Soller2022-10-241-0/+5
| |
* | Auto merge of #2974 - SteveLauC:dirname-basename, r=JohnTitorbors2022-10-259-3/+43
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`?
| * | expose dirname and basenameSteve Lau2022-10-259-3/+43
| |/
* | Ignore `res_init` test on macOSYuki Okushi2022-10-251-0/+3
|/ | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* Prepare 0.2.136 releaseYuki Okushi2022-10-241-2/+2
| | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* Add new definitions to libc-test/semverAlan Somers2022-10-223-1/+44
|
* Auto merge of #2968 - name1e5s:macos_clocks, r=JohnTitorbors2022-10-182-2/+5
|\ | | | | | | | | | | add missing clockid_t on macOS See https://github.com/apple-open-source-mirror/Libc/blob/master/include/time.h#L205
| * remove redunant definition of CLOCK_UPTIME_RAWname1e5s2022-10-181-2/+1
| |
| * add missing clockid_t on macOSyuhaixin.hx2022-10-181-0/+4
| |
* | Auto merge of #2966 - redox-os:redox-0.2.135, r=JohnTitorbors2022-10-181-0/+4
|\ \ | | | | | | | | | | | | | | | Redox updates Adds some missing constants and functions for Redox
| * | redox: Add ENOTSUP, FIONREAD, MSG_DONTWAIT, and madviseJeremy Soller2022-10-181-0/+4
| | |
* | | Auto merge of #2967 - devnexen:missing_ioctl_sioc_flags, r=JohnTitorbors2022-10-181-0/+18
|\ \ \ | | | | | | | | | | | | | | | | | | | | linux add missing SIOC* constants. close #2909.
| * | | linux add missing SIOC* constants.David Carlier2022-10-171-0/+18
| | |/ | |/| | | | | | | close #2909.
* | | add new constants to openbsd.txtSébastien Marie2022-10-181-0/+8
|/ /
* | Auto merge of #2964 - devnexen:win32_putenv, r=JohnTitorbors2022-10-161-0/+4
|\ \ | | | | | | | | | | | | | | | adds putenv call to win32. closes #2926.
| * | adds putenv call to win32.David Carlier2022-10-161-0/+4
| | | | | | | | | | | | closes #2926.
* | | add `ifreq` and friends for linuxFolkert2022-10-162-1/+6
|/ /
* | some time functions on glibc and muslSteve Lau2022-10-122-2/+9
|/
* Auto merge of #2951 - MrCroxx:xx/bump-to-135, r=JohnTitor0.2.135bors2022-10-101-2/+2
|\ | | | | | | | | | | 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-091-2/+2
| |
* | add eaccess on freebsd and dragonflySteve Lau2022-10-092-0/+2
| |
* | Auto merge of #2941 - SteveLauC:statx-constants-on-gnu-linux, r=JohnTitorbors2022-10-092-0/+6
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | 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-092-0/+6
| |
* | Auto merge of #2949 - MrCroxx:xx/android-xfs-super-magic, r=JohnTitorbors2022-10-091-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-081-0/+1
| | |
* | | Auto merge of #2947 - SteveLauC:euidaccess-and-eaccess, r=JohnTitorbors2022-10-092-0/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-082-0/+4
| |/ /
* | | Auto merge of #2946 - devnexen:os_log_macos, r=JohnTitorbors2022-10-092-0/+18
|\ \ \ | |_|/ |/| | | | | os_log/signpost for apple api subset
| * | os_log/signpost for apple api subsetDavid CARLIER2022-10-072-0/+18
| |/
* | Auto merge of #2943 - SteveLauC:fgetpwent_r-and-fgetgrent_r-on-GNU-Linux, ↵bors2022-10-091-0/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | 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-071-0/+2
| |
* | Add bindings to Apple's `os/lock.h` APIs (os_unfair_lock)Thom Chiovoloni2022-10-052-0/+12
|/ | | | Co-authored-by: jtnunley <jtnunley01@gmail.com>
* Auto merge of #2923 - devnexen:ptrace_another_update, r=JohnTitorbors2022-09-302-0/+5
|\ | | | | | | linux add ptrace_rseq_configuration
| * linux add ptrace_rseq_configurationDavid Carlier2022-09-292-0/+5
| |
* | Prepare 0.2.134 releaseYuki Okushi2022-09-291-2/+2
|/ | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* Auto merge of #2915 - JohnTitor:road-to-jammy, r=JohnTitorbors2022-09-281-99/+144
|\ | | | | | | | | | | | | | | Update Docker image to Ubuntu 22.04 Signed-off-by: Yuki Okushi <jtitor@2k36.org> r? `@ghost`
| * 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-251-1/+9
| | | | | | | | 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>
| * test: Ignore some items changed in recent Linux versionsYuki Okushi2022-09-201-1/+15
| | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | CPU_SETSIZE constant to dragonflybsd.David Carlier2022-09-281-0/+1
| |
* | Added to apple.txtNathan Ricci2022-09-231-0/+2
|/
* Auto merge of #2906 - beetrees:bump-to-133, r=JohnTitor0.2.133bors2022-09-191-2/+2
|\ | | | | | | | | | | Bump version to 0.2.133 Bump version to 0.2.133 to allow using #2902 from crates.io.
| * Bump version to 0.2.133beetrees2022-09-111-2/+2
| |
* | Auto merge of #2899 - devnexen:linux_fileclone, r=JohnTitorbors2022-09-192-0/+3
|\ \ | | | | | | | | | linux add FICLONE* ioctl.
| * | linux add FICLONE* ioctl.David Carlier2022-09-192-0/+3
| |/
* | openbsd: add getmntinfo(3) and getfsstat(2) supportSébastien Marie2022-09-131-0/+5
| |