Skip to content

Commit 0c6b45b

Browse files
committed
Add time namespace constant
This constant is a possible bitflag argument for `unshare`: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/sched.h?h=v6.6-rc1#n44 I am unsure about its support in Fuchsia, which is why I have not added the constant there.
1 parent b4b6a53 commit 0c6b45b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/linux-gnu.txt

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ BPF_FS_MAGIC
3131
BTRFS_SUPER_MAGIC
3232
CGROUP2_SUPER_MAGIC
3333
CGROUP_SUPER_MAGIC
34+
CLONE_NEWTIME
3435
CODA_SUPER_MAGIC
3536
CRAMFS_MAGIC
3637
DEAD_PROCESS

src/unix/linux_like/linux/gnu/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,9 @@ pub const NT_PRFPXREG: ::c_int = 20;
944944

945945
pub const ELFOSABI_ARM_AEABI: u8 = 64;
946946

947+
// linux/sched.h
948+
pub const CLONE_NEWTIME: ::c_int = 0x80;
949+
947950
// linux/keyctl.h
948951
pub const KEYCTL_DH_COMPUTE: u32 = 23;
949952
pub const KEYCTL_PKEY_QUERY: u32 = 24;

0 commit comments

Comments
 (0)