diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-04-28 21:08:22 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-04-28 21:08:22 +0000 |
commit | 4eaa9bb48b319803544909a085651fc6ff4a9ea1 (patch) | |
tree | 82576e0a3da147dbad681d17ef6bb3aec4f0ba0d /nis/nss | |
parent | ee821689eb2a2db7d303d4e3efa7ef54f502c854 (diff) | |
download | glibc-4eaa9bb48b319803544909a085651fc6ff4a9ea1.tar.gz glibc-4eaa9bb48b319803544909a085651fc6ff4a9ea1.tar.xz glibc-4eaa9bb48b319803544909a085651fc6ff4a9ea1.zip |
* nis/nss-default.c (vars): Add SETENT_BATCH_READ.
* nis/nss: Document SETENT_BATCH_READ. * nis/libnsl.h: Define NSS_FLAG_SETENT_BATCH_READ. * nis/nss_nis/nis-service.c (saveit): Don't add NUL byte if the string is already NUL terminated. (internal_nis_endservent): No need to return anything. Change callers. (internal_nis_setservent): One more initialization. * nis/nss_nis/nis-pwd.c: Support SETENT_BATCH_READ option. * nis/nss_nis/nis-grp.c: Likewise. * nis/nss-default.c (init): Rewrite parser to get the variables
Diffstat (limited to 'nis/nss')
-rw-r--r-- | nis/nss | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nis/nss b/nis/nss index 4f65f81120..aab40ab3f0 100644 --- a/nis/nss +++ b/nis/nss @@ -1,7 +1,7 @@ # /etc/default/nss # This file can theoretically contain a bunch of customization variables -# for Name Service Switch in the GNU C library. For now there are only two -# variables: +# for Name Service Switch in the GNU C library. For now there are only +# three variables: # # NETID_AUTHORITATIVE # If set to TRUE, the initgroups() function will accept the information @@ -18,3 +18,11 @@ # primary service names and service aliases. The system administrator # has to make sure it is correctly generated. #SERVICES_AUTHORITATIVE=TRUE +# +# SETENT_BATCH_READ +# If set to TRUE, various setXXent() functions will read the entire +# database at once and then hand out the requests one by one from +# memory with every getXXent() call. Otherwise each getXXent() call +# might result into a network communication with the server to get +# the next entry. +#SETENT_BATCH_READ=TRUE |