Files | |
| file | cpio.c |
| Handle cpio payloads within rpm packages. | |
| file | cpio.h |
| Structures used to handle cpio payloads within rpm packages. | |
| file | fsm.c |
| File state machine to handle a payload from a package. | |
| file | fsm.h |
| File state machine to handle a payload within an rpm package. | |
| file | psm.c |
| Package state machine to handle a package from a transaction set. | |
| file | psm.h |
| Package state machine to handle a package from a transaction set. | |
| file | rpmlib.h |
Data Structures | |
| struct | cpioCrcPhysicalHeader |
| struct | dnli_s |
| struct | fsm_s |
| struct | fsmIterator_s |
| struct | hardLink |
RPMTS | |
| typedef struct fsmIterator_s* | FSMI_t |
| typedef struct fsm_s* | FSM_t |
Defines | |
| #define | CPIOERR_CHECK_ERRNO 0x00008000 |
Enumerations | |
| enum | cpioErrorReturns { CPIOERR_BAD_MAGIC = (2 ), CPIOERR_BAD_HEADER = (3 ), CPIOERR_OPEN_FAILED = (4 | 0x00008000 ), CPIOERR_CHMOD_FAILED = (5 | 0x00008000 ), CPIOERR_CHOWN_FAILED = (6 | 0x00008000 ), CPIOERR_WRITE_FAILED = (7 | 0x00008000 ), CPIOERR_UTIME_FAILED = (8 | 0x00008000 ), CPIOERR_UNLINK_FAILED = (9 | 0x00008000 ), CPIOERR_RENAME_FAILED = (10 | 0x00008000 ), CPIOERR_SYMLINK_FAILED = (11 | 0x00008000 ), CPIOERR_STAT_FAILED = (12 | 0x00008000 ), CPIOERR_LSTAT_FAILED = (13 | 0x00008000 ), CPIOERR_MKDIR_FAILED = (14 | 0x00008000 ), CPIOERR_RMDIR_FAILED = (15 | 0x00008000 ), CPIOERR_MKNOD_FAILED = (16 | 0x00008000 ), CPIOERR_MKFIFO_FAILED = (17 | 0x00008000 ), CPIOERR_LINK_FAILED = (18 | 0x00008000 ), CPIOERR_READLINK_FAILED = (19 | 0x00008000 ), CPIOERR_READ_FAILED = (20 | 0x00008000 ), CPIOERR_COPY_FAILED = (21 | 0x00008000 ), CPIOERR_HDR_SIZE = (22 ), CPIOERR_HDR_TRAILER = (23 ), CPIOERR_UNKNOWN_FILETYPE = (24 ), CPIOERR_MISSING_HARDLINK = (25 ), CPIOERR_MD5SUM_MISMATCH = (26 ), CPIOERR_INTERNAL = (27 ) } |
| enum | cpioMapFlags_e { CPIO_MAP_PATH = (1 << 0), CPIO_MAP_MODE = (1 << 1), CPIO_MAP_UID = (1 << 2), CPIO_MAP_GID = (1 << 3), CPIO_FOLLOW_SYMLINKS = (1 << 4), CPIO_MAP_ABSOLUTE = (1 << 5), CPIO_MAP_ADDDOT = (1 << 6), CPIO_MULTILIB = (1 << 31) } |
Functions | |
| const char* const | cpioStrerror (int rc) |
| const char* | fsmFsPath (const FSM_t fsm, const struct stat *st, const char *subdir, const char *suffix) |
| void* | mapFreeIterator (const void *this) |
| void* | mapInitIterator (const void *this, const void *that) |
| int | mapNextIterator (void *this) |
| int | cpioStrCmp (const void *a, const void *b) |
| int | mapFind (void *this, const char *fsmPath) |
| void* | dnlFreeIterator (const void *this) |
| int | dnlCount (const DNLI_t dnli) |
| int | dnlIndex (const DNLI_t dnli) |
| void* | dnlInitIterator (const FSM_t fsm, int reverse) |
| const char* | dnlNextIterator (DNLI_t dnli) |
| int | saveHardLink (FSM_t fsm) |
| void* | freeHardLink (struct hardLink *li) |
| int | expandRegular (FSM_t fsm) |
| int | writeFile (FSM_t fsm, int writeData) |
| int | writeLinkedFile (FSM_t fsm) |
| int | fsmMakeLinks (FSM_t fsm) |
| int | fsmCommitLinks (FSM_t fsm) |
|
|
|
|
|
Iterator across package file info, forward on install, backward on erase. |
|
|
File state machine data. |
|
|
|
|
|
|
|
|
|
Return formatted error message on payload handling failure.
Definition at line 185 of file cpio.c. Referenced by PHYS_HDR_SIZE(), cpio_doio(), and psmStage().
|
|
|
Definition at line 199 of file fsm.c. Referenced by fsmMkdirs(), and fsmRmdirs().
|
|
|
Destroy directory name iterator.
Definition at line 188 of file fsm.c. Referenced by fsmMkdirs(), and fsmRmdirs().
|
|
|
Definition at line 205 of file fsm.c. Referenced by fsmMkdirs(), and fsmRmdirs().
|
|
|
Create directory name iterator.
Definition at line 215 of file fsm.c. Referenced by fsmMkdirs(), and fsmRmdirs().
|
|
|
Return next directory name (from file info).
Definition at line 288 of file fsm.c. Referenced by fsmMkdirs(), and fsmRmdirs().
|
|
|
Create file from payload stream.
Definition at line 613 of file fsm.c. Referenced by fsmStage().
|
|
|
Destroy set of hard links.
Definition at line 397 of file fsm.c. Referenced by freeFSM(), and fsmStage().
|
|
|
Commit hard linked file set atomically.
Definition at line 895 of file fsm.c. Referenced by fsmStage().
|
|
|
Build path to file from file info, ornamented with subdir and suffix.
Definition at line 53 of file fsm.c. Referenced by fsmMapPath(), and fsmStage().
|
|
|
Create pending hard links to existing file.
Definition at line 843 of file fsm.c. Referenced by fsmStage().
|
|
|
Locate archive path in file info.
Definition at line 153 of file fsm.c. Referenced by fsmStage().
|
|
|
Destroy file info iterator.
Definition at line 83 of file fsm.c. Referenced by freeFSM(), and fsmTeardown().
|
|
|
Create file info iterator.
Definition at line 95 of file fsm.c. Referenced by fsmSetup().
|
|
|
Return next index into file info.
Definition at line 115 of file fsm.c. Referenced by fsmStage(), and mapFind().
|
|
|
Save hard link in chain.
Definition at line 314 of file fsm.c. Referenced by fsmStage().
|
|
|
Write next item to payload stream.
Definition at line 676 of file fsm.c. Referenced by fsmStage(), and writeLinkedFile().
|
|
|
Write set of linked files to payload stream.
Definition at line 801 of file fsm.c. Referenced by fsmStage().
|
1.2.6-20010408 written by Dimitri van Heesch,
© 1997-2001