Skip to content

Commit 2d59023

Browse files
committed
Add pidfd constants for thread targeting pidfds
1 parent 72f9d58 commit 2d59023

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

libc-test/semver/linux-gnu.txt

+1
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ O_FSYNC
343343
PF_IB
344344
PF_MPLS
345345
PF_XDP
346+
PIDFD_NONBLOCK
346347
PROC_SUPER_MAGIC
347348
PR_SET_VMA
348349
PR_SET_VMA_ANON_NAME

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

+8
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,15 @@ pub const RTLD_DI_TLS_MODID: c_int = 9;
755755
pub const RTLD_DI_TLS_DATA: c_int = 10;
756756

757757
pub const SOCK_NONBLOCK: c_int = O_NONBLOCK;
758+
758759
pub const PIDFD_NONBLOCK: c_uint = O_NONBLOCK as c_uint;
760+
// libc-test failure. To new?
761+
// pub const PIDFD_THREAD: c_uint = O_EXCL as c_uint;
762+
763+
// libc-test failure. To new?
764+
// pub const PIDFD_SIGNAL_THREAD: c_uint = 1;
765+
// pub const PIDFD_SIGNAL_THREAD_GROUP: c_uint = 2;
766+
// pub const PIDFD_SIGNAL_PROCESS_GROUP: c_uint = 4;
759767

760768
pub const SOL_RXRPC: c_int = 272;
761769
pub const SOL_PPPOL2TP: c_int = 273;

0 commit comments

Comments
 (0)