diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-07-04 16:09:42 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-07-04 16:09:47 +0300 |
commit | 9e7cfa4d5ba64baf63c604426805a71671c58544 (patch) | |
tree | 5fa0e3d2f22e48951b53553c6e46aa28e091e067 /lib/misc.h | |
parent | 104bc6a883cb59ce5f7de966fc6d8d11dc4ed247 (diff) | |
download | librpm-tizen-9e7cfa4d5ba64baf63c604426805a71671c58544.tar.gz librpm-tizen-9e7cfa4d5ba64baf63c604426805a71671c58544.tar.bz2 librpm-tizen-9e7cfa4d5ba64baf63c604426805a71671c58544.zip |
Stuff rpmio/ugid.[ch] contents to lib/misc.[ch]
- no uses outside librpm itself, and there they can be hidden away from
exported ABI whereas in librpmio they cant
Diffstat (limited to 'lib/misc.h')
-rw-r--r-- | lib/misc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/misc.h b/lib/misc.h index 4029d9899..0f0c81ca5 100644 --- a/lib/misc.h +++ b/lib/misc.h @@ -22,6 +22,19 @@ extern "C" { */ rpmRC rpmMkdirPath (const char * dpath, const char * dname); +/* + * These may be called w/ a NULL argument to flush the cache -- they return + * -1 if the user can't be found. + */ +int unameToUid(const char * thisUname, uid_t * uid); +int gnameToGid(const char * thisGname, gid_t * gid); + +/* + * Call w/ -1 to flush the cache, returns NULL if the user can't be found. + */ +const char * uidToUname(uid_t uid); +const char * gidToGname(gid_t gid); + #ifdef __cplusplus } #endif |