Loading...
Searching...
No Matches
rpmfileutil.h
Go to the documentation of this file.
#ifndef _RPMFILEUTIL_H
#define _RPMFILEUTIL_H
#include <rpm/rpmutil.h>
#include <rpm/rpmio.h>
#include <rpm/argv.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum rpmCompressedMagic_e {
COMPRESSED_NOT = 0,
COMPRESSED_OTHER = 1,
COMPRESSED_BZIP2 = 2,
COMPRESSED_ZIP = 3,
COMPRESSED_LZMA = 4,
COMPRESSED_XZ = 5,
COMPRESSED_LZIP = 6,
COMPRESSED_LRZIP = 7,
COMPRESSED_7ZIP = 8,
COMPRESSED_GEM = 9,
COMPRESSED_ZSTD = 10
} rpmCompressedMagic;
typedef enum rpmglobFlags_e {
RPMGLOB_NONE = 0,
RPMGLOB_NOCHECK = (1 << 0),
} rpmglobFlags;
int rpmDoDigest(int algo, const char * fn,int asAscii, unsigned char * digest);
FD_t rpmMkTemp(char *templ);
FD_t rpmMkTempFile(const char * prefix, char **fn);
int rpmioMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid);
int rpmMkdirs(const char *root, const char *pathstr);
char * rpmCleanPath (char * path);
char * rpmGenPath (const char * urlroot,
const char * urlmdir,
const char * urlfile);
char * rpmGetPath (const char * path, ...) RPM_GNUC_NULL_TERMINATED;
int rpmGlobPath(const char * pattern, rpmglobFlags flags,
int * argcPtr, ARGV_t * argvPtr);
int rpmGlob(const char * pattern, int * argcPtr, ARGV_t * argvPtr);
char * rpmEscapeSpaces(const char * s);
char * rpmEscape(const char *s, const char *accept);
void rpmUnescape(char *s, const char *accept);
int rpmFileIsCompressed (const char * file, rpmCompressedMagic * compressed);
int rpmFileHasSuffix(const char *path, const char *suffix);
char * rpmGetCwd(void);
#ifdef __cplusplus
}
#endif
#endif /* _RPMFILEUTIL_H */
argv.h
rpmEscapeSpaces
char * rpmEscapeSpaces(const char *s)
rpmMkTempFile
FD_t rpmMkTempFile(const char *prefix, char **fn)
rpmGlobPath
int rpmGlobPath(const char *pattern, rpmglobFlags flags, int *argcPtr, ARGV_t *argvPtr)
rpmFileIsCompressed
int rpmFileIsCompressed(const char *file, rpmCompressedMagic *compressed)
rpmioMkpath
int rpmioMkpath(const char *path, mode_t mode, uid_t uid, gid_t gid)
rpmCleanPath
char * rpmCleanPath(char *path)
rpmGetPath
char * rpmGetPath(const char *path,...) RPM_GNUC_NULL_TERMINATED
rpmGetCwd
char * rpmGetCwd(void)
rpmEscape
char * rpmEscape(const char *s, const char *accept)
rpmglobFlags
enum rpmglobFlags_e rpmglobFlags
rpmCompressedMagic_e
rpmCompressedMagic_e
Definition: rpmfileutil.h:19
rpmglobFlags_e
rpmglobFlags_e
Definition: rpmfileutil.h:36
rpmDoDigest
int rpmDoDigest(int algo, const char *fn, int asAscii, unsigned char *digest)
rpmGenPath
char * rpmGenPath(const char *urlroot, const char *urlmdir, const char *urlfile)
rpmMkTemp
FD_t rpmMkTemp(char *templ)
rpmMkdirs
int rpmMkdirs(const char *root, const char *pathstr)
rpmUnescape
void rpmUnescape(char *s, const char *accept)
rpmFileHasSuffix
int rpmFileHasSuffix(const char *path, const char *suffix)
rpmGlob
int rpmGlob(const char *pattern, int *argcPtr, ARGV_t *argvPtr)
COMPRESSED_OTHER
@ COMPRESSED_OTHER
Definition: rpmfileutil.h:21
COMPRESSED_ZIP
@ COMPRESSED_ZIP
Definition: rpmfileutil.h:23
COMPRESSED_XZ
@ COMPRESSED_XZ
Definition: rpmfileutil.h:25
COMPRESSED_NOT
@ COMPRESSED_NOT
Definition: rpmfileutil.h:20
COMPRESSED_ZSTD
@ COMPRESSED_ZSTD
Definition: rpmfileutil.h:30
COMPRESSED_LZIP
@ COMPRESSED_LZIP
Definition: rpmfileutil.h:26
COMPRESSED_7ZIP
@ COMPRESSED_7ZIP
Definition: rpmfileutil.h:28
COMPRESSED_LRZIP
@ COMPRESSED_LRZIP
Definition: rpmfileutil.h:27
COMPRESSED_LZMA
@ COMPRESSED_LZMA
Definition: rpmfileutil.h:24
COMPRESSED_BZIP2
@ COMPRESSED_BZIP2
Definition: rpmfileutil.h:22
COMPRESSED_GEM
@ COMPRESSED_GEM
Definition: rpmfileutil.h:29
RPMGLOB_NOCHECK
@ RPMGLOB_NOCHECK
Definition: rpmfileutil.h:38
FD_t
struct _FD_s * FD_t
Definition: rpmtypes.h:99
rpmio.h
rpmutil.h