summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2010-04-04 08:31:03 +0000
committerume <ume@FreeBSD.org>2010-04-04 08:31:03 +0000
commit7915a506541b9b6b29c31dec9643b7da9649252c (patch)
tree51cf07752246673a6578819cb07fbdc4a934f31d /include
parent6e468628cf2ea2fc37557d96be5e76436f206aed (diff)
downloadFreeBSD-src-7915a506541b9b6b29c31dec9643b7da9649252c.zip
FreeBSD-src-7915a506541b9b6b29c31dec9643b7da9649252c.tar.gz
Add capability to use a db version of services. It is enabled by
specifying `db' as source of service in /etc/nsswitch.conf. MFC after: 2 weeks
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h1
-rw-r--r--include/nsswitch.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 2132044..2c2e4b3 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -82,6 +82,7 @@ typedef __uint32_t uint32_t;
#define _PATH_NETWORKS "/etc/networks"
#define _PATH_PROTOCOLS "/etc/protocols"
#define _PATH_SERVICES "/etc/services"
+#define _PATH_SERVICES_DB "/var/db/services.db"
#define h_errno (*__h_errno())
diff --git a/include/nsswitch.h b/include/nsswitch.h
index 0ff6cf1..1a97cea 100644
--- a/include/nsswitch.h
+++ b/include/nsswitch.h
@@ -58,6 +58,7 @@
* currently implemented sources
*/
#define NSSRC_FILES "files" /* local files */
+#define NSSRC_DB "db" /* database */
#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 */
OpenPOWER on IntegriCloud