diff --git a/libc-test/build.rs b/libc-test/build.rs index 6b91004cd77a8..da8d770325b22 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3368,6 +3368,8 @@ fn test_linux(target: &str) { if sparc64 => true, // Added in Linux 5.13 "PTRACE_GET_RSEQ_CONFIGURATION" if sparc64 => true, + // Added in linux 5.6 + "CLONE_NUMTIME" => true, _ => false, } diff --git a/libc-test/semver/android.txt b/libc-test/semver/android.txt index 815a97eeb3c49..d5d626bec9d44 100644 --- a/libc-test/semver/android.txt +++ b/libc-test/semver/android.txt @@ -206,15 +206,18 @@ CLOCK_TAI CLOCK_THREAD_CPUTIME_ID CLONE_CHILD_CLEARTID CLONE_CHILD_SETTID +CLONE_CLEAR_SIGHAND CLONE_DETACHED CLONE_FILES CLONE_FS +CLONE_INTO_CGROUP CLONE_IO CLONE_NEWCGROUP CLONE_NEWIPC CLONE_NEWNET CLONE_NEWNS CLONE_NEWPID +CLONE_NEWTIME CLONE_NEWUSER CLONE_NEWUTS CLONE_PARENT diff --git a/libc-test/semver/linux-gnu.txt b/libc-test/semver/linux-gnu.txt index bf663a193014b..1d4ffe79b08c1 100644 --- a/libc-test/semver/linux-gnu.txt +++ b/libc-test/semver/linux-gnu.txt @@ -31,6 +31,8 @@ BPF_FS_MAGIC BTRFS_SUPER_MAGIC CGROUP2_SUPER_MAGIC CGROUP_SUPER_MAGIC +CLONE_CLEAR_SIGHAND +CLONE_INTO_CGROUP CODA_SUPER_MAGIC CRAMFS_MAGIC DCCP_SERVICE_LIST_MAX_LEN @@ -660,4 +662,4 @@ strftime strptime dirname posix_basename -gnu_basename \ No newline at end of file +gnu_basename diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index 087b1fc10c586..e635a7a3d94b3 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -264,6 +264,7 @@ CLONE_NEWIPC CLONE_NEWNET CLONE_NEWNS CLONE_NEWPID +CLONE_NEWTIME CLONE_NEWUSER CLONE_NEWUTS CLONE_PARENT diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index 3bc51260befa1..33fb4554a5891 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -2715,7 +2715,10 @@ pub const SCHED_DEADLINE: ::c_int = 6; pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000; +pub const CLONE_NEWTIME: ::c_int = 0x80; pub const CLONE_PIDFD: ::c_int = 0x1000; +pub const CLONE_CLEAR_SIGHAND: ::c_longlong = 0x100000000; +pub const CLONE_INTO_CGROUP: ::c_longlong = 0x200000000; // linux/mempolicy.h pub const MPOL_DEFAULT: ::c_int = 0; diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index 98a58a2acb866..b5e255647084b 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -1117,6 +1117,9 @@ pub const REG_STARTEND: ::c_int = 4; pub const REG_EEND: ::c_int = 14; pub const REG_ESIZE: ::c_int = 15; pub const REG_ERPAREN: ::c_int = 16; +pub const CLONE_NEWTIME: ::c_int = 0x80; +pub const CLONE_CLEAR_SIGHAND: ::c_longlong = 0x100000000; +pub const CLONE_INTO_CGROUP: ::c_longlong = 0x200000000; extern "C" { pub fn fgetspent_r(