]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/: SYNOPSIS: Use array notation
authorAlejandro Colomar <alx@kernel.org>
Sat, 14 Dec 2024 19:23:25 +0000 (20:23 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sat, 14 Dec 2024 20:43:26 +0000 (21:43 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/epoll_wait.2
man/man2/getgroups.2

index 3f52620e013dee25f570d30e3f55365b01f549dc..26a2e886f716466de8a1a08f166cf86e5e9fb2e5 100644 (file)
@@ -17,12 +17,12 @@ Standard C library
 .nf
 .B #include <sys/epoll.h>
 .P
-.BI "int epoll_wait(int " epfd ", struct epoll_event *" events ,
+.BI "int epoll_wait(int " epfd ", struct epoll_event " events [. maxevents ],
 .BI "               int " maxevents ", int " timeout );
-.BI "int epoll_pwait(int " epfd ", struct epoll_event *" events ,
+.BI "int epoll_pwait(int " epfd ", struct epoll_event " events [. maxevents ],
 .BI "               int " maxevents ", int " timeout ,
 .BI "               const sigset_t *_Nullable " sigmask );
-.BI "int epoll_pwait2(int " epfd ", struct epoll_event *" events ,
+.BI "int epoll_pwait2(int " epfd ", struct epoll_event " events [. maxevents ],
 .BI "               int " maxevents ", \
 const struct timespec *_Nullable " timeout ,
 .BI "               const sigset_t *_Nullable " sigmask );
index f5279a4338d2449d80e58c397382b628c21508c5..9c9e2c819cf1436a444371c995da6719ae797377 100644 (file)
@@ -19,11 +19,11 @@ Standard C library
 .nf
 .B #include <unistd.h>
 .P
-.BI "int getgroups(int " size ", gid_t " list []);
+.BI "int getgroups(int " size ", gid_t " list "[_Nullable ." size ]);
 .P
 .B #include <grp.h>
 .P
-.BI "int setgroups(size_t " size ", const gid_t *_Nullable " list );
+.BI "int setgroups(size_t " size ", const gid_t " list "[_Nullable ." size ]);
 .fi
 .P
 .RS -4