From 574df121b0b3a2857220c67b3b9c31dfdc57951c Mon Sep 17 00:00:00 2001 From: bluhm Date: Thu, 5 Oct 2017 12:30:16 +0000 Subject: Document that connect(2) and sendto(2) may return with errno EADDRNOTAVAIL if local address is not available. OK deraadt@ millert@ --- lib/libc/sys/connect.2 | 6 +++--- lib/libc/sys/send.2 | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'lib/libc') 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 -- cgit v1.2.3-59-g8ed1b