diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2012-07-08 13:12:47 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2012-07-08 13:12:47 +0000 |
commit | e5492c18e71c7df14ed7dd7a6c9f612a41835fe8 (patch) | |
tree | 5d03c7040f98fab17a2d73792a9ba9f7550d861f /lib | |
parent | 78d04e54e4b4d3157fca1697775b7abf1fb24bfb (diff) |
add stub function for gethostent(), and move things around a bit while here.
Diffstat (limited to 'lib')
-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) |