Skip to content

Commit 7ee7e14

Browse files
committed
linux, android: Add CLONE_PIDFD flag
1 parent 77636bb commit 7ee7e14

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ CLONE_NEWUSER
212212
CLONE_NEWUTS
213213
CLONE_PARENT
214214
CLONE_PARENT_SETTID
215+
CLONE_PIDFD
215216
CLONE_PTRACE
216217
CLONE_SETTLS
217218
CLONE_SIGHAND

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ CLONE_NEWUSER
257257
CLONE_NEWUTS
258258
CLONE_PARENT
259259
CLONE_PARENT_SETTID
260+
CLONE_PIDFD
260261
CLONE_PTRACE
261262
CLONE_SETTLS
262263
CLONE_SIGHAND

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2447,6 +2447,8 @@ pub const SCHED_DEADLINE: ::c_int = 6;
24472447

24482448
pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000;
24492449

2450+
pub const CLONE_PIDFD: ::c_int = 0x1000;
2451+
24502452
// bits/seek_constants.h
24512453
pub const SEEK_DATA: ::c_int = 3;
24522454
pub const SEEK_HOLE: ::c_int = 4;

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,8 @@ pub const SCHED_IDLE: ::c_int = 5;
15091509

15101510
pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000;
15111511

1512+
pub const CLONE_PIDFD: ::c_int = 0x1000;
1513+
15121514
// netinet/in.h
15131515
// NOTE: These are in addition to the constants defined in src/unix/mod.rs
15141516

0 commit comments

Comments
 (0)