Skip to content

Commit

Permalink
Add time namespace constant
Browse files Browse the repository at this point in the history
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
cd-work committed Oct 9, 2023
1 parent b4b6a53 commit 0c6b45b
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-gnu.txt
Expand Up @@ -31,6 +31,7 @@ BPF_FS_MAGIC
BTRFS_SUPER_MAGIC
CGROUP2_SUPER_MAGIC
CGROUP_SUPER_MAGIC
CLONE_NEWTIME
CODA_SUPER_MAGIC
CRAMFS_MAGIC
DEAD_PROCESS
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 0c6b45b

Please sign in to comment.