4 /* Now define the internal interfaces. */
5 extern int __getgrent_r (struct group
*__resultbuf
, char *buffer
,
6 size_t __buflen
, struct group
**__result
);
7 extern int __old_getgrent_r (struct group
*__resultbuf
, char *buffer
,
8 size_t __buflen
, struct group
**__result
);
9 extern int __fgetgrent_r (FILE * __stream
, struct group
*__resultbuf
,
10 char *buffer
, size_t __buflen
,
11 struct group
**__result
);
13 /* Search for an entry with a matching group ID. */
14 extern int __getgrgid_r (__gid_t __gid
, struct group
*__resultbuf
,
15 char *__buffer
, size_t __buflen
,
16 struct group
**__result
);
17 extern int __old_getgrgid_r (__gid_t __gid
, struct group
*__resultbuf
,
18 char *__buffer
, size_t __buflen
,
19 struct group
**__result
);
21 /* Search for an entry with a matching group name. */
22 extern int __getgrnam_r (__const
char *__name
, struct group
*__resultbuf
,
23 char *__buffer
, size_t __buflen
,
24 struct group
**__result
);
25 extern int __old_getgrnam_r (__const
char *__name
, struct group
*__resultbuf
,
26 char *__buffer
, size_t __buflen
,
27 struct group
**__result
);
30 extern int _nss_files_parse_grent (char *line
, struct group
*result
,
31 struct parser_data
*data
,
32 size_t datalen
, int *errnop
);
34 #define DECLARE_NSS_PROTOTYPES(service) \
35 extern enum nss_status _nss_ ## service ## _setgrent (int); \
36 extern enum nss_status _nss_ ## service ## _endgrent (void); \
37 extern enum nss_status _nss_ ## service ## _getgrgid_r \
38 (gid_t gid, struct group *grp, char *buffer, \
39 size_t buflen, int *errnop); \
40 extern enum nss_status _nss_ ## service ## _getgrnam_r \
41 (const char *name, struct group *grp, \
42 char *buffer, size_t buflen, int *errnop); \
43 extern enum nss_status _nss_ ## service ##_getgrent_r \
44 (struct group *result, char *buffer, size_t buflen, \
46 extern enum nss_status _nss_ ## service ##_initgroups_dyn \
47 (const char *user, gid_t group, long int *start, \
48 long int *size, gid_t **groupsp, long int limit, \
51 DECLARE_NSS_PROTOTYPES (compat
)
52 DECLARE_NSS_PROTOTYPES (files
)
53 DECLARE_NSS_PROTOTYPES (hesiod
)
54 DECLARE_NSS_PROTOTYPES (nis
)
55 DECLARE_NSS_PROTOTYPES (nisplus
)
57 #undef DECLARE_NSS_PROTOTYPES