11 char ** splitString(const char * str, int length, char sep);
12 void freeSplitString(char ** list);
13 void stripTrailingSlashes(char * str);
15 int rpmfileexists(const char * filespec);
17 int rpmvercmp(const char * one, const char * two);
19 /* these are like the normal functions, but they malloc() the space which
21 int dosetenv(const char *name, const char *value, int overwrite);
22 int doputenv(const char * str);
24 /* These may be called w/ a NULL argument to flush the cache -- they return
25 -1 if the user can't be found */
26 int unameToUid(char * thisUname, uid_t * uid);
27 int gnameToGid(char * thisGname, gid_t * gid);
29 /* Call w/ -1 to flush the cache, returns NULL if the user can't be found */
30 char * uidToUname(uid_t uid);
31 char * gidToGname(gid_t gid);
33 int makeTempFile(const char * prefix, /*@out@*/const char ** fnptr, /*@out@*/FD_t * fdptr);
34 char * currentDirectory(void); /* result needs to be freed */