rpm  5.4.14
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 */
int arHeaderRead(void *_iosm, struct stat *st)
Read ar(1) header.
Definition: ar.c:92
char name[16]
Definition: ar.h:21
char filesize[10]
Definition: ar.h:26
char uid[6]
Definition: ar.h:23
char mtime[12]
Definition: ar.h:22
ar(1) archive header.
Definition: ar.h:20
spectags st
Definition: spec.c:741
struct arHeader_s * arHeader
Definition: ar.h:11
char marker[2]
Definition: ar.h:27
char gid[6]
Definition: ar.h:24
int arHeaderWrite(void *_iosm, struct stat *st)
Write ar(1) header.
Definition: ar.c:235
int arTrailerWrite(void *_iosm)
Write ar(1) trailer.
Definition: ar.c:309
int _ar_debug
Definition: ar.c:23
char mode[8]
Definition: ar.h:25