diff options
author | harti <harti@FreeBSD.org> | 2004-07-16 17:15:37 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-07-16 17:15:37 +0000 |
commit | 96d22c0d06b50151a5fc3105046d47031412eff5 (patch) | |
tree | 12fe518b5e7eb1f72d73be06b9704bf7add5a5df /lib | |
parent | f4f737747428b6aa748a03486d406cce18e01578 (diff) | |
download | FreeBSD-src-96d22c0d06b50151a5fc3105046d47031412eff5.zip FreeBSD-src-96d22c0d06b50151a5fc3105046d47031412eff5.tar.gz |
Document the MSG_DONTWAIT flag.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/recv.2 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/sys/recv.2 b/lib/libc/sys/recv.2 index c23640f..1131824 100644 --- a/lib/libc/sys/recv.2 +++ b/lib/libc/sys/recv.2 @@ -124,10 +124,11 @@ argument to a function is formed by .Em or Ap ing one or more of the values: -.Bl -column MSG_WAITALL -offset indent +.Bl -column MSG_DONTWAIT -offset indent .It Dv MSG_OOB Ta process out-of-band data .It Dv MSG_PEEK Ta peek at incoming message .It Dv MSG_WAITALL Ta wait for full request or error +.It Dv MSG_DONTWAIT Ta don't block .El .Pp The @@ -145,6 +146,12 @@ the full request is satisfied. However, the call may still return less data than requested if a signal is caught, an error or disconnect occurs, or the next data to be received is of a different type than that returned. +The MSG_DONTWAIT flag requests the call to return when it would block otherwise. +If no data is available +.Va errno +is set to +.Er EAGAIN . +This flag is not available in strict ANSI or C99 compilation mode. .Pp The .Fn recvmsg |