diff options
-rw-r--r-- | .github/workflows/bors.yml | 10 | ||||
-rw-r--r-- | libc-test/build.rs | 3 | ||||
-rw-r--r-- | libc-test/semver/dragonfly.txt | 1 | ||||
-rw-r--r-- | libc-test/semver/freebsd.txt | 1 | ||||
-rw-r--r-- | libc-test/semver/linux-gnu.txt | 3 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/mod.rs | 2 | ||||
-rw-r--r-- | src/unix/linux_like/linux/gnu/mod.rs | 3 | ||||
-rw-r--r-- | src/unix/solarish/mod.rs | 2 | ||||
-rw-r--r-- | src/unix/solarish/solaris.rs | 2 |
9 files changed, 25 insertions, 2 deletions
diff --git a/.github/workflows/bors.yml b/.github/workflows/bors.yml index fc9a5b6ec3..89850c8cc4 100644 --- a/.github/workflows/bors.yml +++ b/.github/workflows/bors.yml @@ -134,7 +134,10 @@ jobs: arm-unknown-linux-gnueabihf, arm-unknown-linux-musleabihf, asmjs-unknown-emscripten, - i686-linux-android, + # FIXME: Started to fail since 2022-10-10: + # error: linking with `i686-linux-android-gcc` failed: exit status: 1 + # ld: error: cannot find -lunwind + # i686-linux-android, i686-unknown-linux-musl, mips-unknown-linux-gnu, mips-unknown-linux-musl, @@ -155,7 +158,10 @@ jobs: #wasm32-wasi, sparc64-unknown-linux-gnu, wasm32-unknown-emscripten, - x86_64-linux-android, + # FIXME: Started to fail since 2022-10-10: + # error: linking with `x86_64-linux-android-gcc` failed: exit status: 1 + # ld: error: cannot find -lunwind + # x86_64-linux-android, x86_64-unknown-linux-gnux32, x86_64-unknown-linux-musl, # FIXME: It seems some items in `src/unix/mod.rs` diff --git a/libc-test/build.rs b/libc-test/build.rs index 3611ae0923..2fc7cc4540 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3313,6 +3313,9 @@ fn test_linux(target: &str) { | "IFLA_ALT_IFNAME" | "IFLA_PERM_ADDRESS" | "IFLA_PROTO_DOWN_REASON" + | "STATX_ATTR_MOUNT_ROOT" + | "STATX_ATTR_VERITY" + | "STATX_ATTR_DAX" if sparc64 => true, // Added in Linux 5.13 "PTRACE_GET_RSEQ_CONFIGURATION" if sparc64 => true, diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt index e56441640b..e27f0f6fda 100644 --- a/libc-test/semver/dragonfly.txt +++ b/libc-test/semver/dragonfly.txt @@ -1536,3 +1536,4 @@ vmspace wait4 waitid xucred +eaccess
\ No newline at end of file diff --git a/libc-test/semver/freebsd.txt b/libc-test/semver/freebsd.txt index e74355f1e5..649ef77161 100644 --- a/libc-test/semver/freebsd.txt +++ b/libc-test/semver/freebsd.txt @@ -1925,3 +1925,4 @@ wait4 waitid xallocx xucred +eaccess
\ No newline at end of file diff --git a/libc-test/semver/linux-gnu.txt b/libc-test/semver/linux-gnu.txt index 3ad582e210..6b43d6202b 100644 --- a/libc-test/semver/linux-gnu.txt +++ b/libc-test/semver/linux-gnu.txt @@ -424,6 +424,9 @@ STATX_ATTR_COMPRESSED STATX_ATTR_ENCRYPTED STATX_ATTR_IMMUTABLE STATX_ATTR_NODUMP +STATX_ATTR_MOUNT_ROOT +STATX_ATTR_VERITY +STATX_ATTR_DAX STATX_BASIC_STATS STATX_BLOCKS STATX_BTIME diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index 3bf083c5ca..db21597d98 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -1731,6 +1731,8 @@ extern "C" { pub fn eui64_ntoa(id: *const eui64, a: *mut ::c_char, len: ::size_t) -> ::c_int; pub fn eui64_ntohost(hostname: *mut ::c_char, len: ::size_t, id: *const eui64) -> ::c_int; pub fn eui64_hostton(hostname: *const ::c_char, id: *mut eui64) -> ::c_int; + + pub fn eaccess(path: *const ::c_char, mode: ::c_int) -> ::c_int; } #[link(name = "rt")] diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index b582e706a9..21e7619db5 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -1026,6 +1026,9 @@ pub const STATX_ATTR_APPEND: ::c_int = 0x0020; pub const STATX_ATTR_NODUMP: ::c_int = 0x0040; pub const STATX_ATTR_ENCRYPTED: ::c_int = 0x0800; pub const STATX_ATTR_AUTOMOUNT: ::c_int = 0x1000; +pub const STATX_ATTR_MOUNT_ROOT: ::c_int = 0x2000; +pub const STATX_ATTR_VERITY: ::c_int = 0x00100000; +pub const STATX_ATTR_DAX: ::c_int = 0x00200000; pub const SOMAXCONN: ::c_int = 4096; diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index 4041c67cf8..c5da62be04 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -3145,6 +3145,8 @@ extern "C" { pub fn setpflags(flags: ::c_uint, value: ::c_uint) -> ::c_int; pub fn sysinfo(command: ::c_int, buf: *mut ::c_char, count: ::c_long) -> ::c_int; + + pub fn faccessat(fd: ::c_int, path: *const ::c_char, amode: ::c_int, flag: ::c_int) -> ::c_int; } #[link(name = "sendfile")] diff --git a/src/unix/solarish/solaris.rs b/src/unix/solarish/solaris.rs index bc2618b3d0..3fb1660490 100644 --- a/src/unix/solarish/solaris.rs +++ b/src/unix/solarish/solaris.rs @@ -72,6 +72,8 @@ extern "C" { pub fn fattach(fildes: ::c_int, path: *const ::c_char) -> ::c_int; pub fn pthread_getattr_np(thread: ::pthread_t, attr: *mut ::pthread_attr_t) -> ::c_int; + + pub fn euidaccess(path: *const ::c_char, amode: ::c_int) -> ::c_int; } s_no_extra_traits! { |