Skip to content

Commit

Permalink
The epoll_pwait2() function has been moved to linux/gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrysoliteAzalea committed Aug 26, 2024
1 parent 6948aaa commit 1b601ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 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 @@ -715,3 +715,4 @@ putpwent
putgrent
execveat
close_range
epoll_pwait2
1 change: 0 additions & 1 deletion libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3530,7 +3530,6 @@ epoll_create1
epoll_ctl
epoll_event
epoll_pwait
epoll_pwait2
epoll_wait
erand48
eventfd
Expand Down
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 @@ -1549,6 +1549,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
7 changes: 0 additions & 7 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5599,13 +5599,6 @@ extern "C" {
timeout: ::c_int,
sigmask: *const ::sigset_t,
) -> ::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;
pub fn dup3(oldfd: ::c_int, newfd: ::c_int, flags: ::c_int) -> ::c_int;
pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int;
pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int;
Expand Down

0 comments on commit 1b601ef

Please sign in to comment.