rpm 4.19.1.1 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
14 extern "C" {
15#endif
16
20 typedef enum rpmCompressedMagic_e {
21 COMPRESSED_NOT = 0,
22 COMPRESSED_OTHER = 1,
23 COMPRESSED_BZIP2 = 2,
24 COMPRESSED_ZIP = 3,
25 COMPRESSED_LZMA = 4,
26 COMPRESSED_XZ = 5,
27 COMPRESSED_LZIP = 6,
28 COMPRESSED_LRZIP = 7,
29 COMPRESSED_7ZIP = 8,
30 COMPRESSED_GEM = 9,
31 COMPRESSED_ZSTD = 10
32} rpmCompressedMagic;
33
37 typedef enum rpmglobFlags_e {
38 RPMGLOB_NONE = 0,
39 RPMGLOB_NOCHECK = (1 << 0),
40} rpmglobFlags;
41
50 int rpmDoDigest(int algo, const char * fn,int asAscii, unsigned char * digest);
51
57 FD_t rpmMkTemp(char *templ);
58
69 FD_t rpmMkTempFile(const char * prefix, char **fn);
70
79 int rpmioMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid);
80
89 int rpmMkdirs(const char *root, const char *pathstr);
90
96 char * rpmCleanPath (char * path);
97
108 char * rpmGenPath (const char * urlroot,
109 const char * urlmdir,
110 const char * urlfile);
111
117 char * rpmGetPath (const char * path, ...) RPM_GNUC_NULL_TERMINATED;
118
128 int rpmGlobPath(const char * pattern, rpmglobFlags flags,
129 int * argcPtr, ARGV_t * argvPtr);
130
139 int rpmGlob(const char * pattern, int * argcPtr, ARGV_t * argvPtr);
140
146 char * rpmEscapeSpaces(const char * s);
147
154 char * rpmEscape(const char *s, const char *accept);
155
161 void rpmUnescape(char *s, const char *accept);
162
169 int rpmFileIsCompressed (const char * file, rpmCompressedMagic * compressed);
170
177 int rpmFileHasSuffix(const char *path, const char *suffix);
178
183 char * rpmGetCwd(void);
184
185#ifdef __cplusplus
186}
187#endif
188#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)
rpmCompressedMagic
enum rpmCompressedMagic_e rpmCompressedMagic
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:20
rpmglobFlags_e
rpmglobFlags_e
Definition rpmfileutil.h:37
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:22
COMPRESSED_ZIP
@ COMPRESSED_ZIP
Definition rpmfileutil.h:24
COMPRESSED_XZ
@ COMPRESSED_XZ
Definition rpmfileutil.h:26
COMPRESSED_NOT
@ COMPRESSED_NOT
Definition rpmfileutil.h:21
COMPRESSED_ZSTD
@ COMPRESSED_ZSTD
Definition rpmfileutil.h:31
COMPRESSED_LZIP
@ COMPRESSED_LZIP
Definition rpmfileutil.h:27
COMPRESSED_7ZIP
@ COMPRESSED_7ZIP
Definition rpmfileutil.h:29
COMPRESSED_LRZIP
@ COMPRESSED_LRZIP
Definition rpmfileutil.h:28
COMPRESSED_LZMA
@ COMPRESSED_LZMA
Definition rpmfileutil.h:25
COMPRESSED_BZIP2
@ COMPRESSED_BZIP2
Definition rpmfileutil.h:23
COMPRESSED_GEM
@ COMPRESSED_GEM
Definition rpmfileutil.h:30
RPMGLOB_NOCHECK
@ RPMGLOB_NOCHECK
Definition rpmfileutil.h:39
FD_t
struct _FD_s * FD_t
Definition rpmtypes.h:99
rpmio.h
rpmutil.h