Skip to content

Commit e446f66

Browse files
committed
Auto merge of #2582 - devnexen:pidfd_syscall_flag, r=Amanieu
linux add pidfd_open syscall mode
2 parents b76911e + d982ea6 commit e446f66

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3150,6 +3150,9 @@ fn test_linux(target: &str) {
31503150
| "UDP_SEGMENT"
31513151
if uclibc => true,
31523152

3153+
// headers conflicts with linux/pidfd.h
3154+
"PIDFD_NONBLOCK" => true,
3155+
31533156
_ => false,
31543157
}
31553158
});

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ pub const RTLD_DI_TLS_MODID: ::c_int = 9;
597597
pub const RTLD_DI_TLS_DATA: ::c_int = 10;
598598

599599
pub const SOCK_NONBLOCK: ::c_int = O_NONBLOCK;
600+
pub const PIDFD_NONBLOCK: ::c_uint = O_NONBLOCK as ::c_uint;
600601

601602
pub const SOL_RXRPC: ::c_int = 272;
602603
pub const SOL_PPPOL2TP: ::c_int = 273;

0 commit comments

Comments
 (0)