public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Stefan Hajnoczi
	<stefanha-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	Dexuan Cui <decui-0li6OtcxBFHby3iVrkZq2A@public.gmane.org>,
	Jorgen Hansen <jhansen-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] vsock.7: clarify send(2)/recv(2) families of system calls
Date: Tue, 12 Dec 2017 19:13:31 +0100	[thread overview]
Message-ID: <a7d275af-c5b9-e215-c8fe-17e926038058@gmail.com> (raw)
In-Reply-To: <20171212093448.8192-1-stefanha-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On 12/12/2017 10:34 AM, Stefan Hajnoczi wrote:
> 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 <stefanha-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

Thanks, Stefan. Patch applied.

Cheers,

Michael


> ---
>  man7/vsock.7 | 21 +++++++++++++--------
>  1 file changed, 13 insertions(+), 8 deletions(-)
> 
> diff --git a/man7/vsock.7 b/man7/vsock.7
> index b6c394302..628200aa8 100644
> --- a/man7/vsock.7
> +++ b/man7/vsock.7
> @@ -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.
> 


-- 
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2017-12-12 18:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-12  9:34 [PATCH] vsock.7: clarify send(2)/recv(2) families of system calls Stefan Hajnoczi
     [not found] ` <20171212093448.8192-1-stefanha-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-12-12 18:13   ` Michael Kerrisk (man-pages) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a7d275af-c5b9-e215-c8fe-17e926038058@gmail.com \
    --to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=decui-0li6OtcxBFHby3iVrkZq2A@public.gmane.org \
    --cc=jhansen-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=stefanha-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox