123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- #ifndef BB_GRP_H
- #define BB_GRP_H 1
- PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
- #undef endgrent
- #define setgrent bb_internal_setgrent
- #define endgrent bb_internal_endgrent
- #define getgrent bb_internal_getgrent
- #define fgetgrent bb_internal_fgetgrent
- #define putgrent bb_internal_putgrent
- #define getgrgid bb_internal_getgrgid
- #define getgrnam bb_internal_getgrnam
- #define getgrent_r bb_internal_getgrent_r
- #define getgrgid_r bb_internal_getgrgid_r
- #define getgrnam_r bb_internal_getgrnam_r
- #define fgetgrent_r bb_internal_fgetgrent_r
- #define getgrouplist bb_internal_getgrouplist
- #define initgroups bb_internal_initgroups
- extern void setgrent(void);
- extern void endgrent(void);
- #ifdef UNUSED_SINCE_WE_AVOID_STATIC_BUFS
- extern struct group *getgrent(void);
- extern struct group *fgetgrent(FILE *__stream);
- extern int putgrent(const struct group *__restrict __p,
- FILE *__restrict __f);
- #endif
- extern struct group *getgrgid(gid_t __gid);
- extern struct group *getgrnam(const char *__name);
- extern int getgrent_r(struct group *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct group **__restrict __result);
- extern int getgrgid_r(gid_t __gid, struct group *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct group **__restrict __result);
- extern int getgrnam_r(const char *__restrict __name,
- struct group *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct group **__restrict __result);
- extern int fgetgrent_r(FILE *__restrict __stream,
- struct group *__restrict __resultbuf,
- char *__restrict __buffer, size_t __buflen,
- struct group **__restrict __result);
- extern int getgrouplist(const char *__user, gid_t __group,
- gid_t *__groups, int *__ngroups);
- extern int initgroups(const char *__user, gid_t __group);
- POP_SAVED_FUNCTION_VISIBILITY
- #endif
|