summaryrefslogtreecommitdiffstats
path: root/lib/tar.h
blob: d2435acb8481550d35f40c931d9de8ff3e91bfee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _JOVE_HAL_TAR_H
#define _JOVE_HAL_TAR_H 1

struct tar_header
{
    char filename[100];
    char mode[8];
    char uid[8];
    char gid[8];
    char size[12];
    char modtime[12];
    char checksum[8];
    char type;
};

union tar_block
{
    struct tar_header header;
    char data[512];
};

const char *tar_filename(struct tar_header *header);
int tar_filesize(struct tar_header *header);

#endif