10 #include <sys/types.h>
21 /*@only@*/ char ** splitString(const char * str, int length, char sep)
26 void freeSplitString( /*@only@*/ char ** list)
30 * Remove occurences of trailing character from string.
32 * @param c character to strip
35 /*@unused@*/ static inline
36 /*@only@*/ char * stripTrailingChar(/*@only@*/ char * s, char c)
40 for (t = s + strlen(s) - 1; *t == c && t >= s; t--)
47 int rpmfileexists(const char * urlfn)
48 /*@modifies fileSystem @*/;
52 int rpmvercmp(const char * a, const char * b)
56 * These are like the libc functions, but they malloc() the space which
62 int dosetenv(const char * name, const char * value, int overwrite)
63 /*@modifies fileSystem @*/;
67 int doputenv(const char * str)
68 /*@modifies fileSystem @*/;
72 int makeTempFile(const char * prefix,
73 /*@null@*/ /*@out@*/ const char ** fnptr,
74 /*@out@*/ FD_t * fdptr)
75 /*@modifies *fnptr, *fdptr, fileSystem @*/;
78 * @return cureent working directory (malloc'ed)
80 /*@only@*/ char * currentDirectory(void)
81 /*@modifies fileSystem @*/;
85 void compressFilelist(Header h)
90 void expandFilelist(Header h)
95 void buildOrigFileList(Header h, /*@out@*/ const char *** fileListPtr,
96 /*@out@*/ int * fileCountPtr)
97 /*@modifies *fileListPtr, *fileCountPtr @*/;
101 int myGlobPatternP (const char *patternURL) /*@*/;
105 int rpmGlob(const char * patterns, /*@out@*/ int * argcPtr,
106 /*@out@*/ const char *** argvPtr)
107 /*@modifies *argcPtr, *argvPtr, fileSystem @*/;
111 void providePackageNVR(Header h)