From 8251da342161767fe203627223ccd4a7026701c6 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Fri, 4 Sep 2026 11:31:40 -0400 Subject: initial commit. working on tasking --- lib/tar.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lib/tar.h (limited to 'lib/tar.h') 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 -- cgit v1.2.3