diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2013-04-12 16:36:18 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2013-04-12 16:36:18 +0000 |
commit | 8818042ff2ecd155adb5c248a22de2dbe5d9c2a9 (patch) | |
tree | 554eccae24daa74eb2faae34f3820ba8e348db79 | |
parent | e3389419ef6ea88fed0e4bf0c11d9cb453ee303e (diff) | |
download | src-8818042ff2ecd155adb5c248a22de2dbe5d9c2a9.tar.gz src-8818042ff2ecd155adb5c248a22de2dbe5d9c2a9.zip |
Fix usage for soreceive(9) - uio must always be non-NULL.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=249412
-rw-r--r-- | share/man/man9/socket.9 | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/share/man/man9/socket.9 b/share/man/man9/socket.9 index 8320d84914c2..f2cb5bae5b0d 100644 --- a/share/man/man9/socket.9 +++ b/share/man/man9/socket.9 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 14, 2006 +.Dd April 12, 2013 .Dt SOCKET 9 .Os .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 .Fa mp0 , avoiding a data copy. -Only one of the +The .Fa uio -or -.Fa mp0 -pointers may be +must always be .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 .Dv PR_ADDR capability by providing storage via |