Date: Fri, 24 Jan 1997 13:54:08 +0100 From: sthaug@nethelp.no To: current@freebsd.org Subject: Minor correction to lib/libc/sys/send.2: EACCES error code Message-ID: <20541.854110448@verdi.nethelp.no>
next in thread | raw e-mail | index | archive | help
(This may not be the right place to send corrections - but it wasn't
obvious what would be better.)
send/sendto/sendmsg can return EACCES, and this is not documented. See
the following code segment from sys/netinet/ip_output.c:
if ((flags & IP_ALLOWBROADCAST) == 0) {
error = EACCES;
goto bad;
}
Here is a proposed context diff for 3.0-970114-SNAP/src/lib/libc/sys.
Please note that I haven't checked whether this applies to other than
IP.
Steinar Haug, Nethelp consulting, sthaug@nethelp.no
----------------------------------------------------------------------
*** send.2.orig Tue Jan 14 07:07:28 1997
--- send.2 Fri Jan 24 13:39:56 1997
***************
*** 143,148 ****
--- 143,151 ----
.Fn sendmsg
fail if:
.Bl -tag -width [EMSGSIZE]
+ .It Bq Er EACCES
+ The destination address is a broadcast address, and SO_BROADCAST
+ has not been set on the socket.
.It Bq Er EBADF
An invalid descriptor was specified.
.It Bq Er ENOTSOCK
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20541.854110448>
