rpm 5.2.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

rpmio/ar.h
Go to the documentation of this file.

    00001 #ifndef H_AR
    00002 #define H_AR
    00003
    00009 /*
    00010  */
    00011 typedef struct arHeader_s * arHeader;
    00012
    00013 /* ar(1) file constants  */
    00014 # define AR_MAGIC       "!<arch>\n"
    00015 # define AR_MARKER      "`\n"
    00016
    00020 struct arHeader_s {
    00021         char name[16];
    00022         char mtime[12];
    00023         char uid[6];
    00024         char gid[6];
    00025         char mode[8];
    00026         char filesize[10];
    00027         char marker[2];
    00028 };
    00029
    00030 /*@unchecked@*/
    00031 extern int _ar_debug;
    00032
    00033 #ifdef __cplusplus
    00034 extern "C" {
    00035 #endif
    00036
    00043 int arHeaderRead(void * _iosm, struct stat * st)
    00044         /*@globals fileSystem, internalState @*/
    00045         /*@modifies _iosm, *st, fileSystem, internalState @*/;
    00046
    00053 int arHeaderWrite(void * _iosm, struct stat * st)
    00054         /*@globals fileSystem, internalState @*/
    00055         /*@modifies _iosm, fileSystem, internalState @*/;
    00056
    00062 int arTrailerWrite(void * _iosm)
    00063         /*@globals fileSystem, internalState @*/
    00064         /*@modifies _iosm, fileSystem, internalState @*/;
    00065
    00066 #ifdef __cplusplus
    00067 }
    00068 #endif
    00069
    00070 #endif  /* H_AR */