rpm 4.19.0
The RPM Package Manager
Loading...
Searching...
No Matches
rpmfileutil.h
Go to the documentation of this file.
1#ifndef _RPMFILEUTIL_H
2#define _RPMFILEUTIL_H
3
9#include <rpm/rpmutil.h>
10#include <rpm/rpmio.h>
11#include <rpm/argv.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
30 COMPRESSED_ZSTD = 10
31} rpmCompressedMagic;
32
36typedef enum rpmglobFlags_e {
37 RPMGLOB_NONE = 0,
38 RPMGLOB_NOCHECK = (1 << 0),
40
49int rpmDoDigest(int algo, const char * fn,int asAscii, unsigned char * digest);
50
56FD_t rpmMkTemp(char *templ);
57
68FD_t rpmMkTempFile(const char * prefix, char **fn);
69
78int rpmioMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid);
79
88int rpmMkdirs(const char *root, const char *pathstr);
89
95char * rpmCleanPath (char * path);
96
107char * rpmGenPath (const char * urlroot,
108 const char * urlmdir,
109 const char * urlfile);
110
116char * rpmGetPath (const char * path, ...) RPM_GNUC_NULL_TERMINATED;
117
127int rpmGlobPath(const char * pattern, rpmglobFlags flags,
128 int * argcPtr, ARGV_t * argvPtr);
129
138int rpmGlob(const char * pattern, int * argcPtr, ARGV_t * argvPtr);
139
145char * rpmEscapeSpaces(const char * s);
146
153char * rpmEscape(const char *s, const char *accept);
154
160void rpmUnescape(char *s, const char *accept);
161
168int rpmFileIsCompressed (const char * file, rpmCompressedMagic * compressed);
169
176int rpmFileHasSuffix(const char *path, const char *suffix);
177
182char * rpmGetCwd(void);
183
184#ifdef __cplusplus
185}
186#endif
187#endif /* _RPMFILEUTIL_H */
char * rpmEscapeSpaces(const char *s)
FD_t rpmMkTempFile(const char *prefix, char **fn)
int rpmGlobPath(const char *pattern, rpmglobFlags flags, int *argcPtr, ARGV_t *argvPtr)
int rpmFileIsCompressed(const char *file, rpmCompressedMagic *compressed)
int rpmioMkpath(const char *path, mode_t mode, uid_t uid, gid_t gid)
char * rpmCleanPath(char *path)
char * rpmGetPath(const char *path,...) RPM_GNUC_NULL_TERMINATED
char * rpmGetCwd(void)
char * rpmEscape(const char *s, const char *accept)
enum rpmglobFlags_e rpmglobFlags
rpmCompressedMagic_e
Definition: rpmfileutil.h:19
rpmglobFlags_e
Definition: rpmfileutil.h:36
int rpmDoDigest(int algo, const char *fn, int asAscii, unsigned char *digest)
char * rpmGenPath(const char *urlroot, const char *urlmdir, const char *urlfile)
FD_t rpmMkTemp(char *templ)
int rpmMkdirs(const char *root, const char *pathstr)
void rpmUnescape(char *s, const char *accept)
int rpmFileHasSuffix(const char *path, const char *suffix)
int rpmGlob(const char *pattern, int *argcPtr, ARGV_t *argvPtr)
@ COMPRESSED_OTHER
Definition: rpmfileutil.h:21
@ COMPRESSED_ZIP
Definition: rpmfileutil.h:23
@ COMPRESSED_XZ
Definition: rpmfileutil.h:25
@ COMPRESSED_NOT
Definition: rpmfileutil.h:20
@ COMPRESSED_ZSTD
Definition: rpmfileutil.h:30
@ COMPRESSED_LZIP
Definition: rpmfileutil.h:26
@ COMPRESSED_7ZIP
Definition: rpmfileutil.h:28
@ COMPRESSED_LRZIP
Definition: rpmfileutil.h:27
@ COMPRESSED_LZMA
Definition: rpmfileutil.h:24
@ COMPRESSED_BZIP2
Definition: rpmfileutil.h:22
@ COMPRESSED_GEM
Definition: rpmfileutil.h:29
@ RPMGLOB_NOCHECK
Definition: rpmfileutil.h:38
struct _FD_s * FD_t
Definition: rpmtypes.h:99