[25/41] select.2: SYNOPSIS: Add _Nullable

Message ID 20221203202317.252789-26-alx@kernel.org
State Not applicable
Headers
Series Document nullability of syscall parameters |

Commit Message

Alejandro Colomar Dec. 3, 2022, 8:23 p.m. UTC
  Signed-off-by: Alejandro Colomar <alx@kernel.org>
---
 man2/select.2 | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
  

Patch

diff --git a/man2/select.2 b/man2/select.2
index 199522a01..f13d20420 100644
--- a/man2/select.2
+++ b/man2/select.2
@@ -30,19 +30,21 @@  .SH SYNOPSIS
 .PP
 .BR typedef " /* ... */ " fd_set;
 .PP
-.BI "int select(int " nfds ", fd_set *restrict " readfds ,
-.BI "           fd_set *restrict " writefds ", fd_set *restrict " exceptfds ,
-.BI "           struct timeval *restrict " timeout );
+.BI "int select(int " nfds ", fd_set *_Nullable restrict " readfds ,
+.BI "           fd_set *_Nullable restrict " writefds ,
+.BI "           fd_set *_Nullable restrict " exceptfds ,
+.BI "           struct timeval *_Nullable 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 *restrict " readfds ,
-.BI "           fd_set *restrict " writefds ", fd_set *restrict " exceptfds ,
-.BI "           const struct timespec *restrict " timeout ,
-.BI "           const sigset_t *restrict " sigmask );
+.BI "int pselect(int " nfds ", fd_set *_Nullable restrict " readfds ,
+.BI "           fd_set *_Nullable restrict " writefds ,
+.BI "           fd_set *_Nullable restrict " exceptfds ,
+.BI "           const struct timespec *_Nullable restrict " timeout ,
+.BI "           const sigset_t *_Nullable restrict " sigmask );
 .fi
 .PP
 .RS -4