vsock.7: clarify send(2)/recv(2) families of system calls
PATCH 1/1 vsock.7: clarify send(2)/recv(2) families of system calls
Sockets support both read(2)/write(2) and send(2)/recv(2) system calls. Each of these is actually a family of multiple system calls such as send(2), sendfile(2), sendmsg(2), sendmmsg(2), and sendto(2).
This patch claries which families of system calls can be used.
--- man7/vsock.7 | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-)
man7/vsock.7 +13 -8
@@ -47,11 +47,15 @@ address using and then calling .BR listen (2). .PP -Data is transferred using the usual +Data is transmitted using the .BR send (2) -and +or +.BR write (2) +families of system calls and data is received using the .BR recv (2) -family of socket system calls. +or +.BR read (2) +families of system calls. .SS Address format A socket address is defined as a combination of a 32-bit Context Identifier (CID) and a 32-bit port number.
@@ -163,12 +167,13 @@ Operation not supported. This includes: the .B MSG_OOB -flag that is not implemented for -.BR sendmsg (2) -and +flag that is not implemented for the +.BR send (2) +family of syscalls and .B MSG_PEEK -for -.BR recvmsg (2). +for the +.BR recv (2) +family of syscalls. .TP .B EPROTONOSUPPORT Invalid socket protocol number.
Signature · 6 lines
2.14.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20171212093448.8192-1-stefanha-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Quoted 7 lines · Stefan Hajnoczi
Sockets support both read(2)/write(2) and send(2)/recv(2) system calls. Each of these is actually a family of multiple system calls such as send(2), sendfile(2), sendmsg(2), sendmmsg(2), and sendto(2).
This patch claries which families of system calls can be used.
Signed-off-by Stefan Hajnoczi <[email protected]>
Thanks, Stefan. Patch applied.
Cheers,
Michael
Quoted 47 lines
--- man7/vsock.7 | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-)man7/vsock.7 +13
-8@@ -47,11 +47,15 @@ address using and then calling .BR listen (2). .PP -Data is transferred using the usual +Data is transmitted using the .BR send (2) -and +or +.BR write (2) +families of system calls and data is received using the .BR recv (2) -family of socket system calls. +or +.BR read (2) +families of system calls. .SS Address format A socket address is defined as a combination of a 32-bit Context Identifier (CID) and a 32-bit port number.@@ -163,12 +167,13 @@ Operation not supported. This includes: the .B MSG_OOB -flag that is not implemented for -.BR sendmsg (2) -and +flag that is not implemented for the +.BR send (2) +family of syscalls and .B MSG_PEEK -for -.BR recvmsg (2). +for the +.BR recv (2) +family of syscalls. .TP .B EPROTONOSUPPORT Invalid socket protocol number.
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html