cpio.h
Go to the documentation of this file.
#ifndef H_CPIO
#define H_CPIO
typedef struct cpioCrcPhysicalHeader_s * cpioHeader;
/* Cpio file constants */
#define CPIO_NEWC_MAGIC "070701"
#define CPIO_CRC_MAGIC "070702"
#define CPIO_TRAILER "TRAILER!!!"
#define PHYS_HDR_SIZE 110 /* Don't depend on sizeof(struct) */
struct cpioCrcPhysicalHeader_s {
char magic[6];
char inode[8];
char mode[8];
char uid[8];
char gid[8];
char nlink[8];
char mtime[8];
char filesize[8];
char devMajor[8];
char devMinor[8];
char rdevMajor[8];
char rdevMinor[8];
char namesize[8];
char checksum[8]; /* ignored !! */
};
/*@unchecked@*/
extern int _cpio_debug;
#ifdef __cplusplus
extern "C" {
#endif
int cpioHeaderRead(void * _iosm, struct stat * st)
/*@globals fileSystem, internalState @*/
/*@modifies _iosm, *st, fileSystem, internalState @*/;
int cpioHeaderWrite(void * _iosm, struct stat * st)
/*@globals fileSystem, internalState @*/
/*@modifies _iosm, fileSystem, internalState @*/;
int cpioTrailerWrite(void * _iosm)
/*@globals fileSystem, internalState @*/
/*@modifies _iosm, fileSystem, internalState @*/;
#ifdef __cplusplus
}
#endif
#endif /* H_CPIO */