POSIX specifies that the parameters of recvfrom() shall be 'restrict'. Glibc uses 'restrict' too. Let's use it here too. ...... .../glibc$ grep_glibc_prototype recvfrom socket/sys/socket.h:163: extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> --- man2/recv.2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man2/recv.2 b/man2/recv.2 index 7c195728f..3a501f9ad 100644 --- a/man2/recv.2 +++ b/man2/recv.2 @@ -47,8 +47,10 @@ recv, recvfrom, recvmsg \- receive a message from a socket .B #include <sys/socket.h> .PP .BI "ssize_t recv(int " sockfd ", void *" buf ", size_t " len ", int " flags ); -.BI "ssize_t recvfrom(int " sockfd ", void *" buf ", size_t " len ", int " flags , -.BI " struct sockaddr *" src_addr ", socklen_t *" addrlen ); +.BI "ssize_t recvfrom(int " sockfd ", void *restrict " buf ", size_t " len \ +", int " flags , +.BI " struct sockaddr *restrict " src_addr , +.BI " socklen_t *restrict " addrlen ); .BI "ssize_t recvmsg(int " sockfd ", struct msghdr *" msg ", int " flags ); .fi .SH DESCRIPTION -- 2.30.0