aboutsummaryrefslogtreecommitdiff
path: root/nss/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-19 20:55:48 +0100
committerDJ Delorie <dj@redhat.com>2020-12-04 17:15:05 -0500
commit171689dac7fcb979e7d3ffbd307eacae3c07c2d3 (patch)
treeddd9febed20f88719d7eaf2938798a57b0631074 /nss/Makefile
parent7dc2f14bb340bce9a6283dfa7dfde18ec2cb24a2 (diff)
downloadglibc-171689dac7fcb979e7d3ffbd307eacae3c07c2d3.tar
glibc-171689dac7fcb979e7d3ffbd307eacae3c07c2d3.tar.gz
glibc-171689dac7fcb979e7d3ffbd307eacae3c07c2d3.tar.bz2
glibc-171689dac7fcb979e7d3ffbd307eacae3c07c2d3.zip
nss: Introduce <nss_module.h>
This provides the struct nss_module type, which combines the old struct service_library type with the known_function tree, by statically allocating space for all function pointers. struct nss_module is fairly large (536 bytes), but it will be shared across NSS databases. The old known_function handling had non-some per-function overhead (at least 32 bytes per looked-up function, but more for long function anmes), so overall, this is not too bad. Resolving all functions at load time simplifies locking, and the repeated lookups should be fast because the caches are hot at this point. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'nss/Makefile')
-rw-r--r--nss/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/Makefile b/nss/Makefile
index 20c412c3e1..18035a4fb4 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -30,7 +30,7 @@ routines = nsswitch getnssent getnssent_r digits_dots \
$(addsuffix -lookup,$(databases)) \
compat-lookup nss_hash nss_files_fopen \
nss_readline nss_parse_line_result \
- nss_fgetent_r
+ nss_fgetent_r nss_module
# These are the databases that go through nss dispatch.
# Caution: if you add a database here, you must add its real name