mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
639 B
28 lines
639 B
#ifndef _TARHEAD_
|
|
#define _TARHEAD_
|
|
|
|
#define TNAMSIZ 100
|
|
|
|
typedef union _TAR_HEAD {
|
|
unsigned char buf[512];
|
|
struct {
|
|
char name[TNAMSIZ]; /* nul-terminated unless full */
|
|
char mode[8];
|
|
char uid[8];
|
|
char gid[8];
|
|
char size[12];
|
|
char mtime[12];
|
|
char chksum[8];
|
|
char typeflag;
|
|
char linkname[TNAMSIZ]; /* nul-terminated unless full */
|
|
char magic[TMAGLEN]; /* nul-terminated */
|
|
char version[2];
|
|
char uname[32]; /* nul-terminated */
|
|
char gname[32]; /* nul-terminated */
|
|
char devmajor[8];
|
|
char devminor[8];
|
|
char prefix[155]; /* nul-terminated unless full */
|
|
} s;
|
|
} TAR_HEAD, *PTAR_HEAD;
|
|
|
|
#endif // _TARHEAD_
|