Skip to content

Commit b8c8e13

Browse files
committed
Auto merge of #3003 - devnexen:musl_pidfd_nonblock, r=JohnTitor
linux musl adding `PIDFD_NONBLOCK` constant. closes #3002
2 parents 855a6fc + 0993260 commit b8c8e13

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libc-test/semver/linux-musl.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LIO_WRITE
2020
PF_IB
2121
PF_MPLS
2222
PF_XDP
23+
PIDFD_NONBLOCK
2324
PR_SET_VMA
2425
PR_SET_VMA_ANON_NAME
2526
adjtimex
@@ -54,4 +55,4 @@ asctime_r
5455
strftime
5556
strptime
5657
dirname
57-
basename
58+
basename

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

+2
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,8 @@ pub const EFD_NONBLOCK: ::c_int = ::O_NONBLOCK;
590590

591591
pub const SFD_NONBLOCK: ::c_int = ::O_NONBLOCK;
592592

593+
pub const PIDFD_NONBLOCK: ::c_uint = O_NONBLOCK as ::c_uint;
594+
593595
pub const TCSANOW: ::c_int = 0;
594596
pub const TCSADRAIN: ::c_int = 1;
595597
pub const TCSAFLUSH: ::c_int = 2;

0 commit comments

Comments
 (0)