Changeset View
Changeset View
Standalone View
Standalone View
tools/build/cross-build/include/common/grp.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
#define group_from_gid __nbcompat_group_from_gid | #define group_from_gid __nbcompat_group_from_gid | ||||
int pwcache_groupdb(int (*a_setgroupent)(int), void (*a_endgrent)(void), | int pwcache_groupdb(int (*a_setgroupent)(int), void (*a_endgrent)(void), | ||||
struct group *(*a_getgrnam)(const char *), | struct group *(*a_getgrnam)(const char *), | ||||
struct group *(*a_getgrgid)(gid_t)); | struct group *(*a_getgrgid)(gid_t)); | ||||
int gid_from_group(const char *name, gid_t *gid); | int gid_from_group(const char *name, gid_t *gid); | ||||
int gid_from_group(const char *name, gid_t *gid); | |||||
const char *group_from_gid(gid_t gid, int noname); | const char *group_from_gid(gid_t gid, int noname); | ||||
#ifdef __linux__ | #ifdef __linux__ | ||||
static inline int | static inline int | ||||
setgroupent(int stayopen __unused) | setgroupent(int stayopen __unused) | ||||
{ | { | ||||
setgrent(); | setgrent(); | ||||
return (1); | return (1); | ||||
} | } | ||||
#endif | #endif |