From f3756b90e8605ec07d49fc041ef685be8582bf5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=B7=D0=B0=D0=BB=D0=B8=D1=8F=20=D0=A1=D0=BC=D0=B0?= =?UTF-8?q?=D1=80=D0=B0=D0=B3=D0=B4=D0=BE=D0=B2=D0=B0?= Date: Sat, 24 Aug 2024 12:11:13 +0500 Subject: [PATCH] Expose the "epoll_pwait2()" function The ```epoll_pwait2()``` function has been moved to linux/gnu --- libc-test/semver/linux-gnu.txt | 1 + src/unix/linux_like/linux/gnu/mod.rs | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/libc-test/semver/linux-gnu.txt b/libc-test/semver/linux-gnu.txt index 08ad12967f618..8157fd0ec5f13 100644 --- a/libc-test/semver/linux-gnu.txt +++ b/libc-test/semver/linux-gnu.txt @@ -712,3 +712,4 @@ putpwent putgrent execveat close_range +epoll_pwait2 diff --git a/src/unix/linux_like/linux/gnu/mod.rs b/src/unix/linux_like/linux/gnu/mod.rs index 25eb4327cd5be..4c5f26dbc03b2 100644 --- a/src/unix/linux_like/linux/gnu/mod.rs +++ b/src/unix/linux_like/linux/gnu/mod.rs @@ -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! {