20 /*@only@*/ char ** splitString(const char * str, int length, char sep);
24 void freeSplitString( /*@only@*/ char ** list);
27 * Remove occurences of trailing character from string.
29 * @param c character to strip
32 /*@unused@*/ static inline char * stripTrailingChar(char * s, char c)
36 for (t = s + strlen(s) - 1; *t == c && t >= s; t--)
43 int rpmfileexists(const char * filespec) /*@*/;
47 int rpmvercmp(const char * one, const char * two);
49 /* these are like the normal functions, but they malloc() the space which
54 int dosetenv(const char *name, const char *value, int overwrite);
58 int doputenv(const char * str);
62 int makeTempFile(const char * prefix, /*@out@*/ const char ** fnptr,
63 /*@out@*/ FD_t * fdptr);
66 * @return cureent working directory (malloc'ed)
68 /*@only@*/ char * currentDirectory(void);
72 void compressFilelist(Header h);
76 void expandFilelist(Header h);
80 void buildOrigFileList(Header h, /*@out@*/ const char *** fileListPtr,
81 /*@out@*/ int * fileCountPtr);
85 int myGlobPatternP (const char *patternURL) /*@*/;
89 int rpmGlob(const char * patterns, /*@out@*/ int * argcPtr,
90 /*@out@*/ const char *** argvPtr)
91 /*@modifies *argcPtr, *argvPtr @*/;
95 void providePackageNVR(Header h);