diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-10-05 12:30:17 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-10-05 12:30:17 +0000 |
commit | da2d5001050e0d9c8cdf4cee2f3830b09678926f (patch) | |
tree | 8845856e5efe9939a7ed13567949e9a51c8d3a13 /lib | |
parent | 68cce351effa149ead345b04d996fab9f9e398dd (diff) |
Document that connect(2) and sendto(2) may return with errno
EADDRNOTAVAIL if local address is not available.
OK deraadt@ millert@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/connect.2 | 6 | ||||
-rw-r--r-- | lib/libc/sys/send.2 | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2 index cb862b7fe35..746d807fd81 100644 --- a/lib/libc/sys/connect.2 +++ b/lib/libc/sys/connect.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: connect.2,v 1.32 2017/03/02 22:12:02 benno Exp $ +.\" $OpenBSD: connect.2,v 1.33 2017/10/05 12:30:16 bluhm Exp $ .\" $NetBSD: connect.2,v 1.8 1995/10/12 15:40:48 jtc Exp $ .\" .\" Copyright (c) 1983, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)connect.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: March 2 2017 $ +.Dd $Mdocdate: October 5 2017 $ .Dt CONNECT 2 .Os .Sh NAME @@ -162,7 +162,7 @@ is not a valid descriptor. .Fa s is not a socket. .It Bq Er EADDRNOTAVAIL -The specified address is not available on this machine. +No suitable address is available on the local machine. .It Bq Er EAFNOSUPPORT Addresses in the specified address family cannot be used with this socket. .It Bq Er EISCONN diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2 index 6db1ed64ada..38b78fce075 100644 --- a/lib/libc/sys/send.2 +++ b/lib/libc/sys/send.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: send.2,v 1.31 2014/09/09 06:32:37 guenther Exp $ +.\" $OpenBSD: send.2,v 1.32 2017/10/05 12:30:16 bluhm Exp $ .\" $NetBSD: send.2,v 1.6 1996/01/15 01:17:18 thorpej Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)send.2 8.2 (Berkeley) 2/21/94 .\" -.Dd $Mdocdate: September 9 2014 $ +.Dd $Mdocdate: October 5 2017 $ .Dt SEND 2 .Os .Sh NAME @@ -207,6 +207,8 @@ and .Fn sendmsg may return the following errors: .Bl -tag -width Er +.It Bq Er EADDRNOTAVAIL +No suitable address is available on the local machine. .It Bq Er EAFNOSUPPORT Addresses in the specified address family cannot be used with this socket. .It Bq Er EISCONN |