summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-31 19:42:07 -0500
committermidipix <writeonce@midipix.org>2020-05-23 05:59:02 +0000
commit239ac5c3f246a737d7b70817319a37d6cece8a69 (patch)
tree73f811b95a22759acee5c72127a66e36d5ce0a13 /src/internal
parent7a9a40611a0e20eb40b15aefdd3de2e12e9cc9de (diff)
downloadtpax-239ac5c3f246a737d7b70817319a37d6cece8a69.tar.bz2
tpax-239ac5c3f246a737d7b70817319a37d6cece8a69.tar.xz
driver: tpax_get_unit_ctx(): implemented the non-recursive bits.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/tpax_driver_impl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/internal/tpax_driver_impl.h b/src/internal/tpax_driver_impl.h
index 74af288..5f98415 100644
--- a/src/internal/tpax_driver_impl.h
+++ b/src/internal/tpax_driver_impl.h
@@ -9,14 +9,20 @@
#include <stdint.h>
#include <stdio.h>
+#include <sys/stat.h>
#include <sys/types.h>
#include <tpax/tpax.h>
+#include <tpax/tpax_specs.h>
#include "tpax_dprintf_impl.h"
#include "argv/argv.h"
#define TPAX_OPTV_ELEMENTS 64
+#define TPAX_DRIVER_EXEC_MODE_WRITE_COPY \
+ (TPAX_DRIVER_EXEC_MODE_WRITE | \
+ TPAX_DRIVER_EXEC_MODE_COPY)
+
extern const struct argv_option tpax_default_options[];
enum app_tags {
@@ -47,6 +53,13 @@ struct tpax_driver_ctx_impl {
struct tpax_unit_ctx_impl {
const char * path;
struct tpax_unit_ctx uctx;
+ struct stat st;
+ const char * link;
+ char linkbuf[1024];
+ union {
+ struct tpax_ustar_header uhdr;
+ struct tpax_cpio_header chdr;
+ } hdrbufs;
};