diff options
author | 2015-12-19 18:59:10 +0000 | |
---|---|---|
committer | 2015-12-19 18:59:10 +0000 | |
commit | c02cbb384e91b13a6302f62f3f8fd08892ef23a1 (patch) | |
tree | c91c75541960edcb49d2686ef40121d591a07a7e /lib/libc | |
parent | Style cleanup and removal of needless casts. ok tb@ (diff) | |
download | wireguard-openbsd-c02cbb384e91b13a6302f62f3f8fd08892ef23a1.tar.xz wireguard-openbsd-c02cbb384e91b13a6302f62f3f8fd08892ef23a1.zip |
gethostbyname2() and gethostbyaddr() need <sys/socket.h>; discussed with
millert@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/gethostbyname.3 | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/libc/net/gethostbyname.3 b/lib/libc/net/gethostbyname.3 index 482e3b4a9ca..be6d7e99087 100644 --- a/lib/libc/net/gethostbyname.3 +++ b/lib/libc/net/gethostbyname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gethostbyname.3,v 1.29 2015/12/16 18:12:42 jmc Exp $ +.\" $OpenBSD: gethostbyname.3,v 1.30 2015/12/19 18:59:10 tim Exp $ .\" .\" Copyright (c) 1983, 1987, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: December 16 2015 $ +.Dd $Mdocdate: December 19 2015 $ .Dt GETHOSTBYNAME 3 .Os .Sh NAME @@ -46,10 +46,6 @@ .Ft struct hostent * .Fn gethostbyname "const char *name" .Ft struct hostent * -.Fn gethostbyname2 "const char *name" "int af" -.Ft struct hostent * -.Fn gethostbyaddr "const void *addr" "socklen_t len" "int af" -.Ft struct hostent * .Fn gethostent void .Ft void .Fn sethostent "int stayopen" @@ -59,6 +55,12 @@ .Fn herror "const char *string" .Ft const char * .Fn hstrerror "int err" +.In sys/socket.h +.In netdb.h +.Ft struct hostent * +.Fn gethostbyname2 "const char *name" "int af" +.Ft struct hostent * +.Fn gethostbyaddr "const void *addr" "socklen_t len" "int af" .Sh DESCRIPTION The .Fn gethostbyname , |