#include "system.h"
#include "fsm.h"
#include "rpmerr.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
| #define | GET_NUM_FIELD(phys, log) |
| #define | SET_NUM_FIELD(phys, val, space) |
Functions | |
| static int | strntoul (const char *str, char **endptr, int base, int num) |
| Convert string to unsigned integer (with buffer size check). | |
| int | cpioTrailerWrite (FSM_t fsm) |
| Write cpio trailer. | |
| int | cpioHeaderWrite (FSM_t fsm, struct stat *st) |
| Write cpio header. | |
| int | cpioHeaderRead (FSM_t fsm, struct stat *st) |
| Read cpio header. | |
| const char *const | cpioStrerror (int rc) |
| Return formatted error message on payload handling failure. | |
Variables | |
| int | _fsm_debug |
Definition in file cpio.c.
| #define GET_NUM_FIELD | ( | phys, | |||
| log | ) |
Value:
log = strntoul(phys, &end, 16, sizeof(phys)); \ if ( (end - phys) != sizeof(phys) ) return CPIOERR_BAD_HEADER;
| #define SET_NUM_FIELD | ( | phys, | |||
| val, | |||||
| space | ) |
| int cpioHeaderRead | ( | FSM_t | fsm, | |
| struct stat * | st | |||
| ) |
| int cpioHeaderWrite | ( | FSM_t | fsm, | |
| struct stat * | st | |||
| ) |
| int cpioTrailerWrite | ( | FSM_t | fsm | ) |
| static int strntoul | ( | const char * | str, | |
| char ** | endptr, | |||
| int | base, | |||
| int | num | |||
| ) | [static] |
| int _fsm_debug |
1.5.6