summaryrefslogtreecommitdiff
path: root/pax.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-11-20 16:35:46 -0500
committerJakob Kaivo <jkk@ung.org>2019-11-20 16:35:46 -0500
commitbc4ca8f73ece3cb3d6d3538ea182b078142c65c9 (patch)
treece3de06069b5d21bf5c65a71c4f19efcf5492de0 /pax.h
parentf1cdf4f5ff99255c12347b214853bf68835b6a9c (diff)
add rough outlines of cpio and tar interfaces
Diffstat (limited to 'pax.h')
-rw-r--r--pax.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pax.h b/pax.h
index 46ed1f9..3856ee4 100644
--- a/pax.h
+++ b/pax.h
@@ -23,6 +23,7 @@
*/
#include <stdint.h>
+#include <sys/stat.h>
#define TAR_HEADER_SIZE 512
@@ -70,4 +71,7 @@ int tar_list(FILE *input, size_t firstlen, void *firstblock);
void pax_list_file(struct stat *st, const char *filename);
uintmax_t pax_atoi(size_t n, const char s[static n], int base);
+int tar_main(int argc, char *argv[]);
+int cpio_main(int argc, char *argv[]);
+
extern const size_t cpio_header_size;