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

(backport <rust-lang#3868>)
(cherry picked from commit f3756b9)
  • Loading branch information
ChrysoliteAzalea authored and tgross35 committed Sep 6, 2024
1 parent 0b4f2de commit e6e4bcc
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 @@ -711,3 +711,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 @@ -1542,6 +1542,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 e6e4bcc

Please sign in to comment.