Skip to content

Commit

Permalink
linux, android: Add CLONE_PIDFD flag
Browse files Browse the repository at this point in the history
  • Loading branch information
neocturne committed Oct 22, 2021
1 parent 77636bb commit 7ee7e14
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ CLONE_NEWUSER
CLONE_NEWUTS
CLONE_PARENT
CLONE_PARENT_SETTID
CLONE_PIDFD
CLONE_PTRACE
CLONE_SETTLS
CLONE_SIGHAND
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ CLONE_NEWUSER
CLONE_NEWUTS
CLONE_PARENT
CLONE_PARENT_SETTID
CLONE_PIDFD
CLONE_PTRACE
CLONE_SETTLS
CLONE_SIGHAND
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,8 @@ pub const SCHED_DEADLINE: ::c_int = 6;

pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000;

pub const CLONE_PIDFD: ::c_int = 0x1000;

// bits/seek_constants.h
pub const SEEK_DATA: ::c_int = 3;
pub const SEEK_HOLE: ::c_int = 4;
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,8 @@ pub const SCHED_IDLE: ::c_int = 5;

pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000;

pub const CLONE_PIDFD: ::c_int = 0x1000;

// netinet/in.h
// NOTE: These are in addition to the constants defined in src/unix/mod.rs

Expand Down

0 comments on commit 7ee7e14

Please # to comment.