ar.h
Go to the documentation of this file.
#ifndef H_AR
#define H_AR
/*
*/
typedef struct arHeader_s * arHeader;
/* ar(1) file constants */
# define AR_MAGIC "!<arch>\n"
# define AR_MARKER "`\n"
struct arHeader_s {
char name[16];
char mtime[12];
char uid[6];
char gid[6];
char mode[8];
char filesize[10];
char marker[2];
};
/*@unchecked@*/
extern int _ar_debug;
#ifdef __cplusplus
extern "C" {
#endif
int arHeaderRead(void * _iosm, struct stat * st)
/*@globals fileSystem, internalState @*/
/*@modifies _iosm, *st, fileSystem, internalState @*/;
int arHeaderWrite(void * _iosm, struct stat * st)
/*@globals fileSystem, internalState @*/
/*@modifies _iosm, fileSystem, internalState @*/;
int arTrailerWrite(void * _iosm)
/*@globals fileSystem, internalState @*/
/*@modifies _iosm, fileSystem, internalState @*/;
#ifdef __cplusplus
}
#endif
#endif /* H_AR */