mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
51eecc4aff
2000-12-18 Andreas Jaeger <aj@suse.de> * test-skeleton.c: Use temp_name_list instead of temp_name_list to avoid collision with name_list from inet/netgroup.h. * nss/nss_files/files-network.c (NEED_H_ERRNO): Define. * include/grp.h (DECLARE_NSS_PROTOTYPES): New. * include/pwd.h (DECLARE_NSS_PROTOTYPES): New. * include/netdb.h (DECLARE_NSS_PROTOTYPES): New. * include/shadow.h (DECLARE_NSS_PROTOTYPES): New. * hesiod/nss_hesiod/hesiod-proto.c (_nss_hesiod_setprotoent): Fix declaration to match prototype. * hesiod/nss_hesiod/hesiod-pwd.c (_nss_hesiod_setpwent): Likewise. * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_setgrent): Likewise. * hesiod/nss_hesiod/hesiod-service.c (_nss_hesiod_setservent): Likewise. * nis/nss_nis/nis-grp.c (_nss_nis_setgrent): Likewise. * nis/nss_nis/nis-pwd.c (_nss_nis_setpwent): Likewise. * nis/nss_nis/nis-proto.c (_nss_nis_setprotoent): Likewise. * nis/nss_nis/nis-service.c (_nss_nis_setservent): Likewise. (_nss_nis_getservbyport_r): Likewise. * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent): Likewise. * nis/nss_nis/nis-spwd.c (_nss_nis_setspent): Likewise. * nis/nss_nis/nis-network.c (_nss_nis_getnetent_r): Likewise. (_nss_nis_setnetent): Likewise * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise. (_nss_nis_endnetgrent): Likewise. * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_endnetgrent): Likewise. (_nss_nisplus_setnetgrent): Likewise. * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Likewise. * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_setpwent): Likewise. * nis/nss_nisplus/nisplus-grp.c (_nss_nisplus_setgrent): Likewise. * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_setnetent): Likewise. * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_sethostent): Likewise. * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_setservent): Likewise. * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_setprotoent): Likewise. * nis/nss_compat/compat-spwd.c (_nss_compat_setspent): Likewise. * nis/nss_compat/compat-pwd.c (_nss_compat_setpwent): Likewise. * nis/nss_compat/compat-grp.c (_nss_compat_setgrent): Likewise. * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise. * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise. (_nss_dns_getnetbyaddr_r): Likewise.
46 lines
1.8 KiB
C
46 lines
1.8 KiB
C
#ifndef _GRP_H
|
|
#include <grp/grp.h>
|
|
|
|
/* Now define the internal interfaces. */
|
|
extern int __getgrent_r (struct group *__resultbuf, char *buffer,
|
|
size_t __buflen, struct group **__result);
|
|
extern int __fgetgrent_r (FILE * __stream, struct group *__resultbuf,
|
|
char *buffer, size_t __buflen,
|
|
struct group **__result);
|
|
|
|
/* Search for an entry with a matching group ID. */
|
|
extern int __getgrgid_r (__gid_t __gid, struct group *__resultbuf,
|
|
char *__buffer, size_t __buflen,
|
|
struct group **__result);
|
|
|
|
/* Search for an entry with a matching group name. */
|
|
extern int __getgrnam_r (__const char *__name, struct group *__resultbuf,
|
|
char *__buffer, size_t __buflen,
|
|
struct group **__result);
|
|
|
|
#define DECLARE_NSS_PROTOTYPES(service) \
|
|
extern enum nss_status _nss_ ## service ## _setgrent (int); \
|
|
extern enum nss_status _nss_ ## service ## _endgrent (void); \
|
|
extern enum nss_status _nss_ ## service ## _getgrgid_r \
|
|
(gid_t gid, struct group *grp, char *buffer, \
|
|
size_t buflen, int *errnop); \
|
|
extern enum nss_status _nss_ ## service ## _getgrnam_r \
|
|
(const char *name, struct group *grp, \
|
|
char *buffer, size_t buflen, int *errnop); \
|
|
extern enum nss_status _nss_ ## service ##_getgrent_r \
|
|
(struct group *result, char *buffer, size_t buflen, \
|
|
int *errnop); \
|
|
extern enum nss_status _nss_ ## service ##_initgroups_dyn \
|
|
(const char *user, gid_t group, long int *start, \
|
|
long int *size, gid_t **groupsp, long int limit, \
|
|
int *errnop);
|
|
|
|
DECLARE_NSS_PROTOTYPES (compat)
|
|
DECLARE_NSS_PROTOTYPES (files)
|
|
DECLARE_NSS_PROTOTYPES (hesiod)
|
|
DECLARE_NSS_PROTOTYPES (nis)
|
|
DECLARE_NSS_PROTOTYPES (nisplus)
|
|
|
|
#undef DECLARE_NSS_PROTOTYPES
|
|
#endif
|