mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
171689dac7
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>
85 lines
3.0 KiB
Modula-2
85 lines
3.0 KiB
Modula-2
/* List of all functions defined for the NSS in GNU C Library.
|
|
Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<https://www.gnu.org/licenses/>. */
|
|
|
|
/* This list must be kept sorted!!! */
|
|
|
|
DEFINE_NSS_FUNCTION (endaliasent)
|
|
DEFINE_NSS_FUNCTION (endetherent)
|
|
DEFINE_NSS_FUNCTION (endgrent)
|
|
DEFINE_NSS_FUNCTION (endhostent)
|
|
DEFINE_NSS_FUNCTION (endnetent)
|
|
DEFINE_NSS_FUNCTION (endnetgrent)
|
|
DEFINE_NSS_FUNCTION (endprotoent)
|
|
DEFINE_NSS_FUNCTION (endpwent)
|
|
DEFINE_NSS_FUNCTION (endrpcent)
|
|
DEFINE_NSS_FUNCTION (endservent)
|
|
DEFINE_NSS_FUNCTION (endsgent)
|
|
DEFINE_NSS_FUNCTION (endspent)
|
|
DEFINE_NSS_FUNCTION (getaliasbyname_r)
|
|
DEFINE_NSS_FUNCTION (getaliasent_r)
|
|
DEFINE_NSS_FUNCTION (getcanonname_r)
|
|
DEFINE_NSS_FUNCTION (getetherent_r)
|
|
DEFINE_NSS_FUNCTION (getgrent_r)
|
|
DEFINE_NSS_FUNCTION (getgrgid_r)
|
|
DEFINE_NSS_FUNCTION (getgrnam_r)
|
|
DEFINE_NSS_FUNCTION (gethostbyaddr2_r)
|
|
DEFINE_NSS_FUNCTION (gethostbyaddr_r)
|
|
DEFINE_NSS_FUNCTION (gethostbyname2_r)
|
|
DEFINE_NSS_FUNCTION (gethostbyname3_r)
|
|
DEFINE_NSS_FUNCTION (gethostbyname4_r)
|
|
DEFINE_NSS_FUNCTION (gethostbyname_r)
|
|
DEFINE_NSS_FUNCTION (gethostent_r)
|
|
DEFINE_NSS_FUNCTION (gethostton_r)
|
|
DEFINE_NSS_FUNCTION (getnetbyaddr_r)
|
|
DEFINE_NSS_FUNCTION (getnetbyname_r)
|
|
DEFINE_NSS_FUNCTION (getnetent_r)
|
|
DEFINE_NSS_FUNCTION (getnetgrent_r)
|
|
DEFINE_NSS_FUNCTION (getntohost_r)
|
|
DEFINE_NSS_FUNCTION (getprotobyname_r)
|
|
DEFINE_NSS_FUNCTION (getprotobynumber_r)
|
|
DEFINE_NSS_FUNCTION (getprotoent_r)
|
|
DEFINE_NSS_FUNCTION (getpublickey)
|
|
DEFINE_NSS_FUNCTION (getpwent_r)
|
|
DEFINE_NSS_FUNCTION (getpwnam_r)
|
|
DEFINE_NSS_FUNCTION (getpwuid_r)
|
|
DEFINE_NSS_FUNCTION (getrpcbyname_r)
|
|
DEFINE_NSS_FUNCTION (getrpcbynumber_r)
|
|
DEFINE_NSS_FUNCTION (getrpcent_r)
|
|
DEFINE_NSS_FUNCTION (getsecretkey)
|
|
DEFINE_NSS_FUNCTION (getservbyname_r)
|
|
DEFINE_NSS_FUNCTION (getservbyport_r)
|
|
DEFINE_NSS_FUNCTION (getservent_r)
|
|
DEFINE_NSS_FUNCTION (getsgent_r)
|
|
DEFINE_NSS_FUNCTION (getsgnam_r)
|
|
DEFINE_NSS_FUNCTION (getspent_r)
|
|
DEFINE_NSS_FUNCTION (getspnam_r)
|
|
DEFINE_NSS_FUNCTION (initgroups_dyn)
|
|
DEFINE_NSS_FUNCTION (netname2user)
|
|
DEFINE_NSS_FUNCTION (setaliasent)
|
|
DEFINE_NSS_FUNCTION (setetherent)
|
|
DEFINE_NSS_FUNCTION (setgrent)
|
|
DEFINE_NSS_FUNCTION (sethostent)
|
|
DEFINE_NSS_FUNCTION (setnetent)
|
|
DEFINE_NSS_FUNCTION (setnetgrent)
|
|
DEFINE_NSS_FUNCTION (setprotoent)
|
|
DEFINE_NSS_FUNCTION (setpwent)
|
|
DEFINE_NSS_FUNCTION (setrpcent)
|
|
DEFINE_NSS_FUNCTION (setservent)
|
|
DEFINE_NSS_FUNCTION (setsgent)
|
|
DEFINE_NSS_FUNCTION (setspent)
|