rpm 5.2.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

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@*/
    00025 char * uidToUname(uid_t uid)
    00026         /*@*/;
    00027 /*@observer@*/ /*@null@*/
    00028 char * gidToGname(gid_t gid)
    00029         /*@*/;
    00030
    00031 #ifdef __cplusplus
    00032 }
    00033 #endif
    00034
    00035 #endif  /* H_UGID */
    00036