00001 #ifndef H_UGID 00002 #define H_UGID 00003 00008 #ifdef __cplusplus 00009 extern "C" { 00010 #endif 00011 00012 /* These may be called w/ a NULL argument to flush the cache -- they return 00013 -1 if the user can't be found */ 00014 int unameToUid(const char * thisUname, /*@out@*/ uid_t * uid); 00015 int gnameToGid(const char * thisGname, /*@out@*/ gid_t * gid); 00016 00017 /* Call w/ -1 to flush the cache, returns NULL if the user can't be found */ 00018 /*@observer@*/ /*@null@*/ char * uidToUname(uid_t uid); 00019 /*@observer@*/ /*@null@*/ char * gidToGname(gid_t gid); 00020 00021 #ifdef __cplusplus 00022 } 00023 #endif 00024 00025 #endif /* H_UGID */ 00026