summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2004-04-15 17:16:33 +0000
committermillert <millert@openbsd.org>2004-04-15 17:16:33 +0000
commit55b1548d1967f6b16623ea74d1227a05a39ce088 (patch)
tree58cfa0256dd2d721a0500167f4c627d8da0df34f /lib/libc
parentconstify baud rate to hardware parameters structures. (diff)
downloadwireguard-openbsd-55b1548d1967f6b16623ea74d1227a05a39ce088.tar.xz
wireguard-openbsd-55b1548d1967f6b16623ea74d1227a05a39ce088.zip
connect(2) can set errno = EPROTOTYPE for unix domain sockets. OK jmc@
Diffstat (limited to 'lib/libc')
-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 ,