#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 | |
int | strntoul (const char *str, char **endptr, int base, int num) |
Convert string to unsigned integer (with buffer size check). More... | |
int | cpioTrailerWrite (FSM_t fsm) |
Write cpio trailer. More... | |
int | cpioHeaderWrite (FSM_t fsm, struct stat *st) |
Write cpio header. More... | |
int | cpioHeaderRead (FSM_t fsm, struct stat *st) |
Read cpio header. More... | |
const char* const | cpioStrerror (int rc) |
Variables | |
int | _fsm_debug |
Definition in file cpio.c.
|
Value: log = strntoul(phys, &end, 16, sizeof(phys)); \ if ( (end - phys) != sizeof(phys) ) return CPIOERR_BAD_HEADER; Definition at line 49 of file cpio.c. Referenced by cpioHeaderRead(). |
|
Value: sprintf(space, "%8.8lx", (unsigned long) (val)); \ memcpy(phys, space, 8); Definition at line 52 of file cpio.c. Referenced by cpioHeaderWrite(). |
|
Read cpio header.
|
|
Write cpio header.
|
|
Write cpio trailer.
|
|
Convert string to unsigned integer (with buffer size check).
|
|
|