diff options
author | ume <ume@FreeBSD.org> | 2010-04-18 04:07:32 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2010-04-18 04:07:32 +0000 |
commit | 50edecc45441eac7385beca569f1da14f1b9a490 (patch) | |
tree | 73388e031635f47e8040fb3addc72db4edc7a876 /include | |
parent | 79412ab1a15b9e5939e48ea214459a68d9ec5193 (diff) | |
download | FreeBSD-src-50edecc45441eac7385beca569f1da14f1b9a490.zip FreeBSD-src-50edecc45441eac7385beca569f1da14f1b9a490.tar.gz |
MFC r206155, r206267: Add capability to use a db version of
services. It is enabled by specifying `db' as source of
services in /etc/nsswitch.conf.
Diffstat (limited to 'include')
-rw-r--r-- | include/netdb.h | 1 | ||||
-rw-r--r-- | include/nsswitch.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/netdb.h b/include/netdb.h index 1c9ef27..c15b284 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -86,6 +86,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 9069ac1..8aea5ad 100644 --- a/include/nsswitch.h +++ b/include/nsswitch.h @@ -65,6 +65,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 */ |