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 Sep 21, 2023
2 parents 6f31de3 + 590d2a4 commit 4142b58
Show file tree
Hide file tree
Showing 2 changed files with 2 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
1 change: 1 addition & 0 deletions src/unix/linux_like/mod.rs
Expand Up @@ -1156,6 +1156,7 @@ pub const ONLRET: ::tcflag_t = 0o000040;
pub const OFILL: ::tcflag_t = 0o000100;
pub const OFDEL: ::tcflag_t = 0o000200;

pub const CLONE_NEWTIME: ::c_int = 0x80;
pub const CLONE_VM: ::c_int = 0x100;
pub const CLONE_FS: ::c_int = 0x200;
pub const CLONE_FILES: ::c_int = 0x400;
Expand Down

0 comments on commit 4142b58

Please sign in to comment.