summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #2982 - JohnTitor:release-0.2.137, r=JohnTitor0.2.137bors2022-10-252-3/+3
|\ | | | | | | | | | | Prepare 0.2.137 release Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * Prepare 0.2.137 releaaseYuki Okushi2022-10-262-3/+3
|/ | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* Auto merge of #2979 - redox-os:redox-0.2.136, r=JohnTitorbors2022-10-252-0/+11
|\ | | | | | | | | | | Add MADV constants for Redox Required for `memmap2` crate
| * Add MADV constants for RedoxJeremy Soller2022-10-242-0/+11
| |
* | Auto merge of #2974 - SteveLauC:dirname-basename, r=JohnTitorbors2022-10-2519-3/+78
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2519-3/+78
| |/
* | Auto merge of #2978 - devnexen:musl_emscripten_msg_constants, r=JohnTitorbors2022-10-251-72/+0
|\ \ | | | | | | | | | follow-up on #2963, changing MSG* constant types for musl/emscripten.
| * | follow-up on #2963, changing MSG* constant types for musl/emscripten.David Carlier2022-10-251-72/+0
| |/
* | Auto merge of #2980 - JohnTitor:ignore-res-init-macos, r=JohnTitorbors2022-10-251-0/+3
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore `res_init` test on macOS This addresses the below failure: ``` = note: Undefined symbols for architecture x86_64: "_res_9_init", referenced from: main::fn_res_init::h8e336279ac8061c4 in main-00bd2ff8180a104c.3yxb2bpe56zwhp2u.rcgu.o ___test_fn_res_init in libmain.a(main.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ``` Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * Ignore `res_init` test on macOSYuki Okushi2022-10-251-0/+3
|/ | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* Auto merge of #2975 - JohnTitor:release-0.2.136, r=JohnTitor0.2.136bors2022-10-242-3/+3
|\ | | | | | | | | | | Prepare 0.2.136 release Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * Prepare 0.2.136 releaseYuki Okushi2022-10-242-3/+3
|/ | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* Auto merge of #2969 - pfmooney:illumos-aout, r=JohnTitorbors2022-10-231-2/+0
|\ | | | | | | | | | | illumos: Remove obsolete (and private) a.out define This cleans up an obsolete definition which [has been removed](https://github.com/illumos/illumos-gate/commit/fec047081731fd77caf46ec0471c501b2cb33894#diff-33b9ac79706b16f65c95e909fde32771b388f896bee74a006d13fefdf877fe91L163) in upstream illumos, and thus is causing libc-test to fail on up-to-date machines.
| * illumos: Remove obsolete (and private) a.out definePatrick Mooney2022-10-171-2/+0
| |
* | Auto merge of #2973 - asomers:MNT_bsd, r=JohnTitorbors2022-10-239-2/+93
|\ \ | | | | | | | | | Add more MNT_ flags on {Dragonfly,Net,Open}BSD
| * | Add new definitions to libc-test/semverAlan Somers2022-10-223-1/+44
| | |
| * | Style fixes, and filter out duplicate definitionsAlan Somers2022-10-223-7/+2
| | |
| * | Add more MNT_ flags on {Dragonfly,Net,Open}BSDAlan Somers2022-10-226-1/+54
| | |
* | | Auto merge of #2963 - devnexen:recvmsg_linux_fix, r=JohnTitorbors2022-10-231-0/+72
|\ \ \ | |/ / |/| | | | | | | | | | | linux fixes recvmmsg flags type for musl/emscripten. closes #2945
| * | warns that in the near future the MSG_* constants will haveDavid Carlier2022-10-221-0/+72
|/ / | | | | | | | | | | a type change to fit Musl and Emscripten. close #2945.
* | Auto merge of #2968 - name1e5s:macos_clocks, r=JohnTitorbors2022-10-184-4/+9
|\ \ | | | | | | | | | | | | | | | 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-182-4/+1
| | |
| * | add missing clockid_t on macOSyuhaixin.hx2022-10-182-0/+8
| |/
* | Auto merge of #2966 - redox-os:redox-0.2.135, r=JohnTitorbors2022-10-182-0/+8
|\ \ | | | | | | | | | | | | | | | Redox updates Adds some missing constants and functions for Redox
| * | redox: Add ENOTSUP, FIONREAD, MSG_DONTWAIT, and madviseJeremy Soller2022-10-182-0/+8
| | |
* | | Auto merge of #2967 - devnexen:missing_ioctl_sioc_flags, r=JohnTitorbors2022-10-182-0/+36
|\ \ \ | | | | | | | | | | | | | | | | | | | | linux add missing SIOC* constants. close #2909.
| * | | linux add missing SIOC* constants.David Carlier2022-10-172-0/+36
| | |/ | |/| | | | | | | close #2909.
* | | Auto merge of #2965 - semarie:locale, r=JohnTitorbors2022-10-182-0/+20
|\ \ \ | | | | | | | | | | | | openbsd: add more locale constants for use with newlocale()
| * | | add new constants to openbsd.txtSébastien Marie2022-10-181-0/+8
| | | |
| * | | openbsd: add more locale constants for use with newlocale()Sébastien Marie2022-10-171-0/+12
| |/ /
* | | Auto merge of #2970 - pfmooney:solarish-libsendfile, r=JohnTitorbors2022-10-181-11/+12
|\ \ \ | |/ / |/| | | | | | | | | | | solarish: Fix libsendfile symbol dependency A number of function symbols were erroneously grouped under the `libsendfile` link section. This should correct the situation.
| * | solarish: Fix libsendfile symbol dependencyPatrick Mooney2022-10-171-11/+12
|/ /
* | Auto merge of #2964 - devnexen:win32_putenv, r=JohnTitorbors2022-10-162-0/+12
|\ \ | | | | | | | | | | | | | | | adds putenv call to win32. closes #2926.
| * | adds putenv call to win32.David Carlier2022-10-162-0/+12
| | | | | | | | | | | | closes #2926.
* | | Auto merge of #2960 - folkertdev:linux-ifreq, r=JohnTitorbors2022-10-163-1/+75
|\ \ \ | |/ / |/| | | | | | | | | | | implement ifreq for linux defines the `ifreq` struct, for use with `ioctl`. I used the definition from the [manpages](https://man7.org/linux/man-pages/man7/netdevice.7.html)
| * | add `ifreq` and friends for linuxFolkert2022-10-163-1/+75
|/ /
* | Auto merge of #2958 - thomcc:tvos-support, r=JohnTitorbors2022-10-132-3/+16
|\ \ | | | | | | | | | | | | | | | Add support for tvOS This is essentially identical to the iOS support, as the OS is... essentially identical to iOS.
| * | Add support for tvosThom Chiovoloni2022-10-112-3/+16
| |/
* | Auto merge of #2957 - SteveLauC:time-fn, r=JohnTitorbors2022-10-134-2/+30
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add some time functions on glibc and musl #### man pages * [asctime/ctime man page](https://man7.org/linux/man-pages/man3/ctime.3.html) * [strftime](https://man7.org/linux/man-pages/man3/strftime.3.html) * [strptime](https://man7.org/linux/man-pages/man3/strptime.3.html) I didn't add `ctime()/ctime_r()` on musl because they involve the `time_t` type, which elicits [a deprecation wraning](https://github.com/rust-lang/libc/pull/1956). Is it fine to add these two functions on `musl`, they will have the same definitions as the `glibc` ones: ```rust pub fn ctime(timep: *const time_t) -> *mut ::c_char; pub fn ctime_r(timep: *const time_t, buf: *mut ::c_char) -> *mut ::c_char; ``` If it's ok, I will add them:)
| * | some time functions on glibc and muslSteve Lau2022-10-124-2/+30
| |/
* | Auto merge of #2959 - JohnTitor:exclude-more-android, r=JohnTitorbors2022-10-121-1/+2
|\ \ | |/ |/| | | | | | | | | Ignore `arm-linux-androideabi` on bors r? `@ghost` Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * Ignore `arm-linux-androideabi` on borsYuki Okushi2022-10-131-1/+2
|/ | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* 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
|/ /