From a53e6b94f4676dbce0267ea909bc0f6c9de4fca0 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 5 Feb 1999 00:40:24 +0000 Subject: support MSG_BCAST and MSG_MCAST --- lib/libc/sys/recv.2 | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'lib') diff --git a/lib/libc/sys/recv.2 b/lib/libc/sys/recv.2 index 9fb35195a2a..cc078d5180e 100644 --- a/lib/libc/sys/recv.2 +++ b/lib/libc/sys/recv.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: recv.2,v 1.10 1998/08/17 17:35:14 deraadt Exp $ +.\" $OpenBSD: recv.2,v 1.11 1999/02/05 00:40:23 deraadt Exp $ .\" $NetBSD: recv.2,v 1.6 1995/02/27 12:36:08 cgd Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 @@ -206,21 +206,28 @@ set to .Pp The .Fa msg_flags -field is set on return according to the message received. -.Dv MSG_EOR -indicates end-of-record; +field is set on return according to the message received. It will contain +zero or more of the following values: +.Bl -column MSG_CTRUNC -offset indent +.It Dv MSG_EOR Ta +Indicates end-of-record; the data returned completed a record (generally used with sockets of type .Dv SOCK_SEQPACKET ) . -.Dv MSG_TRUNC -indicates that +.It Dv MSG_TRUNC Ta +Indicates that the trailing portion of a datagram was discarded because the datagram was larger than the buffer supplied. -.Dv MSG_CTRUNC -indicates that some +.It Dv MSG_CTRUNC Ta +Indicates that some control data were discarded due to lack of space in the buffer for ancillary data. -.Dv MSG_OOB -is returned to indicate that expedited or out-of-band data were received. +.It Dv MSG_OOB Ta +Returned to indicate that expedited or out-of-band data was received. +.It Dv MSG_BCAST Ta +Indicates that the packet was received as broadcast. +.It Dv MSG_MCAST Ta +Indicates that the packet was received as multicast. +.El .Pp .Sh RETURN VALUES These calls return the number of bytes received, or -1 -- cgit v1.2.3