POSIX specifies the parameters of accept() shall be 'restrict'. Glibc uses 'restrict' too (also for accept4()). Let's use it here too. ...... .../glibc$ grep_glibc_prototype accept socket/sys/socket.h:232: extern int accept (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len); .../glibc$ grep_glibc_prototype accept4 socket/sys/socket.h:240: extern int accept4 (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len, int __flags); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> --- man2/accept.2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/man2/accept.2 b/man2/accept.2 index 90551f8e5..0923ea97a 100644 --- a/man2/accept.2 +++ b/man2/accept.2 @@ -46,13 +46,14 @@ accept, accept4 \- accept a connection on a socket .BR "#include <sys/types.h>" " /* See NOTES */" .B #include <sys/socket.h> .PP -.BI "int accept(int " sockfd ", struct sockaddr *" addr ", socklen_t *" addrlen ); +.BI "int accept(int " sockfd ", struct sockaddr *restrict " addr , +.BI " socklen_t *restrict " addrlen ); .PP .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include <sys/socket.h> .PP -.BI "int accept4(int " sockfd ", struct sockaddr *" addr , -.BI " socklen_t *" addrlen ", int " flags ); +.BI "int accept4(int " sockfd ", struct sockaddr *restrict " addr , +.BI " socklen_t *restrict " addrlen ", int " flags ); .fi .SH DESCRIPTION The -- 2.30.0