summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #3145 - coolreader18:redox-locale, r=JohnTitorhomu-tmpbors2023-03-132-1/+11
|\ | | | | | | | | | | Add LC_ constants for redox (and truncate() is now supported) From `relibc/include/bits/locale.h` and `relibc/src/header/unistd/mod.rs`
| * Add LC_ constants for redox (and truncate() is now supported)Noa2023-03-102-1/+11
| |
* | Auto merge of #3148 - KoviRobi:add-reentrant-getmntent_r, r=JohnTitorbors2023-03-122-0/+11
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add reentrant glibc getmntent_r - \[x] Edit corresponding file(s) under `libc-test/semver` when you add/remove item(s) - \[x] `rustc ci/style.rs && ./style src` - \[ ] `cd libc-test && cargo test` (This might fail on your env due to environment difference between your env and CI. Ignore failures if you are not sure.) <details> <summary>**Maybe**, see the cargo test output -- I am unsure about the failures</summary> ``` …/libc-rust/libc-test on  add-reentrant-getmntent_r [⇕] is 📦 v0.2.140 via 🦀 v1.67.0 via  (nix-shell-env) at 23:04:37 nu ❯ cargo test Compiling libc v0.2.140 (/home/rmk35/programming/rust/libc-rust) Compiling libc-test v0.2.140 (/home/rmk35/programming/rust/libc-rust/libc-test) The following warnings were emitted during compilation: warning: In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/types.h:25, warning: from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/param.h:25, warning: from src/cmsg.c:1: warning: /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] warning: 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) warning: | ^~~~~~~ warning: In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/types.h:25, warning: from src/makedev.c:1: warning: /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] warning: 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) warning: | ^~~~~~~ warning: In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/time.h:25, warning: from src/errqueue.c:1: warning: /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] warning: 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) warning: | ^~~~~~~ warning: In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/signal.h:25, warning: from src/sigrt.c:1: warning: /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] warning: 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) warning: | ^~~~~~~ warning: In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/bits/libc-header-start.h:33, warning: from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/stdio.h:27, warning: from /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:1: warning: /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] warning: 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) warning: | ^~~~~~~ warning: /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c: In function ‘__test_roundtrip_inotify_event’: warning: /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:23145:13: note: the ABI of passing struct with a flexible array member has changed in GCC 4.4 warning: 23145 | ) { warning: | ^ warning: /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c: In function ‘__test_fsize_af_alg_iv_iv’: warning: /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:25567:34: error: invalid application of ‘sizeof’ to incomplete type ‘__u8[]’ {aka ‘unsigned char[]’} warning: 25567 | return sizeof(foo->iv); warning: | ^ warning: /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:25568:17: error: control reaches end of non-void function [-Werror=return-type] warning: 25568 | } warning: | ^ warning: At top level: warning: cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics warning: cc1: all warnings being treated as errors error: failed to run custom build command for `libc-test v0.2.140 (/home/rmk35/programming/rust/libc-rust/libc-test)` Caused by: process didn't exit successfully: `/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-e11b1093bd48972c/build-script-build` (exit status: 1) --- stdout TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/cmsg.o" "-c" "src/cmsg.c" cargo:warning=In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/types.h:25, cargo:warning= from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/param.h:25, cargo:warning= from src/cmsg.c:1: cargo:warning=/nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] cargo:warning= 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ exit status: 0 cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu AR_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu AR_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = Some("ar") cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu ARFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu ARFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None running: "ar" "cq" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libcmsg.a" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/cmsg.o" exit status: 0 running: "ar" "s" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libcmsg.a" exit status: 0 cargo:rustc-link-lib=static=cmsg cargo:rustc-link-search=native=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/makedev.o" "-c" "src/makedev.c" cargo:warning=In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/sys/types.h:25, cargo:warning= from src/makedev.c:1: cargo:warning=/nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] cargo:warning= 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ exit status: 0 cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu AR_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu AR_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = Some("ar") cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu ARFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu ARFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None running: "ar" "cq" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libmakedev.a" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/makedev.o" exit status: 0 running: "ar" "s" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libmakedev.a" exit status: 0 cargo:rustc-link-lib=static=makedev cargo:rustc-link-search=native=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/errqueue.o" "-c" "src/errqueue.c" cargo:warning=In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/time.h:25, cargo:warning= from src/errqueue.c:1: cargo:warning=/nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] cargo:warning= 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ exit status: 0 cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu AR_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu AR_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = Some("ar") cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu ARFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu ARFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None running: "ar" "cq" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/liberrqueue.a" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/errqueue.o" exit status: 0 running: "ar" "s" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/liberrqueue.a" exit status: 0 cargo:rustc-link-lib=static=errqueue cargo:rustc-link-search=native=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/sigrt.o" "-c" "src/sigrt.c" cargo:warning=In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/signal.h:25, cargo:warning= from src/sigrt.c:1: cargo:warning=/nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] cargo:warning= 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ exit status: 0 cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu AR_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu AR_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = Some("ar") cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu ARFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu ARFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None running: "ar" "cq" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libsigrt.a" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/src/sigrt.o" exit status: 0 running: "ar" "s" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/libsigrt.a" exit status: 0 cargo:rustc-link-lib=static=sigrt cargo:rustc-link-search=native=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out ----------------------------------------- cargo:rerun-if-changed=../src/lib.rs cargo:rerun-if-changed=../src/macros.rs cargo:rerun-if-changed=../src/fixed_width_ints.rs cargo:rerun-if-changed=../src/unix/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/gnu/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/gnu/b64/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/arch/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/arch/generic/mod.rs cargo:rerun-if-changed=../src/unix/linux_like/linux/align.rs OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = Some("gcc") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-Wall" "-Wextra" "-Werror" "-Wno-unused-parameter" "-Wno-type-limits" "-Wno-address-of-packed-member" "-Wno-unknown-warning-option" "-Wno-deprecated-declarations" "-D_GNU_SOURCE" "-D__GLIBC_USE_DEPRECATED_SCANF" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/02794b85cf18899c-main.o" "-c" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c" cargo:warning=In file included from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/bits/libc-header-start.h:33, cargo:warning= from /nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/stdio.h:27, cargo:warning= from /home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:1: cargo:warning=/nix/store/pqnd39aq2sksad2zvswjcpkqdc7ig3f9-glibc-2.35-224-dev/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] cargo:warning= 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) cargo:warning= | ^~~~~~~ cargo:warning=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c: In function ‘__test_roundtrip_inotify_event’: cargo:warning=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:23145:13: note: the ABI of passing struct with a flexible array member has changed in GCC 4.4 cargo:warning=23145 | ) { cargo:warning= | ^ cargo:warning=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c: In function ‘__test_fsize_af_alg_iv_iv’: cargo:warning=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:25567:34: error: invalid application of ‘sizeof’ to incomplete type ‘__u8[]’ {aka ‘unsigned char[]’} cargo:warning=25567 | return sizeof(foo->iv); cargo:warning= | ^ cargo:warning=/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c:25568:17: error: control reaches end of non-void function [-Werror=return-type] cargo:warning=25568 | } cargo:warning= | ^ cargo:warning=At top level: cargo:warning=cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics cargo:warning=cc1: all warnings being treated as errors exit status: 1 --- stderr rust version: 1.67.0 error occurred: Command "gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-Wall" "-Wextra" "-Wall" "-Wextra" "-Werror" "-Wno-unused-parameter" "-Wno-type-limits" "-Wno-address-of-packed-member" "-Wno-unknown-warning-option" "-Wno-deprecated-declarations" "-D_GNU_SOURCE" "-D__GLIBC_USE_DEPRECATED_SCANF" "-o" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/02794b85cf18899c-main.o" "-c" "/home/rmk35/programming/rust/libc-rust/target/debug/build/libc-test-3af459ed2042c40f/out/main.c" with args "gcc" did not execute successfully (status code exit status: 1). …/libc-rust/libc-test on  add-reentrant-getmntent_r [⇕] is 📦 v0.2.140 via 🦀 v1.67.0 via  (nix-shell-env) took 4s at 23:04:44 ✖ 101 nu ❯ ``` </details>
| * | Add reentrant glibc getmntent_rKovacsics Robert2023-03-112-0/+11
| |/
* | Auto merge of #3147 - devnexen:haiku_stringlist, r=JohnTitorbors2023-03-122-1/+14
|\ \ | | | | | | | | | Haiku StringList api addition
| * | Haiku StringList api additionDavid Carlier2023-03-122-1/+14
| |/
* | Auto merge of #3136 - nekopsykose:dccp, r=JohnTitorbors2023-03-124-38/+38
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | linux: move DCCP_ constants from linux/gnu to linux closes #3132 these constants come from linux headers, so they should be exposed for "linux", not just glibc. this change exposes them for linux/musl and linux/uclibc. of note, android contains these same constants, but moving it to linux-like would also expose them on emscripten, which does not have it. (not sure if things are placed in the correct place, but this looks like an okayish start)
| * linux: move DCCP_ constants from linux/gnu to linuxpsykose2023-03-034-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | closes #3132 these constants come from linux headers, so they should be exposed for "linux", not just glibc. this change exposes them for linux/musl and linux/uclibc. of note, android contains these same constants, but moving it to linux-like would also expose them on emscripten, which does not have it.
* | Auto merge of #3141 - Amanieu:v0.2.140, r=JohnTitor0.2.140bors2023-03-092-9/+9
|\ \ | | | | | | | | | Bump version to 0.2.140
| * | Bump version to 0.2.140Amanieu d'Antras2023-03-052-9/+9
| | |
* | | Auto merge of #3143 - connor4312:add-errno, r=JohnTitorbors2023-03-081-0/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | wasi: add __errno_location This was also missing from wasi's .rs. It seems to work as on other targets with wasm32-wasi on nightly.
| * | | wasi: add __errno_locationConnor Peet2023-03-071-0/+2
| | | | | | | | | | | | | | | | This was also missing from wasi's .rs
* | | | Auto merge of #3037 - ferrocene:pa-check-cfg, r=JohnTitorbors2023-03-082-25/+97
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the unstable `check-cfg` feature behind an environment variable `check-cfg` ([Rust](https://doc.rust-lang.org/stable/unstable-book/compiler-flags/check-cfg.html), [Cargo](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg)) is an unstable features that warns when you write an unknown `#[cfg]` (likely due to a typo). The feature works out of the box for default cfgs and features provided by Cargo, but requires providing the list of extra cfgs when custom ones are used. This PR adds the `LIBC_CHECK_CFG` environment variable. When enabled, the build script will use the `cargo:rustc-check-cfg` println to instruct the compiler of all the possible cfgs set by libc. The build script was also refactored to ensure all cfgs are accounted for, and a CI job using `-Z check-cfg` was added. This PR is best reviewed commit-by-commit. ## Why is this needed? The main motivation for this PR is that `rust-lang/rust` enforces `check-cfg` across the whole codebase. Normally this is not a problem for dependencies like `libc`, as Cargo caps the lints and thus doesn't show the generated warnings. When developing support for new targets though, it's helpful to use a custom libc fork to develop the libc port and the std port together. Unfortunately doing that today results in a bunch of compilation errors, since lints are not capped with `path` dependencies. My goal with this PR is to address that shortcoming, as we'd then be able to set the `LIBC_CHECK_CFG=1` environment variable in the Rust build system and remove the compilation errors. This PR might also be helpful for libc maintainers, as the CI check might spot typos in `#[cfg]`s.
| * | | compatibility with rust 1.13.0Pietro Albini2023-03-081-3/+3
| | | |
| * | | add ci job to test check-cfgPietro Albini2023-03-061-0/+17
| | | |
| * | | support extra check-cfgPietro Albini2023-03-061-0/+11
| | | |
| * | | emit rustc-check-cfg in the build script when LIBC_CHECK_CFG=1Pietro Albini2023-03-061-0/+12
| | | |
| * | | ensure all cfgs used are allowedPietro Albini2023-03-061-0/+30
| | | |
| * | | refactor build script to use a function to set cfgsPietro Albini2023-03-061-25/+27
| |/ /
* | | Auto merge of #3142 - connor4312:wasi-irwx, r=JohnTitorbors2023-03-071-0/+3
|\ \ \ | |/ / |/| | | | | | | | | | | add S_IRWX* constants to wasi It seems like all other platforms have `/S_IRWX[OGU]/`, and the `libc` crate looks for them, but they were missing in WASI.
| * | add S_IRWX* constants to wasiConnor Peet2023-03-061-0/+3
|/ /
* | Auto merge of #3138 - Amanieu:ohos, r=JohnTitorbors2023-03-048-102/+157
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for OpenHarmony This PR adds support for [OpenHarmony](https://gitee.com/openharmony/docs/) targets: - `aarch64-linux-ohos` - `arm-linux-ohos` Compiler team MCP: https://github.com/rust-lang/compiler-team/issues/568 OpenHarmony uses a fork of musl with minor modifications, so most of the code is shared with other musl targets. Additionally, although OpenHarmony uses musl 1.2, it is still ABI-compatible with musl 1.1 so the existing bindings should continue to work until https://github.com/rust-lang/libc/pull/3068 is merged. A PR to add the targets to rustc will follow after this is merged.
| * | Add support for OpenHarmonyAmanieu d'Antras2023-03-048-102/+157
|/ /
* | Auto merge of #3133 - slp:musl-copy-file-range, r=JohnTitorbors2023-03-033-8/+10
|\ \ | | | | | | | | | | | | | | | linux/musl: add copy_file_range syscall wrapper musl supports copy_file_range since v1.1.24, so expose the corresponding wrapper here too.
| * | Move `copy_file_range` to `linux/mod.rs`Yuki Okushi2023-03-033-17/+9
| | | | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| * | linux/musl: add copy_file_range syscall wrapperSergio Lopez2023-03-032-0/+10
| |/ | | | | | | | | | | | | musl supports copy_file_range since v1.1.24, so expose the corresponding wrapper here too. Signed-off-by: Sergio Lopez <slp@redhat.com>
* | Auto merge of #3039 - devnexen:membarrier_flags_linux, r=JohnTitorbors2023-03-035-0/+55
|\ \ | | | | | | | | | membarrier flags constants addition
| * | membarrier flags constants additionDavid Carlier2023-02-225-0/+55
| | |
* | | Auto merge of #3134 - JohnTitor:ignore-some-IP_BIND-freebsd, r=JohnTitorbors2023-03-031-0/+4
|\ \ \ | |_|/ |/| | | | | Ignore some removed `IP_*` consts on FreeBSD
| * | Ignore some removed `IP_*` consts on FreeBSDYuki Okushi2023-03-031-0/+4
|/ / | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | Auto merge of #3130 - flba-eb:remote_duplicated_atof, r=JohnTitorbors2023-03-011-1/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove duplicated atof function declaration This adapts to the changes done with PR #3036, removing a function declaration which would exist twice otherwise. cc: `@gh-tr,` `@samkearney`
| * | Remove duplicated atof function declarationFlorian Bartels2023-02-211-1/+0
| | | | | | | | | | | | This adapts to the changes done with PR #3036
* | | Auto merge of #3128 - stepancheg:qos-class, r=JohnTitorbors2023-03-013-0/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | Add posix_spawnattr_set_qos_class_np https://opensource.apple.com/source/libpthread/libpthread-137.1.1/pthread/spawn.h
| * | | Add posix_spawnattr_set_qos_class_npStiopa Koltsov2023-02-223-0/+11
| | |/ | |/| | | | | | | https://opensource.apple.com/source/libpthread/libpthread-137.1.1/pthread/spawn.h
* | | Auto merge of #3127 - JohnTitor:rm-semver-check, r=JohnTitorbors2023-03-013-102/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Drop semver check job on CI This hasn't run for a while and the crate no longer works unless a whole rewriting happens (due to the save analysis removal). We sometimes allow breaking changes if an item doesn't work in all the use cases (i.e. we can imply there's no real user). For these reasons, I think it's fine to remove these jobs.
| * | Drop semver check job on CIYuki Okushi2023-02-223-102/+1
| | | | | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | | Auto merge of #3126 - semarie:openbsd-thrname, r=JohnTitorbors2023-02-221-0/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | add p_name field in kinfo_proc struct on OpenBSD pthread_get_name_np() and pthread_set_name_np() are now using a kernel storage and could be viewed from outside the process. Reference: https://github.com/openbsd/src/commit/cef5a146e600a27064f0ea2aa25fc5f8663cb9b7
| * | add p_name field in kinfo_proc struct on OpenBSDSébastien Marie2023-02-221-0/+1
|/ / | | | | | | | | | | | | pthread_get_name_np() and pthread_set_name_np() are now using a kernel storage and could be viewed from outside the process. Reference: https://github.com/openbsd/src/commit/cef5a146e600a27064f0ea2aa25fc5f8663cb9b7
* | Auto merge of #3119 - kosayoda:posix_spawn_gnu, r=JohnTitorbors2023-02-223-0/+32
|\ \ | | | | | | | | | | | | | | | Add glibc extensions for posix_spawn*. This PR adds support for posix spawn extensions implemented by glibc: https://elixir.bootlin.com/glibc/glibc-2.37.9000/source/posix/spawn.h#L201.
| * | Skip certain tests on sparc64 due to old glibc version.kosayoda2023-02-211-0/+4
| | |
| * | Add glibc extensions for posix_spawn*.kosayoda2023-02-142-0/+28
| | |
* | | Auto merge of #2894 - ecnelises:aix, r=JohnTitorbors2023-02-223-1/+2901
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support AIX operating system This PR adds rather complete definitions and declarations from AIX system headers, with little modification to fit the assumption in some crates or other targets in libc. Currently only 64-bit PowerPC targets on AIX are proposed, so definitions depending on pointer width are located in `powerpc64` module. This one should be successor of #2278 (and thanks to `@EGuesnet` 's initial work).
| * | | Support AIX operating systemQiu Chaofan2023-02-223-1/+2901
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds rather complete definitions and declarations from AIX system headers, with little modification to fit the assumption in some crates or other targets in libc. Currently only 64-bit PowerPC targets on AIX are proposed, so definitions depending on pointer width are located in powerpc64 module. Thanks to initial work from Etienne Guesnet, this patch is based on it (#2278).
* | | | Auto merge of #3124 - valpackett:fbsd, r=JohnTitorbors2023-02-214-2/+18
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | FreeBSD: add AT_RESOLVE_BENEATH, Linux-compatible clock aliases - sorry for the spam xD *now* I should be done with that area of the API… - +mirror one other thing that [was done](https://reviews.freebsd.org/D30988) in the headers to reduce portability annoyance :)
| * | | FreeBSD: add Linux-compatible clock aliasesVal Packett2023-02-193-0/+14
| | | | | | | | | | | | | | | | | | | | They were added in https://reviews.freebsd.org/D30988 which landed for 13, but as they're just aliases, they will work on any version.
| * | | FreeBSD: add AT_RESOLVE_BENEATHVal Packett2023-02-193-2/+4
| | | |
* | | | Auto merge of #3076 - ETKNeil:add-statx-dioalign, r=JohnTitorbors2023-02-203-1/+7
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | Add STATX_DIOALIGN (introduced in linux v6.1) The [STATX_DIOALIGN](https://elixir.bootlin.com/linux/v6.1/A/ident/STATX_DIOALIGN) constant was introduced in linux 6.1 The statx structure thus gained [2 more fields](https://elixir.bootlin.com/linux/v6.1/source/include/uapi/linux/stat.h#L127)
| * | | Add STATX_DIOALIGN (introduced in linux v6.1)ETKNeil2023-02-203-1/+7
| | | |
* | | | Auto merge of #3121 - devnexen:fbsd_sctp4, r=JohnTitorbors2023-02-192-0/+71
|\ \ \ \ | | | | | | | | | | | | | | | freebsd further sctp support.
| * | | | freebsd further sctp support.David Carlier2023-02-182-0/+71
| |/ / /