diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-04-28 12:03:38 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-04-28 12:03:38 +0000 |
commit | 06a99fe36f0aac93e7689da6b3f07b727750691f (patch) | |
tree | d796503361cc28eb3b9eaa593876abd826a2cf81 /include | |
parent | 18486a5ee3fa9ccdf2a2d2b48581bc0aa614fb80 (diff) | |
download | src-06a99fe36f0aac93e7689da6b3f07b727750691f.tar.gz src-06a99fe36f0aac93e7689da6b3f07b727750691f.zip |
- 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
Notes
Notes:
svn path=/head/; revision=158115
Diffstat (limited to 'include')
-rw-r--r-- | include/nsswitch.h | 10 | ||||
-rw-r--r-- | include/rpc/rpcent.h | 7 |
2 files changed, 7 insertions, 10 deletions
diff --git a/include/nsswitch.h b/include/nsswitch.h index 22e482c3a853..5e7ee0c29ba7 100644 --- a/include/nsswitch.h +++ b/include/nsswitch.h @@ -68,6 +68,7 @@ #define NSSRC_DNS "dns" /* DNS; IN for hosts, HS for others */ #define NSSRC_NIS "nis" /* YP/NIS */ #define NSSRC_COMPAT "compat" /* passwd,group in YP compat mode */ +#define NSSRC_CACHE "cache" /* cache daemon */ /* * currently implemented databases @@ -80,6 +81,11 @@ #define NSDB_PASSWD "passwd" #define NSDB_PASSWD_COMPAT "passwd_compat" #define NSDB_SHELLS "shells" +#define NSDB_SERVICES "services" +#define NSDB_SERVICES_COMPAT "services_compat" +#define NSDB_SSH_HOSTKEYS "ssh_hostkeys" +#define NSDB_PROTOCOLS "protocols" +#define NSDB_RPC "rpc" /* * suggested databases to implement @@ -93,11 +99,8 @@ #define NSDB_NETMASKS "netmasks" #define NSDB_PHONES "phones" #define NSDB_PRINTCAP "printcap" -#define NSDB_PROTOCOLS "protocols" #define NSDB_REMOTE "remote" -#define NSDB_RPC "rpc" #define NSDB_SENDMAILVARS "sendmailvars" -#define NSDB_SERVICES "services" #define NSDB_TERMCAP "termcap" #define NSDB_TTYS "ttys" @@ -193,7 +196,6 @@ enum nss_lookup_type { }; #ifdef _NS_PRIVATE - /* * private data structures for back-end nsswitch implementation */ diff --git a/include/rpc/rpcent.h b/include/rpc/rpcent.h index 4388d8b9ff88..64858b10fa06 100644 --- a/include/rpc/rpcent.h +++ b/include/rpc/rpcent.h @@ -53,12 +53,7 @@ struct rpcent { }; __BEGIN_DECLS -extern struct rpcent *getrpcbyname_r(const char *, struct rpcent *, - char *, int); -extern struct rpcent *getrpcbynumber_r(int, struct rpcent *, char *, int); -extern struct rpcent *getrpcent_r(struct rpcent *, char *, int); - -/* Old interfaces that return a pointer to a static area; MT-unsafe */ +/* These interfaces are currently implemented through nsswitch and MT-safe */ extern struct rpcent *getrpcbyname(char *); extern struct rpcent *getrpcbynumber(int); extern struct rpcent *getrpcent(void); |