Go to the documentation of this file.
9 #include <rpm/rpmutil.h>
10 #include <rpm/rpmio.h>
11 #include <rpm/rpmpgp.h>
42 int rpmDoDigest(
int algo,
const char * fn,
int asAscii,
unsigned char * digest);
71 int rpmioMkpath(
const char * path, mode_t mode, uid_t uid, gid_t gid);
81 int rpmMkdirs(
const char *root,
const char *pathstr);
101 const char * urlmdir,
102 const char * urlfile);
FD_t rpmMkTemp(char *templ)
Thin wrapper for mkstemp(3).
int rpmioMkpath(const char *path, mode_t mode, uid_t uid, gid_t gid)
Insure that directories in path exist, creating as needed.
char * rpmGetCwd(void)
Like getcwd() but the result is malloced.
int rpmFileIsCompressed(const char *file, rpmCompressedMagic *compressed)
Return type of compression used in file.
#define RPM_GNUC_NULL_TERMINATED
char * rpmGenPath(const char *urlroot, const char *urlmdir, const char *urlfile)
Merge 3 args into path, any or all of which may be a url.
int rpmFileHasSuffix(const char *path, const char *suffix)
Check if path (string) ends with given suffix.
int rpmGlob(const char *patterns, int *argcPtr, ARGV_t *argvPtr)
Return URL path(s) from a (URL prefixed) pattern glob.
char * rpmCleanPath(char *path)
Canonicalize file path.
int rpmDoDigest(int algo, const char *fn, int asAscii, unsigned char *digest)
Calculate a file digest and size.
char * rpmEscapeSpaces(const char *s)
Escape isspace(3) characters in string.
char * rpmGetPath(const char *path,...) RPM_GNUC_NULL_TERMINATED
Return (malloc'ed) expanded, canonicalized, file path.
enum rpmCompressedMagic_e rpmCompressedMagic
int rpmMkdirs(const char *root, const char *pathstr)
Create several directories (including parents if needed) in one go.
struct _FD_s * FD_t
RPM IO file descriptor type.
int rpmIsGlob(const char *pattern, int quote)
Check whether pattern contains any glob metacharacters.
FD_t rpmMkTempFile(const char *prefix, char **fn)
Return file handle for a temporaray file.