mirror of https://github.com/mkerrisk/man-pages
recv.2: Add 'iovec' defn to defn of 'msghdr' structure
The 'msghdr' structure includes a field of type 'iovec', so show the definition of that structure in this page. Reported-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
9944f03d0d
commit
f9fb3ffcb5
|
@ -36,7 +36,7 @@
|
|||
.\" Modified 1998,1999 by Andi Kleen
|
||||
.\" 2001-06-19 corrected SO_EE_OFFENDER, bug report by James Hawtin
|
||||
.\"
|
||||
.TH RECV 2 2009-02-23 "Linux" "Linux Programmer's Manual"
|
||||
.TH RECV 2 2009-03-10 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
recv, recvfrom, recvmsg \- receive a message from a socket
|
||||
.SH SYNOPSIS
|
||||
|
@ -288,11 +288,16 @@ The
|
|||
call uses a
|
||||
.I msghdr
|
||||
structure to minimize the number of directly supplied arguments.
|
||||
This structure has the following form, as defined in
|
||||
This structure is defined as follows in
|
||||
.IR <sys/socket.h> :
|
||||
.in +4n
|
||||
.nf
|
||||
|
||||
struct iovec { /* Scatter/gather array items */
|
||||
void *iov_base; /* Starting address */
|
||||
size_t iov_len; /* Number of bytes to transfer */
|
||||
};
|
||||
|
||||
struct msghdr {
|
||||
void *msg_name; /* optional address */
|
||||
socklen_t msg_namelen; /* size of address */
|
||||
|
|
Loading…
Reference in New Issue