- Main Page
- Related Pages
- Modules
- Data Structures
- Files

# rpmfileutil.h

Go to the documentation of this file.

    00001 #ifndef _RPMFILEUTIL_H
    00002 #define _RPMFILEUTIL_H
    00003
    00009 #include <rpm/rpmutil.h>
    00010 #include <rpm/rpmio.h>
    00011 #include <rpm/rpmpgp.h>
    00012 #include <rpm/argv.h>
    00013
    00016 typedef enum rpmCompressedMagic_e {
    00017     COMPRESSED_NOT              = 0,
    00018     COMPRESSED_OTHER            = 1,
    00019     COMPRESSED_BZIP2            = 2,
    00020     COMPRESSED_ZIP              = 3,
    00021     COMPRESSED_LZMA             = 4
    00022 } rpmCompressedMagic;
    00023
    00033 int rpmDoDigest(pgpHashAlgo algo, const char * fn,int asAscii,
    00034                   unsigned char * digest, rpm_loff_t * fsizep);
    00035
    00041 FD_t rpmMkTemp(char *template);
    00042
    00053 FD_t rpmMkTempFile(const char * prefix, char **fn);
    00054
    00063 int rpmioMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid);
    00064
    00070 char * rpmCleanPath     (char * path);
    00071
    00082 char * rpmGenPath       (const char * urlroot,
    00083                         const char * urlmdir,
    00084                         const char * urlfile);
    00085
    00091 char * rpmGetPath (const char * path, ...) RPM_GNUC_NULL_TERMINATED;
    00092
    00100 int rpmGlob(const char * patterns, int * argcPtr, ARGV_t * argvPtr);
    00101
    00107 char * rpmEscapeSpaces(const char * s);
    00108
    00115 int rpmFileIsCompressed (const char * file, rpmCompressedMagic * compressed);
    00116
    00123 int rpmFileHasSuffix(const char *path, const char *suffix);
    00124
    00129 char * rpmGetCwd(void);
    00130
    00131 #endif /* _RPMFILEUTIL_H */