10 #include <sys/types.h>
21 /*@only@*/ char ** splitString(const char * str, int length, char sep);
25 void freeSplitString( /*@only@*/ char ** list);
28 * Remove occurences of trailing character from string.
30 * @param c character to strip
33 /*@unused@*/ static inline char * stripTrailingChar(char * s, char c)
37 for (t = s + strlen(s) - 1; *t == c && t >= s; t--)
44 int rpmfileexists(const char * filespec) /*@*/;
48 int rpmvercmp(const char * one, const char * two);
50 /* these are like the normal functions, but they malloc() the space which
55 int dosetenv(const char *name, const char *value, int overwrite);
59 int doputenv(const char * str);
63 int makeTempFile(const char * prefix, /*@out@*/ const char ** fnptr,
64 /*@out@*/ FD_t * fdptr);
67 * @return cureent working directory (malloc'ed)
69 /*@only@*/ char * currentDirectory(void);
73 void compressFilelist(Header h);
77 void expandFilelist(Header h);
81 void buildOrigFileList(Header h, /*@out@*/ const char *** fileListPtr,
82 /*@out@*/ int * fileCountPtr);
86 int myGlobPatternP (const char *patternURL) /*@*/;
90 int rpmGlob(const char * patterns, /*@out@*/ int * argcPtr,
91 /*@out@*/ const char *** argvPtr)
92 /*@modifies *argcPtr, *argvPtr @*/;
96 void providePackageNVR(Header h);