rpm  5.2.1
ar.h
Go to the documentation of this file.
1 #ifndef H_AR
2 #define H_AR
3 
9 /*
10  */
11 typedef struct arHeader_s * arHeader;
12 
13 /* ar(1) file constants */
14 # define AR_MAGIC "!<arch>\n"
15 # define AR_MARKER "`\n"
16 
20 struct arHeader_s {
21  char name[16];
22  char mtime[12];
23  char uid[6];
24  char gid[6];
25  char mode[8];
26  char filesize[10];
27  char marker[2];
28 };
29 
30 /*@unchecked@*/
31 extern int _ar_debug;
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
43 int arHeaderRead(void * _iosm, struct stat * st)
44  /*@globals fileSystem, internalState @*/
45  /*@modifies _iosm, *st, fileSystem, internalState @*/;
46 
53 int arHeaderWrite(void * _iosm, struct stat * st)
54  /*@globals fileSystem, internalState @*/
55  /*@modifies _iosm, fileSystem, internalState @*/;
56 
62 int arTrailerWrite(void * _iosm)
63  /*@globals fileSystem, internalState @*/
64  /*@modifies _iosm, fileSystem, internalState @*/;
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif /* H_AR */