aboutsummaryrefslogtreecommitdiff
path: root/src/section/custom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/section/custom.c')
-rw-r--r--src/section/custom.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/section/custom.c b/src/section/custom.c
new file mode 100644
index 0000000..9544f17
--- /dev/null
+++ b/src/section/custom.c
@@ -0,0 +1,17 @@
+#include <sections.h>
+#include <wasm_types.h>
+#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+
+int section_custom(struct wasmfs *const w, FILE *const f,
+ const unsigned long len)
+{
+ if (fseek(f, len, SEEK_CUR))
+ {
+ fprintf(stderr, "%s: fseek(3): %s\n", __func__, strerror(errno));
+ return -1;
+ }
+
+ return 0;
+}