From 590d2a4297fa1dcee7acbabc6d771c1275b4494a Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 13 Sep 2023 19:55:23 +0200 Subject: [PATCH] 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. --- libc-test/semver/linux.txt | 1 + src/unix/linux_like/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index e818d2dce675e..f95b1c77fd3b1 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -292,6 +292,7 @@ CLONE_THREAD CLONE_UNTRACED CLONE_VFORK CLONE_VM +CLONE_NEWTIME CLOSE_RANGE_CLOEXEC CLOSE_RANGE_UNSHARE CMSG_DATA diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index 3117c18b86a1a..35b07a9be63f0 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -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;