1998-09-07 07:45:24 +08:00
|
|
|
#ifndef _GRP_H
|
1995-02-18 09:27:10 +08:00
|
|
|
#include <grp/grp.h>
|
1998-08-10 01:39:48 +08:00
|
|
|
|
|
|
|
/* Now define the internal interfaces. */
|
|
|
|
extern int __getgrent_r __P ((struct group *__resultbuf, char *buffer,
|
|
|
|
size_t __buflen, struct group **__result));
|
|
|
|
extern int __fgetgrent_r __P ((FILE * __stream, struct group *__resultbuf,
|
|
|
|
char *buffer, size_t __buflen,
|
|
|
|
struct group **__result));
|
1998-12-02 03:35:00 +08:00
|
|
|
|
|
|
|
/* Search for an entry with a matching group ID. */
|
|
|
|
extern int __getgrgid_r __P ((__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 __P ((__const char *__name, struct group *__resultbuf,
|
|
|
|
char *__buffer, size_t __buflen,
|
|
|
|
struct group **__result));
|
1998-09-07 07:45:24 +08:00
|
|
|
#endif
|