summaryrefslogtreecommitdiff
path: root/src/unix/linux_like/linux/gnu
Commit message (Collapse)AuthorAgeFilesLines
* Add kexec_file_load system call for arm linuxRicardo Ribalda2023-04-141-0/+1
| | | | | | | | This syscall was introduced in Linux 5.0. References: - torvalds/linux@4ab65ba7a5cbad47520274d88d066bf8eb83f161 Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
* Add user_regs_struct for riscv32/64kxxt2023-03-282-0/+70
|
* Auto merge of #3148 - KoviRobi:add-reentrant-getmntent_r, r=JohnTitorbors2023-03-121-0/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-111-0/+10
| |
* | Auto merge of #3136 - nekopsykose:dccp, r=JohnTitorbors2023-03-121-21/+0
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | 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-031-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Move `copy_file_range` to `linux/mod.rs`Yuki Okushi2023-03-031-8/+0
|/ | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* Auto merge of #3119 - kosayoda:posix_spawn_gnu, r=JohnTitorbors2023-02-221-0/+24
|\ | | | | | | | | | | 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.
| * Add glibc extensions for posix_spawn*.kosayoda2023-02-141-0/+24
| |
* | Auto merge of #3076 - ETKNeil:add-statx-dioalign, r=JohnTitorbors2023-02-201-1/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | 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-201-1/+3
| |/
* | prctl SME flags for gnu arm64.David Carlier2023-02-141-0/+7
|/
* Auto merge of #3078 - glaubitz:m68k-fixes, r=JohnTitorbors2023-01-281-1/+1
|\ | | | | | | | | | | m68k: Fix incorrect type for sigaction::sa_flags This fixes a trivial bug where the wrong type was assumed for sigaction::sa_flags.
| * m68k: Fix incorrect type for sigaction::sa_flagsJohn Paul Adrian Glaubitz2023-01-201-1/+1
| |
* | Auto merge of #3074 - mbyzhang:master, r=JohnTitorbors2023-01-281-0/+4
|\ \ | | | | | | | | | | | | | | | linux: add PTRACE_SYSCALL_INFO_* Add `PTRACE_SYSCALL_INFO_*` for `ptrace_syscall_info.op`.
| * | linux: add PTRACE_SYSCALL_INFO_*Peter Zhang2023-01-191-0/+4
| |/
* | Auto merge of #3072 - Freax13:arm/user_regs, r=JohnTitorbors2023-01-281-0/+21
|\ \ | |/ |/| | | | | | | | | | | | | | | add `user_regs` for linux on arm This struct is used for `PTRACE_GETREGS` & `PTRACE_SETREGS`. We mirror the name used in `glibc`. This struct is called `pt_regs` in the kernel. Instead of a `uregs` array, we use separate named fields. > - \[ ] Edit corresponding file(s) under `libc-test/semver` when you add/remove item(s) AFAICT there's no file for linux on arm (not aarch64). Am I missing something here?
| * add `user_regs` for linux on armTom Dohrmann2023-01-221-0/+21
| | | | | | | | | | | | | | | | | | This struct is used for `PTRACE_GETREGS` & `PTRACE_SETREGS`. We mirror the name used in `glibc`. This struct is called `pt_regs` in the kernel. glibc uses a single array `uregs` instead of individual fields. The `asm/ptrace.h` header defined by the linux kernel defines macros to access the individual registers. Instead of `uregs` we just define the registers as individual fields.
* | Add pthread barrierAndrei Odintsov2023-01-1113-0/+23
|/
* Auto merge of #3007 - xen0n:fix-loong, r=JohnTitorbors2022-11-271-17/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the loongarch64 kernel ABI The initial loongarch64 support code went in too early, even before the upstream kernel ABI has finalized, and was not adjusted since then. No one with enough knowledge of LoongArch was involved in the initial review, so we have been shipping broken LoongArch support, but luckily the rustc port is not merged yet so no real damage has been done. Fix the following discrepancies: - There is no longer {g,s}etrlimit, only prlimit64. - There is no longer fstat and newfstatat, only statx. - MINSIGSTKSZ and SIGSTKSZ now have different values. - The binary sysctl syscall was removed from Linux long before the existence of upstream Linux/LoongArch port (5.5 vs 5.19) so even a wrapper does not make sense. There might be more but these are the most obvious. cc `@xry111` `@zhaixiaojuan`
| * Fix the loongarch64 kernel ABIWANG Xuerui2022-11-201-17/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial loongarch64 support code went in too early, even before the upstream kernel ABI has finalized, and was not adjusted since then. No one with enough knowledge of LoongArch was involved in the initial review, so we have been shipping broken LoongArch support, but luckily the rustc port is not merged yet so no real damage has been done. Fix the following discrepancies: - There is no longer {g,s}etrlimit, only prlimit64. - There is no longer fstat and newfstatat, only statx. - MINSIGSTKSZ and SIGSTKSZ now have different values. - The binary sysctl syscall was removed from Linux long before the existence of upstream Linux/LoongArch port (5.5 vs 5.19) so even a wrapper does not make sense. There might be more but these are the most obvious.
* | Add kexec_file_load system call for arm64 linuxDavid Tolnay2022-11-211-0/+1
|/
* Add sys/ucontext.h signatures for linux aarch64 glibcDavid Tolnay2022-11-191-0/+7
|
* Add ucontext and clone_args for loongarch64zhaixiaojuan2022-11-051-0/+33
|
* expose dirname and basenameSteve Lau2022-10-251-0/+8
|
* some time functions on glibc and muslSteve Lau2022-10-121-0/+11
|
* Auto merge of #2941 - SteveLauC:statx-constants-on-gnu-linux, r=JohnTitorbors2022-10-091-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | 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-091-0/+3
| |
* | Auto merge of #2947 - SteveLauC:euidaccess-and-eaccess, r=JohnTitorbors2022-10-091-0/+3
|\ \ | |/ |/| | | | | | | | | | | 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-081-0/+3
| |
* | add fgetpwent_r and fgetgrent_r on GNU/LinuxSteve Lau2022-10-071-0/+14
|/
* linux add ptrace_rseq_configurationDavid Carlier2022-09-291-0/+9
|
* Add new Linux system call constantsChristian Duerr2022-09-0914-0/+112
| | | | | | | This adds the latest Linux system call constants based on the Kernel's system call table: https://github.com/torvalds/linux/blob/master/arch/x86/entry/syscalls/syscall_64.tbl
* Added missing constants from elf.hPreben Aandahl2022-09-061-0/+2
|
* Add pthread_sigqueue.Francis Nixon2022-08-131-0/+1
| | | | | pthread_sigqueue is a gnu libc extension, however I have a use case for it, hence why I'm adding it.
* Add `gnu_get_[version|release]` for glibcChristian Legnitto2022-08-031-0/+5
| | | | See <https://sourceware.org/git/?p=glibc.git;a=blob;f=csu/version.c;h=8c0ed79c01223e1f12b54d19f90b5e5b7dd78d27;hb=HEAD#l51> and <http://refspecs.linux-foundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/libc-gnu-get-libc-version-1.html>
* Auto merge of #2838 - devnexen:linux_followup_prctl, r=JohnTitorbors2022-07-201-0/+13
|\ | | | | | | linux prctl add speculation control flags
| * linux prctl add speculation control flagsDavid Carlier2022-07-201-0/+13
| |
* | linux arm64 pointer, prctl auth control follow-up.David Carlier2022-06-291-0/+10
|/
* linux/glibc tagged ptr supports for arm64 control addition.David Carlier2022-06-261-0/+6
|
* linux 64 bits gnu/musl add clone_args for clone3 syscall.David Carlier2022-05-312-0/+31
|
* linux SOMAXCONN rework proposal.David Carlier2022-05-281-0/+2
| | | | glibc had increased to 4096 since couple of years already.
* Auto merge of #2607 - devnexen:user_fpsimd_struct_arm64, r=Amanieubors2022-05-281-0/+8
|\ | | | | | | linux glibc add user_fpsimd_struct struct
| * linux glibc add user_fpsimd_struct structDavid Carlier2022-01-041-0/+8
| |
* | Auto merge of #2768 - colincross:pthread_setname_np, r=Amanieubors2022-05-111-2/+0
|\ \ | | | | | | | | | | | | | | | | | | Promote pthread_getname_np and pthread_setname_np from glibc to linux musl libc added pthread_setname_np in 1.1.16 and pthread_getname_np in 1.2.3, and uClibc has had them since v1.0.20.
| * | Promote pthread_getname_np and pthread_setname_np from glibc to linuxColin Cross2022-05-101-2/+0
| | | | | | | | | | | | | | | musl libc added pthread_setname_np in 1.1.16 and pthread_getname_np in 1.2.3, and uClibc has had them since v1.0.20.
* | | Add loongarch64 supportzhaixiaojuan2022-04-284-1/+895
|/ /
* | Auto merge of #2719 - Gankra:fpsimd, r=Gankrabors2022-03-232-0/+14
|\ \ | | | | | | | | | | | | | | | Create optionally-available __int128 typedefs and use them for ARM64 definitions. Potentially fixes #2524, see the comments in the patch for details.
| * | Create optionally-available __int128 typedefs and use them for ARM64 ↵Aria Beingessner2022-03-232-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | definitions. This adds the following types to fixed_width_ints behind appropriate platform cfgs: * __int128 * __int128_t * __uint128 * __uint128_t and user_fpsimd_struct to arm64 android and linux.
* | | linux_like: add rseq syscallSergio Lopez2022-03-0814-0/+14
|/ / | | | | | | | | | | Add the rseq syscall to all arches in linux_like. Signed-off-by: Sergio Lopez <slp@redhat.com>