diff options
author | 1998-01-11 19:32:07 +0000 | |
---|---|---|
committer | 1998-01-11 19:32:07 +0000 | |
commit | dc571acff183e3be8a7ec4e6182fcf6fbb32a3da (patch) | |
tree | f3b47846d761f4d0c2adbd283ebcac581ad72aef /lib/libc | |
parent | Tell the user to enter ESDI for IDE, not ST506. Also treat IDE as ESDI (diff) | |
download | wireguard-openbsd-dc571acff183e3be8a7ec4e6182fcf6fbb32a3da.tar.xz wireguard-openbsd-dc571acff183e3be8a7ec4e6182fcf6fbb32a3da.zip |
Add gethostent(), as some LEGACY code wants it. If you write new
code, PLEASE don't use this. Currently only iterates through the
local /etc/hosts file.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/gethostnamadr.c | 8 | ||||
-rw-r--r-- | lib/libc/shlib_version | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index 82eebd251d0..b11bff6b866 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -52,7 +52,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.27 1997/11/08 20:46:56 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.28 1998/01/11 19:32:10 weingart Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -1019,6 +1019,12 @@ map_v4v6_hostent(hp, bpp, lenp) } } +struct hostent * +gethostent() +{ + return (_gethtent()); +} + #ifdef RESOLVSORT static void addrsort(ap, num) diff --git a/lib/libc/shlib_version b/lib/libc/shlib_version index cd56ff5f1e5..2369e74bfac 100644 --- a/lib/libc/shlib_version +++ b/lib/libc/shlib_version @@ -1,2 +1,2 @@ major=17 -minor=6 +minor=7 |