diff options
author | 2012-07-08 13:12:46 +0000 | |
---|---|---|
committer | 2012-07-08 13:12:46 +0000 | |
commit | e299ab8767209f338c2570d358487e351713f76e (patch) | |
tree | ce4711073ec0296d69eb3ee8cc9d99722c5e2231 /lib/libc | |
parent | Add a test for kevent(EV_DELETE) screwing with POSIX file locks (diff) | |
download | wireguard-openbsd-e299ab8767209f338c2570d358487e351713f76e.tar.xz wireguard-openbsd-e299ab8767209f338c2570d358487e351713f76e.zip |
add stub function for gethostent(), and move things around a bit while here.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/asr/asr_resolver.c | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/lib/libc/asr/asr_resolver.c b/lib/libc/asr/asr_resolver.c index 1eb36c17ab3..077b52e0e10 100644 --- a/lib/libc/asr/asr_resolver.c +++ b/lib/libc/asr/asr_resolver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asr_resolver.c,v 1.1 2012/04/14 09:24:18 eric Exp $ */ +/* $OpenBSD: asr_resolver.c,v 1.2 2012/07/08 13:12:46 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -284,6 +284,24 @@ gethostbyaddr(const void *addr, socklen_t len, int af) return (h); } +/* XXX These functions do nothing for now. */ +void +sethostent(int stayopen) +{ +} + +void +endhostent(void) +{ +} + +struct hostent * +gethostent(void) +{ + h_errno = NETDB_INTERNAL; + return (NULL); +} + /* XXX bound checks are incorrect */ static struct netent * _mkstaticnetent(struct netent *n) @@ -413,17 +431,6 @@ getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, return (ar.ar_gai_errno); } -/* XXX see what to do */ -void -sethostent(int stayopen) -{ -} - -void -endhostent(void) -{ -} - /* from getrrsetbyname.c */ void freerrset(struct rrsetinfo *rrset) |