Skip to content

Commit

Permalink
Merge pull request rust-lang#3868 from ChrysoliteAzalea/epoll_pwait2
Browse files Browse the repository at this point in the history
Expose the "epoll_pwait2()" function
  • Loading branch information
tgross35 committed Sep 1, 2024
2 parents 237f3e7 + f3756b9 commit cdf6896
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 cdf6896

Please sign in to comment.