Skip to content

Commit

Permalink
Auto merge of #3352 - cd-work:timens_constant, r=JohnTitor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Oct 9, 2023
2 parents 0d6554f + 5c2ce3e commit 30a8fd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/linux.txt
Expand Up @@ -292,6 +292,7 @@ CLONE_THREAD
CLONE_UNTRACED
CLONE_VFORK
CLONE_VM
CLONE_NEWTIME
CLOSE_RANGE_CLOEXEC
CLOSE_RANGE_UNSHARE
CMSG_DATA
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Expand Up @@ -944,6 +944,9 @@ pub const NT_PRFPXREG: ::c_int = 20;

pub const ELFOSABI_ARM_AEABI: u8 = 64;

// linux/sched.h
pub const CLONE_NEWTIME: ::c_int = 0x80;

// linux/keyctl.h
pub const KEYCTL_DH_COMPUTE: u32 = 23;
pub const KEYCTL_PKEY_QUERY: u32 = 24;
Expand Down

0 comments on commit 30a8fd2

Please sign in to comment.