aboutsummaryrefslogtreecommitdiff
path: root/include/nsswitch.h
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2006-04-28 12:03:38 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2006-04-28 12:03:38 +0000
commit06a99fe36f0aac93e7689da6b3f07b727750691f (patch)
treed796503361cc28eb3b9eaa593876abd826a2cf81 /include/nsswitch.h
parent18486a5ee3fa9ccdf2a2d2b48581bc0aa614fb80 (diff)
downloadsrc-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/nsswitch.h')
-rw-r--r--include/nsswitch.h10
1 files changed, 6 insertions, 4 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
*/