mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
4eaa9bb48b
* 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
29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
# /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
|
|
# three variables:
|
|
#
|
|
# NETID_AUTHORITATIVE
|
|
# If set to TRUE, the initgroups() function will accept the information
|
|
# from the netid.byname NIS map as authoritative. This can speed up the
|
|
# function significantly if the group.byname map is large. The content
|
|
# of the netid.byname map is used AS IS. The system administrator has
|
|
# to make sure it is correctly generated.
|
|
#NETID_AUTHORITATIVE=TRUE
|
|
#
|
|
# SERVICES_AUTHORITATIVE
|
|
# If set to TRUE, the getservbyname{,_r}() function will assume
|
|
# services.byservicename NIS map exists and is authoritative, particularly
|
|
# that it contains both keys with /proto and without /proto for both
|
|
# 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
|