Skip to content

Commit 30a8fd2

Browse files
committed
Auto merge of #3352 - cd-work:timens_constant, r=JohnTitor
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.
2 parents 0d6554f + 5c2ce3e commit 30a8fd2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ CLONE_THREAD
292292
CLONE_UNTRACED
293293
CLONE_VFORK
294294
CLONE_VM
295+
CLONE_NEWTIME
295296
CLOSE_RANGE_CLOEXEC
296297
CLOSE_RANGE_UNSHARE
297298
CMSG_DATA

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

Lines changed: 3 additions & 0 deletions
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)