diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-04-15 17:16:34 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-04-15 17:16:34 +0000 |
commit | c7262b73d570b1445b4004f63226239657da176a (patch) | |
tree | 4328cfae76de524fe19d5c854f1f9e755427dc10 /lib/libc/sys | |
parent | 8be43ea150d934792cac3d8166f580234d920995 (diff) |
connect(2) can set errno = EPROTOTYPE for unix domain sockets. OK jmc@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/connect.2 | 15 |
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 , |