mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
nss_files: Use NSS_DECLARE_MODULE_FUNCTIONS
This commit is contained in:
parent
977f5ffca9
commit
9d45607d86
@ -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)
|
||||
|
||||
|
@ -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 {};
|
||||
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -24,6 +24,8 @@
|
||||
#include <rpc/des_crypt.h>
|
||||
#include "nsswitch.h"
|
||||
|
||||
NSS_DECLARE_MODULE_FUNCTIONS (files)
|
||||
|
||||
#define DATAFILE "/etc/publickey"
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user