Skip to content

Commit

Permalink
Expose the "epoll_pwait2()" function
Browse files Browse the repository at this point in the history
The ```epoll_pwait2()``` function has been moved to linux/gnu
  • Loading branch information
ChrysoliteAzalea authored and tgross35 committed Sep 1, 2024
1 parent 237f3e7 commit f3756b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/linux-gnu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -712,3 +712,4 @@ putpwent
putgrent
execveat
close_range
epoll_pwait2
8 changes: 8 additions & 0 deletions src/unix/linux_like/linux/gnu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1534,6 +1534,14 @@ extern "C" {
pub fn close_range(first: ::c_uint, last: ::c_uint, flags: ::c_int) -> ::c_int;

pub fn mq_notify(mqdes: ::mqd_t, sevp: *const ::sigevent) -> ::c_int;

pub fn epoll_pwait2(
epfd: ::c_int,
events: *mut ::epoll_event,
maxevents: ::c_int,
timeout: *const ::timespec,
sigmask: *const ::sigset_t,
) -> ::c_int;
}

cfg_if! {
Expand Down

0 comments on commit f3756b9

Please sign in to comment.