# rpmio/ugid.h

Go to the documentation of this file.

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