From 96d22c0d06b50151a5fc3105046d47031412eff5 Mon Sep 17 00:00:00 2001 From: harti Date: Fri, 16 Jul 2004 17:15:37 +0000 Subject: Document the MSG_DONTWAIT flag. --- lib/libc/sys/recv.2 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.1