Skip to contentSkip to conversation

epoll_wait.2: Glibc doesn't provide epoll_pwait2() yet

PATCH Superseded Alejandro Colomar 2 participants 4 messages Feb 3, 2021 – Feb 6, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 epoll_wait.2: Glibc doesn't provide epoll_pwait2() yet

---

Hi all,

As far as I can tell, glibc doesn't yet provide the wrapper function for epoll_pwait2(), does it?
So let's add a reminder to check if glibc provides the wrapper in the future.

Cheers,

Alex

 man2/epoll_wait.2 | 2 ++
 1 file changed, 2 insertions(+)
man2/epoll_wait.2 +1 -0
index f0e432478..e338f8830 100644
@@ -35,6 +35,8 @@ epoll_wait, epoll_pwait, epoll_pwait2 \- wait for an I/O event on an epoll file
 .BI "int epoll_pwait2(int " epfd ", struct epoll_event *" events ,
 .BI "               int " maxevents ", const struct timespec *" timeout ,
 .BI "               const sigset_t *" sigmask );
+.\" FIXME: Check if glibc has added a wrapper for epoll_pwait2().
 .fi
 .SH DESCRIPTION
 The
Signature · 1 line
2.30.0
#1 lore raw

Hi Alex,

Quoted 8 lines · Alejandro Colomar

---

Hi all,

As far as I can tell, glibc doesn't yet provide the wrapper function for epoll_pwait2(), does it?

Not yet, AFAICT.

Quoted 1 line

So let's add a reminder to check if glibc provides the wrapper in the future.

Perhaps we could do one better. Raise a glibc bug requesting support, and add the URL of that bug in the FIXME :-).

Cheers,

Michael

Quoted 22 lines

Cheers,

Alex

 man2/epoll_wait.2 | 2 ++
 1 file changed, 2 insertions(+)
man2/epoll_wait.2 +1 -1
index f0e432478..e338f8830 100644
@@ -35,6 +35,8 @@ epoll_wait, epoll_pwait, epoll_pwait2 \- wait for an I/O event on an epoll file
 .BI "int epoll_pwait2(int " epfd ", struct epoll_event *" events ,
 .BI "               int " maxevents ", const struct timespec *" timeout ,
 .BI "               const sigset_t *" sigmask );
+.\" FIXME: Check if glibc has added a wrapper for epoll_pwait2().
 .fi
 .SH DESCRIPTION
 The
--

2.30.0

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
#2 lore raw

PATCH v2 1/1 epoll_wait.2: Glibc doesn't provide epoll_pwait2() yet

I filed a bug against glibc
requesting the wrapper for the new syscall.

Glibc bug: <https://sourceware.org/bugzilla/show_bug.cgi?id=27359>

---

Hi Michael,

Yes, filing a bug is one better :-).

Cheers,

Alex

 man2/epoll_wait.2 | 3 +++
 1 file changed, 3 insertions(+)
man2/epoll_wait.2 +3 -0
index f0e432478..f941023c2 100644
@@ -35,6 +35,9 @@ epoll_wait, epoll_pwait, epoll_pwait2 \- wait for an I/O event on an epoll file
 .BI "int epoll_pwait2(int " epfd ", struct epoll_event *" events ,
 .BI "               int " maxevents ", const struct timespec *" timeout ,
 .BI "               const sigset_t *" sigmask );
+.\" FIXME: Check if glibc has added a wrapper for epoll_pwait2(),
+.\"        and if so, check the prototype.
+.\"        https://sourceware.org/bugzilla/show_bug.cgi?id=27359
 .fi
 .SH DESCRIPTION
 The
Signature · 1 line
2.30.0
#3 lore raw

Hi Alex,

Quoted 10 lines · Alejandro Colomar

I filed a bug against glibc
requesting the wrapper for the new syscall.

Glibc bug: <https://sourceware.org/bugzilla/show_bug.cgi?id=27359>

---

Hi Michael,

Yes, filing a bug is one better :-).

Thanks * 2. Patch applied.

Cheers,

Michael

Quoted 23 lines

Cheers,

Alex

 man2/epoll_wait.2 | 3 +++
 1 file changed, 3 insertions(+)
man2/epoll_wait.2 +3 -0
index f0e432478..f941023c2 100644
@@ -35,6 +35,9 @@ epoll_wait, epoll_pwait, epoll_pwait2 \- wait for an I/O event on an epoll file
 .BI "int epoll_pwait2(int " epfd ", struct epoll_event *" events ,
 .BI "               int " maxevents ", const struct timespec *" timeout ,
 .BI "               const sigset_t *" sigmask );
+.\" FIXME: Check if glibc has added a wrapper for epoll_pwait2(),
+.\"        and if so, check the prototype.
+.\"        https://sourceware.org/bugzilla/show_bug.cgi?id=27359
 .fi
 .SH DESCRIPTION
 The
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/