Skip to content

Commit b9dbd5e

Browse files
committed
linux musl adding PIDFD_NONBLOCK constant.
closes rust-lang#3002
1 parent bbf929d commit b9dbd5e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,9 @@ pub const EFD_NONBLOCK: ::c_int = ::O_NONBLOCK;
590590

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

593+
pub const SOCK_NONBLOCK: ::c_int = O_NONBLOCK;
594+
pub const PIDFD_NONBLOCK: ::c_uint = O_NONBLOCK as ::c_uint;
595+
593596
pub const TCSANOW: ::c_int = 0;
594597
pub const TCSADRAIN: ::c_int = 1;
595598
pub const TCSAFLUSH: ::c_int = 2;

0 commit comments

Comments
 (0)