Skip to content

Commit cdf6896

Browse files
authored
Merge pull request #3868 from ChrysoliteAzalea/epoll_pwait2
Expose the "epoll_pwait2()" function
2 parents 237f3e7 + f3756b9 commit cdf6896

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
@@ -712,3 +712,4 @@ putpwent
712712
putgrent
713713
execveat
714714
close_range
715+
epoll_pwait2

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

+8
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,14 @@ extern "C" {
15341534
pub fn close_range(first: ::c_uint, last: ::c_uint, flags: ::c_int) -> ::c_int;
15351535

15361536
pub fn mq_notify(mqdes: ::mqd_t, sevp: *const ::sigevent) -> ::c_int;
1537+
1538+
pub fn epoll_pwait2(
1539+
epfd: ::c_int,
1540+
events: *mut ::epoll_event,
1541+
maxevents: ::c_int,
1542+
timeout: *const ::timespec,
1543+
sigmask: *const ::sigset_t,
1544+
) -> ::c_int;
15371545
}
15381546

15391547
cfg_if! {

0 commit comments

Comments
 (0)