Skip to content

Commit

Permalink
adding few more CLONE_* constant for Linux/Android.
Browse files Browse the repository at this point in the history
closes #3033.
  • Loading branch information
devnexen committed Oct 15, 2023
1 parent c059d43 commit a9a066a
Show file tree
Hide file tree
Showing 3 changed files with 7 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_NEWTIME" | "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
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Expand Up @@ -1124,6 +1124,9 @@ pub const REG_STARTEND: ::c_int = 4;
pub const REG_EEND: ::c_int = 14;
pub const REG_ESIZE: ::c_int = 15;
pub const REG_ERPAREN: ::c_int = 16;
pub const CLONE_NEWTIME: ::c_int = 0x80;
pub const CLONE_CLEAR_SIGHAND: ::c_longlong = 0x100000000;
pub const CLONE_INTO_CGROUP: ::c_longlong = 0x200000000;

extern "C" {
pub fn fgetspent_r(
Expand Down

0 comments on commit a9a066a

Please sign in to comment.