diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-04 11:31:40 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-04 11:31:40 -0400 |
| commit | 8251da342161767fe203627223ccd4a7026701c6 (patch) | |
| tree | af2db0f11b0ea8ad35f88663a855bab39a80f679 /lib/tar.h | |
| download | jove-kernel-8251da342161767fe203627223ccd4a7026701c6.tar.gz jove-kernel-8251da342161767fe203627223ccd4a7026701c6.tar.bz2 jove-kernel-8251da342161767fe203627223ccd4a7026701c6.zip | |
initial commit. working on tasking
Diffstat (limited to 'lib/tar.h')
| -rw-r--r-- | lib/tar.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/tar.h b/lib/tar.h new file mode 100644 index 0000000..d2435ac --- /dev/null +++ b/lib/tar.h @@ -0,0 +1,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 |
