Skip to content

Commit

Permalink
Auto merge of #3034 - devnexen:missing_linux_clone_flags, r=JohnTitor
Browse files Browse the repository at this point in the history
adding few more CLONE_* constant for Linux/Android.

closes #3033.
  • Loading branch information
bors committed Oct 16, 2023
2 parents c059d43 + 360f7b0 commit b806bf2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions libc-test/build.rs
Expand Up @@ -3841,6 +3841,7 @@ fn test_linux(target: &str) {
| "MADV_POPULATE_READ"
| "MADV_POPULATE_WRITE"
if musl => true,
"CLONE_CLEAR_SIGHAND" | "CLONE_INTO_CGROUP" => true,

// kernel 6.1 minimum
"MADV_COLLAPSE" => true,
Expand Down
4 changes: 3 additions & 1 deletion libc-test/semver/linux-gnu.txt
Expand Up @@ -32,6 +32,8 @@ BTRFS_SUPER_MAGIC
CGROUP2_SUPER_MAGIC
CGROUP_SUPER_MAGIC
CLONE_NEWTIME
CLONE_CLEAR_SIGHAND
CLONE_INTO_CGROUP
CODA_SUPER_MAGIC
CRAMFS_MAGIC
DEAD_PROCESS
Expand Down Expand Up @@ -666,4 +668,4 @@ getmntent_r
putpwent
putgrent
execveat
close_range
close_range
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Expand Up @@ -946,6 +946,8 @@ pub const ELFOSABI_ARM_AEABI: u8 = 64;

// linux/sched.h
pub const CLONE_NEWTIME: ::c_int = 0x80;
pub const CLONE_CLEAR_SIGHAND: ::c_int = 0x100000000;
pub const CLONE_INTO_CGROUP: ::c_int = 0x200000000;

// linux/keyctl.h
pub const KEYCTL_DH_COMPUTE: u32 = 23;
Expand Down

0 comments on commit b806bf2

Please sign in to comment.