Skip to content

Commit

Permalink
Merge pull request rust-lang#3901 from tgross35/backport-epoll_pwait2
Browse files Browse the repository at this point in the history
[0.2] Expose the "epoll_pwait2()" function
  • Loading branch information
tgross35 authored Sep 6, 2024
2 parents 0b4f2de + e6e4bcc commit 35060e8
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 35060e8

Please sign in to comment.