rpm 6.1.90
The RPM Package Manager
Loading...
Searching...
No Matches
rpmarchive.h
Go to the documentation of this file.
1#ifndef H_ARCHIVE
2#define H_ARCHIVE
3
8
9#define RPMERR_CHECK_ERRNO -32768
10
15 RPMERR_ITER_END = -1,
16 RPMERR_BAD_MAGIC = -2,
17 RPMERR_BAD_HEADER = -3,
18 RPMERR_HDR_SIZE = -4,
19 RPMERR_UNKNOWN_FILETYPE= -5,
20 RPMERR_MISSING_FILE = -6,
21 RPMERR_DIGEST_MISMATCH = -7,
22 RPMERR_INTERNAL = -8,
23 RPMERR_UNMAPPED_FILE = -9,
24 RPMERR_ENOENT = -10,
25 RPMERR_ENOTEMPTY = -11,
26 RPMERR_FILE_SIZE = -12,
27 RPMERR_ITER_SKIP = -13,
28 RPMERR_EXIST_AS_DIR = -14,
29 RPMERR_INVALID_SYMLINK = -15,
30 RPMERR_ENOTDIR = -16,
31
32 RPMERR_OPEN_FAILED = -32768,
33 RPMERR_CHMOD_FAILED = -32769,
34 RPMERR_CHOWN_FAILED = -32770,
35 RPMERR_WRITE_FAILED = -32771,
36 RPMERR_UTIME_FAILED = -32772,
37 RPMERR_UNLINK_FAILED = -32773,
38 RPMERR_RENAME_FAILED = -32774,
39 RPMERR_SYMLINK_FAILED = -32775,
40 RPMERR_STAT_FAILED = -32776,
41 RPMERR_LSTAT_FAILED = -32777,
42 RPMERR_MKDIR_FAILED = -32778,
43 RPMERR_RMDIR_FAILED = -32779,
44 RPMERR_MKNOD_FAILED = -32780,
45 RPMERR_MKFIFO_FAILED = -32781,
46 RPMERR_LINK_FAILED = -32782,
47 RPMERR_READLINK_FAILED = -32783,
48 RPMERR_READ_FAILED = -32784,
49 RPMERR_COPY_FAILED = -32785,
50 RPMERR_LSETFCON_FAILED = -32786,
51 RPMERR_SETCAP_FAILED = -32787,
52 RPMERR_CLOSE_FAILED = -32788,
53};
54
55#ifdef __cplusplus
56extern "C" {
57#endif
58
64RPM_PUBLIC_API
65char * rpmfileStrerror(int rc);
66
78RPM_PUBLIC_API
79rpmfi rpmfiNewArchiveWriter(FD_t fd, rpmfiles files);
80
92RPM_PUBLIC_API
93 rpmfi rpmfiNewArchiveReader(FD_t fd, rpmfiles files, int itype);
94
100RPM_PUBLIC_API
101int rpmfiArchiveClose(rpmfi fi);
102
108RPM_PUBLIC_API
109rpm_loff_t rpmfiArchiveTell(rpmfi fi);
110
118RPM_PUBLIC_API
119size_t rpmfiArchiveWrite(rpmfi fi, const void * buf, size_t size);
120
127RPM_PUBLIC_API
128int rpmfiArchiveWriteFile(rpmfi fi, FD_t fd);
129
137RPM_PUBLIC_API
138ssize_t rpmfiArchiveRead(rpmfi fi, void * buf, size_t size);
139
145RPM_PUBLIC_API
147
155RPM_PUBLIC_API
156int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest);
157
158#ifdef __cplusplus
159}
160#endif
161
162#endif /* H_ARCHIVE */
RPM_PUBLIC_API int rpmfiArchiveWriteFile(rpmfi fi, FD_t fd)
RPM_PUBLIC_API rpmfi rpmfiNewArchiveWriter(FD_t fd, rpmfiles files)
rpmfilesErrorCodes
Definition rpmarchive.h:14
RPM_PUBLIC_API ssize_t rpmfiArchiveRead(rpmfi fi, void *buf, size_t size)
RPM_PUBLIC_API rpmfi rpmfiNewArchiveReader(FD_t fd, rpmfiles files, int itype)
RPM_PUBLIC_API int rpmfiArchiveClose(rpmfi fi)
RPM_PUBLIC_API int rpmfiArchiveHasContent(rpmfi fi)
RPM_PUBLIC_API int rpmfiArchiveReadToFile(rpmfi fi, FD_t fd, int nodigest)
RPM_PUBLIC_API size_t rpmfiArchiveWrite(rpmfi fi, const void *buf, size_t size)
RPM_PUBLIC_API rpm_loff_t rpmfiArchiveTell(rpmfi fi)
RPM_PUBLIC_API char * rpmfileStrerror(int rc)
struct FD_s * FD_t
Definition rpmtypes.h:100