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/net | |
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/net')
-rw-r--r-- | lib/libc/net/gethostnamadr.c | 8 |
1 files changed, 7 insertions, 1 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) |