diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-02-19 20:55:48 +0100 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2020-12-04 17:15:05 -0500 |
commit | 171689dac7fcb979e7d3ffbd307eacae3c07c2d3 (patch) | |
tree | ddd9febed20f88719d7eaf2938798a57b0631074 /nss/Makefile | |
parent | 7dc2f14bb340bce9a6283dfa7dfde18ec2cb24a2 (diff) | |
download | glibc-171689dac7fcb979e7d3ffbd307eacae3c07c2d3.zip glibc-171689dac7fcb979e7d3ffbd307eacae3c07c2d3.tar.gz glibc-171689dac7fcb979e7d3ffbd307eacae3c07c2d3.tar.bz2 |
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/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/Makefile b/nss/Makefile index 20c412c..18035a4 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 |