Skip to content

Commit 34a5773

Browse files
committed
Auto merge of #3003 - devnexen:musl_pidfd_nonblock, r=JohnTitor
linux musl adding `PIDFD_NONBLOCK` constant. closes #3002
2 parents 73c25f4 + 7ba33fd commit 34a5773

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

libc-test/semver/linux-musl.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ LIO_WRITE
2020
PF_IB
2121
PF_MPLS
2222
PF_XDP
23+
PIDFD_NONBLOCK
2324
PR_SET_VMA
2425
PR_SET_VMA_ANON_NAME
26+
SOCK_NONBLOCK
2527
adjtimex
2628
aio_cancel
2729
aio_error
@@ -54,4 +56,4 @@ asctime_r
5456
strftime
5557
strptime
5658
dirname
57-
basename
59+
basename

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

Lines changed: 2 additions & 0 deletions
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)