Skip to content

Commit a269368

Browse files
committed
Auto merge of #2474 - NeoRaider:pidfd, r=JohnTitor
linux_like: Add CLONE_PIDFD flag
2 parents e51d066 + e2638e3 commit a269368

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2654,6 +2654,7 @@ fn test_linux(target: &str) {
26542654
"linux/random.h",
26552655
"linux/reboot.h",
26562656
"linux/rtnetlink.h",
2657+
"linux/sched.h",
26572658
"linux/seccomp.h",
26582659
"linux/sockios.h",
26592660
"linux/uinput.h",

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)