diff options
author | Tobias Weingartner <weingart@cvs.openbsd.org> | 1998-01-11 19:32:11 +0000 |
---|---|---|
committer | Tobias Weingartner <weingart@cvs.openbsd.org> | 1998-01-11 19:32:11 +0000 |
commit | 6607731225347e583be10d914e5758d7a9726fc9 (patch) | |
tree | 8723d65af68b877289e1bf7b3653c2b86fa5cbda /lib/libc | |
parent | 048f9e5245551dcd59db3e5d9941fb31f6d07971 (diff) |
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 |