1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

nss_files: Use NSS_DECLARE_MODULE_FUNCTIONS

Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
Florian Weimer
2020-02-12 11:47:40 +01:00
parent 7e3987ab54
commit 680f109322
15 changed files with 38 additions and 0 deletions

View File

@@ -30,6 +30,8 @@
#include "nsswitch.h" #include "nsswitch.h"
NSS_DECLARE_MODULE_FUNCTIONS (files)
/* Locks the static variables in this file. */ /* Locks the static variables in this file. */
__libc_lock_define_initialized (static, lock) __libc_lock_define_initialized (static, lock)

View File

@@ -18,6 +18,9 @@
#include <string.h> #include <string.h>
#include <netinet/ether.h> #include <netinet/ether.h>
#include <netinet/if_ether.h> #include <netinet/if_ether.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
struct etherent_data {}; struct etherent_data {};

View File

@@ -17,6 +17,9 @@
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#include <grp.h> #include <grp.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define STRUCTURE group #define STRUCTURE group
#define ENTNAME grent #define ENTNAME grent

View File

@@ -24,7 +24,9 @@
#include <resolv/resolv-internal.h> #include <resolv/resolv-internal.h>
#include <scratch_buffer.h> #include <scratch_buffer.h>
#include <alloc_buffer.h> #include <alloc_buffer.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
/* Get implementation for some internal functions. */ /* Get implementation for some internal functions. */
#include "../resolv/res_hconf.h" #include "../resolv/res_hconf.h"

View File

@@ -20,6 +20,9 @@
#include <string.h> #include <string.h>
#include <nscd/nscd.h> #include <nscd/nscd.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define PWD_FILENAME "/etc/passwd" #define PWD_FILENAME "/etc/passwd"
define_traced_file (pwd, PWD_FILENAME); define_traced_file (pwd, PWD_FILENAME);

View File

@@ -25,6 +25,9 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h> #include <stdlib.h>
#include <scratch_buffer.h> #include <scratch_buffer.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
enum nss_status enum nss_status
_nss_files_initgroups_dyn (const char *user, gid_t group, long int *start, _nss_files_initgroups_dyn (const char *user, gid_t group, long int *start,

View File

@@ -24,6 +24,8 @@
#include <rpc/des_crypt.h> #include <rpc/des_crypt.h>
#include "nsswitch.h" #include "nsswitch.h"
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define DATAFILE "/etc/publickey" #define DATAFILE "/etc/publickey"

View File

@@ -27,6 +27,8 @@
#include "nsswitch.h" #include "nsswitch.h"
#include "netgroup.h" #include "netgroup.h"
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define DATAFILE "/etc/netgroup" #define DATAFILE "/etc/netgroup"
libnss_files_hidden_proto (_nss_files_endnetgrent) libnss_files_hidden_proto (_nss_files_endnetgrent)

View File

@@ -20,6 +20,9 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netdb.h> #include <netdb.h>
#include <stdint.h> #include <stdint.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define ENTNAME netent #define ENTNAME netent
#define DATABASE "networks" #define DATABASE "networks"

View File

@@ -17,7 +17,9 @@
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#include <netdb.h> #include <netdb.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define ENTNAME protoent #define ENTNAME protoent
#define DATABASE "protocols" #define DATABASE "protocols"

View File

@@ -17,6 +17,9 @@
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#include <pwd.h> #include <pwd.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define STRUCTURE passwd #define STRUCTURE passwd
#define ENTNAME pwent #define ENTNAME pwent

View File

@@ -17,7 +17,9 @@
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#include <rpc/netdb.h> #include <rpc/netdb.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define ENTNAME rpcent #define ENTNAME rpcent
#define DATABASE "rpc" #define DATABASE "rpc"

View File

@@ -18,7 +18,9 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <netdb.h> #include <netdb.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define ENTNAME servent #define ENTNAME servent
#define DATABASE "services" #define DATABASE "services"

View File

@@ -17,6 +17,9 @@
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#include <gshadow.h> #include <gshadow.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define STRUCTURE sgrp #define STRUCTURE sgrp
#define ENTNAME sgent #define ENTNAME sgent

View File

@@ -17,6 +17,9 @@
<https://www.gnu.org/licenses/>. */ <https://www.gnu.org/licenses/>. */
#include <shadow.h> #include <shadow.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define STRUCTURE spwd #define STRUCTURE spwd
#define ENTNAME spent #define ENTNAME spent