summaryrefslogtreecommitdiff
path: root/lib/libc/sys/connect.2
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-04-15 17:16:34 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-04-15 17:16:34 +0000
commitc7262b73d570b1445b4004f63226239657da176a (patch)
tree4328cfae76de524fe19d5c854f1f9e755427dc10 /lib/libc/sys/connect.2
parent8be43ea150d934792cac3d8166f580234d920995 (diff)
connect(2) can set errno = EPROTOTYPE for unix domain sockets. OK jmc@
Diffstat (limited to 'lib/libc/sys/connect.2')
-rw-r--r--lib/libc/sys/connect.215
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2
index 3780b362205..56c240a8b12 100644
--- a/lib/libc/sys/connect.2
+++ b/lib/libc/sys/connect.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: connect.2,v 1.17 2003/06/02 20:18:39 millert Exp $
+.\" $OpenBSD: connect.2,v 1.18 2004/04/15 17:16:33 millert Exp $
.\" $NetBSD: connect.2,v 1.8 1995/10/12 15:40:48 jtc Exp $
.\"
.\" Copyright (c) 1983, 1993
@@ -150,6 +150,19 @@ Search permission is denied for a component of the path prefix.
Write access to the named socket is denied.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
+.It Bq Er EPROTOTYPE
+The file described by
+.Fa name
+is of a different type than
+.Fa s .
+E.g.,
+.Fa s
+may be of type
+.Dv SOCK_STREAM
+whereas
+.Fa name
+may refer to a socket of type
+.Dv SOCK_DGRAM .
.El
.Sh SEE ALSO
.Xr accept 2 ,