POSIX specifies that the parameters of [p]select() shall be 'restrict'. Glibc uses 'restrict' too. Let's use it here too. ...... .../glibc$ grep_glibc_prototype select misc/sys/select.h:101: extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); .../glibc$ grep_glibc_prototype pselect misc/sys/select.h:113: extern int pselect (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> --- man2/select.2 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/man2/select.2 b/man2/select.2 index 02596b2d0..0f6fea51c 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -45,17 +45,19 @@ synchronous I/O multiplexing .nf .B #include <sys/select.h> .PP -.BI "int select(int " nfds ", fd_set *" readfds ", fd_set *" writefds , -.BI " fd_set *" exceptfds ", struct timeval *" timeout ); +.BI "int select(int " nfds ", fd_set *restrict " readfds , +.BI " fd_set *restrict " writefds ", fd_set *restrict " exceptfds , +.BI " struct timeval *restrict " timeout ); .PP .BI "void FD_CLR(int " fd ", fd_set *" set ); .BI "int FD_ISSET(int " fd ", fd_set *" set ); .BI "void FD_SET(int " fd ", fd_set *" set ); .BI "void FD_ZERO(fd_set *" set ); .PP -.BI "int pselect(int " nfds ", fd_set *" readfds ", fd_set *" writefds , -.BI " fd_set *" exceptfds ", const struct timespec *" timeout , -.BI " const sigset_t *" sigmask ); +.BI "int pselect(int " nfds ", fd_set *restrict " readfds , +.BI " fd_set *restrict " writefds ", fd_set *restrict " exceptfds , +.BI " const struct timespec *restrict " timeout , +.BI " const sigset_t *restrict " sigmask ); .fi .PP .RS -4 -- 2.30.0