summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/netdb_private.h
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-04-28 12:03:38 +0000
committerume <ume@FreeBSD.org>2006-04-28 12:03:38 +0000
commite14f1c3b3b31e7f6c28cef5acc87f4c7373d288c (patch)
treed796503361cc28eb3b9eaa593876abd826a2cf81 /lib/libc/net/netdb_private.h
parent4b38e5bbca25f143cbf615b8c7fe1f7873ba1e6c (diff)
downloadFreeBSD-src-e14f1c3b3b31e7f6c28cef5acc87f4c7373d288c.zip
FreeBSD-src-e14f1c3b3b31e7f6c28cef5acc87f4c7373d288c.tar.gz
- Extend the nsswitch to support Services, Protocols and Rpc
databases. - Make nsswitch support caching. Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
Diffstat (limited to 'lib/libc/net/netdb_private.h')
-rw-r--r--lib/libc/net/netdb_private.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/libc/net/netdb_private.h b/lib/libc/net/netdb_private.h
index fa1de62..e5535f6 100644
--- a/lib/libc/net/netdb_private.h
+++ b/lib/libc/net/netdb_private.h
@@ -100,22 +100,6 @@ struct protoent_data {
char line[_MAXLINELEN + 1];
};
-struct servent_data {
- FILE *fp;
- char *aliases[_MAXALIASES];
- int stayopen;
- char line[_MAXLINELEN + 1];
-#ifdef YP
- int yp_stepping;
- char *yp_name;
- char *yp_proto;
- int yp_port;
- char *yp_domain;
- char *yp_key;
- int yp_keylen;
-#endif
-};
-
struct hostdata {
struct hostent host;
char data[sizeof(struct hostent_data)];
@@ -131,11 +115,6 @@ struct protodata {
char data[sizeof(struct protoent_data)];
};
-struct servdata {
- struct servent serv;
- char data[sizeof(struct servent_data)];
-};
-
struct hostdata *__hostdata_init(void);
struct hostent *__hostent_init(void);
struct hostent_data *__hostent_data_init(void);
@@ -143,19 +122,13 @@ struct netdata *__netdata_init(void);
struct netent_data *__netent_data_init(void);
struct protodata *__protodata_init(void);
struct protoent_data *__protoent_data_init(void);
-struct servdata *__servdata_init(void);
-struct servent_data *__servent_data_init(void);
int __copy_hostent(struct hostent *, struct hostent *, char *, size_t);
int __copy_netent(struct netent *, struct netent *, char *, size_t);
int __copy_protoent(struct protoent *, struct protoent *, char *, size_t);
-int __copy_servent(struct servent *, struct servent *, char *, size_t);
void __endprotoent_p(struct protoent_data *);
-void __endservent_p(struct servent_data *);
int __getprotoent_p(struct protoent *, struct protoent_data *);
-int __getservent_p(struct servent *, struct servent_data *);
void __setprotoent_p(int, struct protoent_data *);
-void __setservent_p(int, struct servent_data *);
void _endhostdnsent(void);
void _endhosthtent(struct hostent_data *);
void _endnetdnsent(void);
OpenPOWER on IntegriCloud