Fix usage for soreceive(9) - uio must always be non-NULL.

MFC after:	1 week
This commit is contained in:
Edward Tomasz Napierala 2013-04-12 16:36:18 +00:00
parent e3389419ef
commit 8818042ff2

View File

@ -25,7 +25,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd December 14, 2006 .Dd April 12, 2013
.Dt SOCKET 9 .Dt SOCKET 9
.Os .Os
.Sh NAME .Sh NAME
@ -208,12 +208,19 @@ Data may be retrieved directly to kernel or user memory via the
argument, or as an mbuf chain returned to the caller via argument, or as an mbuf chain returned to the caller via
.Fa mp0 , .Fa mp0 ,
avoiding a data copy. avoiding a data copy.
Only one of the The
.Fa uio .Fa uio
or must always be
.Fa mp0
pointers may be
.Pf non- Dv NULL . .Pf non- Dv NULL .
If
.Fa mp0
is
.Pf non- Dv NULL ,
only the
.Pf uio_resid
of
.Fa uio
is used.
The caller may optionally retrieve a socket address on a protocol with the The caller may optionally retrieve a socket address on a protocol with the
.Dv PR_ADDR .Dv PR_ADDR
capability by providing storage via capability by providing storage via