Skip to content

Commit bd57e54

Browse files
committed
adding few more CLONE_* constant for Linux/Android.
closes #3033.
1 parent 92e5d67 commit bd57e54

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

libc-test/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3789,6 +3789,7 @@ fn test_linux(target: &str) {
37893789
| "MADV_POPULATE_READ"
37903790
| "MADV_POPULATE_WRITE"
37913791
if musl => true,
3792+
"CLONE_NEWTIME" | "CLONE_CLEAR_SIGHAND" | "CLONE_INTO_CGROUP" => true,
37923793

37933794
// FIXME: Requires more recent kernel headers
37943795
| "IFLA_PARENT_DEV_NAME" // linux v5.13+

libc-test/semver/linux-gnu.txt

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ BPF_FS_MAGIC
3131
BTRFS_SUPER_MAGIC
3232
CGROUP2_SUPER_MAGIC
3333
CGROUP_SUPER_MAGIC
34+
CLONE_CLEAR_SIGHAND
35+
CLONE_INTO_CGROUP
3436
CODA_SUPER_MAGIC
3537
CRAMFS_MAGIC
3638
DEAD_PROCESS

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

+3
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,9 @@ pub const REG_STARTEND: ::c_int = 4;
11091109
pub const REG_EEND: ::c_int = 14;
11101110
pub const REG_ESIZE: ::c_int = 15;
11111111
pub const REG_ERPAREN: ::c_int = 16;
1112+
pub const CLONE_NEWTIME: ::c_int = 0x80;
1113+
pub const CLONE_CLEAR_SIGHAND: ::c_longlong = 0x100000000;
1114+
pub const CLONE_INTO_CGROUP: ::c_longlong = 0x200000000;
11121115

11131116
extern "C" {
11141117
pub fn fgetspent_r(

0 commit comments

Comments
 (0)