|
Packit |
6c4009 |
#ifndef _GRP_H
|
|
Packit |
6c4009 |
#include <grp/grp.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _ISOMAC
|
|
Packit |
6c4009 |
libc_hidden_proto (setgroups)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Now define the internal interfaces. */
|
|
Packit |
6c4009 |
extern int __getgrent_r (struct group *__resultbuf, char *buffer,
|
|
Packit |
6c4009 |
size_t __buflen, struct group **__result)
|
|
Packit |
6c4009 |
attribute_hidden;
|
|
Packit |
6c4009 |
extern int __old_getgrent_r (struct group *__resultbuf, char *buffer,
|
|
Packit |
6c4009 |
size_t __buflen, struct group **__result);
|
|
Packit |
6c4009 |
extern int __fgetgrent_r (FILE * __stream, struct group *__resultbuf,
|
|
Packit |
6c4009 |
char *buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct group **__result) attribute_hidden;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Search for an entry with a matching group ID. */
|
|
Packit |
6c4009 |
extern int __getgrgid_r (__gid_t __gid, struct group *__resultbuf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct group **__result) attribute_hidden;
|
|
Packit |
6c4009 |
extern int __old_getgrgid_r (__gid_t __gid, struct group *__resultbuf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct group **__result);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Search for an entry with a matching group name. */
|
|
Packit |
6c4009 |
extern int __getgrnam_r (const char *__name, struct group *__resultbuf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct group **__result) attribute_hidden;
|
|
Packit |
6c4009 |
extern int __old_getgrnam_r (const char *__name, struct group *__resultbuf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct group **__result);
|
|
Packit |
6c4009 |
|
|
Packit Service |
3e830d |
struct parser_data;
|
|
Packit Service |
3e830d |
extern int _nss_files_parse_grent (char *line, struct group *result,
|
|
Packit Service |
3e830d |
struct parser_data *data,
|
|
Packit Service |
3e830d |
size_t datalen, int *errnop);
|
|
Packit Service |
3e830d |
libc_hidden_proto (_nss_files_parse_grent)
|
|
Packit Service |
3e830d |
|
|
Packit |
6c4009 |
#define DECLARE_NSS_PROTOTYPES(service) \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _setgrent (int); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _endgrent (void); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _getgrgid_r \
|
|
Packit |
6c4009 |
(gid_t gid, struct group *grp, char *buffer, \
|
|
Packit |
6c4009 |
size_t buflen, int *errnop); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _getgrnam_r \
|
|
Packit |
6c4009 |
(const char *name, struct group *grp, \
|
|
Packit |
6c4009 |
char *buffer, size_t buflen, int *errnop); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ##_getgrent_r \
|
|
Packit |
6c4009 |
(struct group *result, char *buffer, size_t buflen, \
|
|
Packit |
6c4009 |
int *errnop); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ##_initgroups_dyn \
|
|
Packit |
6c4009 |
(const char *user, gid_t group, long int *start, \
|
|
Packit |
6c4009 |
long int *size, gid_t **groupsp, long int limit, \
|
|
Packit |
6c4009 |
int *errnop);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (compat)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (files)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (hesiod)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (nis)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (nisplus)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#undef DECLARE_NSS_PROTOTYPES
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
#endif
|