Changeset View
Changeset View
Standalone View
Standalone View
tools/build/cross-build/include/common/pwd.h
Show All 40 Lines | |||||
#define user_from_uid __nbcompat_user_from_uid | #define user_from_uid __nbcompat_user_from_uid | ||||
int pwcache_userdb(int (*a_setpassent)(int), void (*a_endpwent)(void), | int pwcache_userdb(int (*a_setpassent)(int), void (*a_endpwent)(void), | ||||
struct passwd *(*a_getpwnam)(const char *), | struct passwd *(*a_getpwnam)(const char *), | ||||
struct passwd *(*a_getpwuid)(uid_t)); | struct passwd *(*a_getpwuid)(uid_t)); | ||||
int uid_from_user(const char *name, uid_t *uid); | int uid_from_user(const char *name, uid_t *uid); | ||||
int uid_from_user(const char *name, uid_t *uid); | |||||
const char *user_from_uid(uid_t uid, int noname); | const char *user_from_uid(uid_t uid, int noname); | ||||
#ifdef __linux__ | #ifdef __linux__ | ||||
static inline int | static inline int | ||||
setpassent(int stayopen __unused) | setpassent(int stayopen __unused) | ||||
{ | { | ||||
setpwent(); | setpwent(); | ||||
return (1); | return (1); | ||||
} | } | ||||
#endif | #endif |