nss_files: Use NSS_DECLARE_MODULE_FUNCTIONS

This commit is contained in:
Florian Weimer 2020-02-12 11:47:40 +01:00
parent 977f5ffca9
commit 9d45607d86
15 changed files with 38 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -25,6 +25,9 @@
#include <stdbool.h>
#include <stdlib.h>
#include <scratch_buffer.h>
#include <nss.h>
NSS_DECLARE_MODULE_FUNCTIONS (files)
enum nss_status
_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 "nsswitch.h"
NSS_DECLARE_MODULE_FUNCTIONS (files)
#define DATAFILE "/etc/publickey"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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