Changes and additions migrated from cvs.devel.redhat.com:/cvs/devel/glibc to fedora...
[kopensolaris-gnu/glibc.git] / glibc-compat / include / grp.h
1 #ifndef _GRP_H
2 #include <grp/grp.h>
3
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);
12
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);
20
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);
28
29 #endif