Skip to content

Commit b806bf2

Browse files
committed
Auto merge of rust-lang#3034 - devnexen:missing_linux_clone_flags, r=JohnTitor
adding few more CLONE_* constant for Linux/Android. closes rust-lang#3033.
2 parents c059d43 + 360f7b0 commit b806bf2

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

libc-test/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3841,6 +3841,7 @@ fn test_linux(target: &str) {
38413841
| "MADV_POPULATE_READ"
38423842
| "MADV_POPULATE_WRITE"
38433843
if musl => true,
3844+
"CLONE_CLEAR_SIGHAND" | "CLONE_INTO_CGROUP" => true,
38443845

38453846
// kernel 6.1 minimum
38463847
"MADV_COLLAPSE" => true,

libc-test/semver/linux-gnu.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ BTRFS_SUPER_MAGIC
3232
CGROUP2_SUPER_MAGIC
3333
CGROUP_SUPER_MAGIC
3434
CLONE_NEWTIME
35+
CLONE_CLEAR_SIGHAND
36+
CLONE_INTO_CGROUP
3537
CODA_SUPER_MAGIC
3638
CRAMFS_MAGIC
3739
DEAD_PROCESS
@@ -666,4 +668,4 @@ getmntent_r
666668
putpwent
667669
putgrent
668670
execveat
669-
close_range
671+
close_range

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

+2
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,8 @@ pub const ELFOSABI_ARM_AEABI: u8 = 64;
946946

947947
// linux/sched.h
948948
pub const CLONE_NEWTIME: ::c_int = 0x80;
949+
pub const CLONE_CLEAR_SIGHAND: ::c_int = 0x100000000;
950+
pub const CLONE_INTO_CGROUP: ::c_int = 0x200000000;
949951

950952
// linux/keyctl.h
951953
pub const KEYCTL_DH_COMPUTE: u32 = 23;

0 commit comments

Comments
 (0)