summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/socket.2
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-12-07 02:26:08 +0000
committerkevlo <kevlo@FreeBSD.org>2012-12-07 02:26:08 +0000
commit6170f80efba53e2d170e91a15eba38ea8f6dda89 (patch)
tree3f17d77b999f3b295a8fb0362a92500af2f63f12 /lib/libc/sys/socket.2
parentc71d2848847b4dc9d08aee9ab683b44b1f9a6d19 (diff)
downloadFreeBSD-src-6170f80efba53e2d170e91a15eba38ea8f6dda89.zip
FreeBSD-src-6170f80efba53e2d170e91a15eba38ea8f6dda89.tar.gz
Document that socket(2) may fail with EAFNOSUPPORT if the family cannot
be found. Reviewed by: glebius Obtained from: NetBSD
Diffstat (limited to 'lib/libc/sys/socket.2')
-rw-r--r--lib/libc/sys/socket.219
1 files changed, 12 insertions, 7 deletions
diff --git a/lib/libc/sys/socket.2 b/lib/libc/sys/socket.2
index dae33d0..24e4293 100644
--- a/lib/libc/sys/socket.2
+++ b/lib/libc/sys/socket.2
@@ -28,7 +28,7 @@
.\" From: @(#)socket.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd January 5, 2009
+.Dd December 7, 2012
.Dt SOCKET 2
.Os
.Sh NAME
@@ -248,21 +248,26 @@ The
.Fn socket
system call fails if:
.Bl -tag -width Er
-.It Bq Er EPROTONOSUPPORT
-The protocol type or the specified protocol is not supported
-within this domain.
+.It Bq Er EACCES
+Permission to create a socket of the specified type and/or protocol
+is denied.
+.It Bq Er EAFNOSUPPORT
+The address family (domain) is not supported or the
+specified domain is not supported by this protocol family.
.It Bq Er EMFILE
The per-process descriptor table is full.
.It Bq Er ENFILE
The system file table is full.
-.It Bq Er EACCES
-Permission to create a socket of the specified type and/or protocol
-is denied.
.It Bq Er ENOBUFS
Insufficient buffer space is available.
The socket cannot be created until sufficient resources are freed.
.It Bq Er EPERM
User has insufficient privileges to carry out the requested operation.
+.It Bq Er EPROTONOSUPPORT
+The protocol type or the specified protocol is not supported
+within this domain.
+.It Bq Er EPROTOTYPE
+The socket type is not supported by the protocol.
.El
.Sh SEE ALSO
.Xr accept 2 ,
OpenPOWER on IntegriCloud