rpm  5.4.10
cpio.h
Go to the documentation of this file.
1 #ifndef H_CPIO
2 #define H_CPIO
3 
12 
13 /* Cpio file constants */
14 #define CPIO_NEWC_MAGIC "070701"
15 #define CPIO_CRC_MAGIC "070702"
16 #define CPIO_TRAILER "TRAILER!!!"
17 
18 #define PHYS_HDR_SIZE 110 /* Don't depend on sizeof(struct) */
19 
24  char magic[6];
25  char inode[8];
26  char mode[8];
27  char uid[8];
28  char gid[8];
29  char nlink[8];
30  char mtime[8];
31  char filesize[8];
32  char devMajor[8];
33  char devMinor[8];
34  char rdevMajor[8];
35  char rdevMinor[8];
36  char namesize[8];
37  char checksum[8]; /* ignored !! */
38 };
39 
40 /*@unchecked@*/
41 extern int _cpio_debug;
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
53 int cpioHeaderRead(void * _iosm, struct stat * st)
54  /*@globals fileSystem, internalState @*/
55  /*@modifies _iosm, *st, fileSystem, internalState @*/;
56 
63 int cpioHeaderWrite(void * _iosm, struct stat * st)
64  /*@globals fileSystem, internalState @*/
65  /*@modifies _iosm, fileSystem, internalState @*/;
66 
72 int cpioTrailerWrite(void * _iosm)
73  /*@globals fileSystem, internalState @*/
74  /*@modifies _iosm, fileSystem, internalState @*/;
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* H_CPIO */