diff options
author | nectar <nectar@FreeBSD.org> | 2003-04-24 18:05:48 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-04-24 18:05:48 +0000 |
commit | e24fc5cd2114be8185898edffd1ee3cef0ad2ebe (patch) | |
tree | e7b1bfe7f6ed7c9df25b42251d4249a3273e6e96 /lib/libc | |
parent | 8b5edf7f5b6beed6c920f17eed905067eb649549 (diff) | |
download | FreeBSD-src-e24fc5cd2114be8185898edffd1ee3cef0ad2ebe.zip FreeBSD-src-e24fc5cd2114be8185898edffd1ee3cef0ad2ebe.tar.gz |
Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' by
namespace.h.
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/gethostnamadr.c | 6 | ||||
-rw-r--r-- | lib/libc/net/getnetnamadr.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index 021acf2..fdcabc7 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -26,6 +26,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "namespace.h" #include <sys/param.h> #include <sys/socket.h> #include <netinet/in.h> @@ -38,6 +39,7 @@ __FBSDID("$FreeBSD$"); #include <nsswitch.h> #include <arpa/nameser.h> /* XXX hack for _res */ #include <resolv.h> /* XXX hack for _res */ +#include "un-namespace.h" extern int _ht_gethostbyname(void *, void *, va_list); extern int _dns_gethostbyname(void *, void *, va_list); @@ -83,7 +85,7 @@ gethostbyname2(const char *name, int type) { 0 } }; - rval = nsdispatch((void *)&hp, dtab, NSDB_HOSTS, "gethostbyname", + rval = _nsdispatch((void *)&hp, dtab, NSDB_HOSTS, "gethostbyname", default_src, name, type); if (rval != NS_SUCCESS) @@ -105,7 +107,7 @@ gethostbyaddr(const char *addr, int len, int type) { 0 } }; - rval = nsdispatch((void *)&hp, dtab, NSDB_HOSTS, "gethostbyaddr", + rval = _nsdispatch((void *)&hp, dtab, NSDB_HOSTS, "gethostbyaddr", default_src, addr, len, type); if (rval != NS_SUCCESS) diff --git a/lib/libc/net/getnetnamadr.c b/lib/libc/net/getnetnamadr.c index 6eb7d22..002765a 100644 --- a/lib/libc/net/getnetnamadr.c +++ b/lib/libc/net/getnetnamadr.c @@ -26,6 +26,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "namespace.h" #include <sys/param.h> #include <sys/socket.h> #include <netinet/in.h> @@ -36,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include <string.h> #include <stdarg.h> #include <nsswitch.h> +#include "un-namespace.h" extern int _ht_getnetbyname(void *, void *, va_list); extern int _dns_getnetbyname(void *, void *, va_list); @@ -65,7 +67,7 @@ getnetbyname(const char *name) { 0 } }; - rval = nsdispatch((void *)&hp, dtab, NSDB_NETWORKS, "getnetbyname", + rval = _nsdispatch((void *)&hp, dtab, NSDB_NETWORKS, "getnetbyname", default_src, name); if (rval != NS_SUCCESS) @@ -87,7 +89,7 @@ getnetbyaddr(u_long addr, int af) { 0 } }; - rval = nsdispatch((void *)&hp, dtab, NSDB_NETWORKS, "getnetbyaddr", + rval = _nsdispatch((void *)&hp, dtab, NSDB_NETWORKS, "getnetbyaddr", default_src, addr, af); if (rval != NS_SUCCESS) |