summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2012-07-08 13:12:46 +0000
committereric <eric@openbsd.org>2012-07-08 13:12:46 +0000
commite299ab8767209f338c2570d358487e351713f76e (patch)
treece4711073ec0296d69eb3ee8cc9d99722c5e2231 /lib/libc
parentAdd a test for kevent(EV_DELETE) screwing with POSIX file locks (diff)
downloadwireguard-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.c31
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)