Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' by
namespace.h. Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
20e0e084e7
commit
c5774e2d30
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user