From ce00d1677d7a419b427e7f11963eee982a55a231 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 4 Aug 2022 23:06:57 +0200 Subject: do some simple TODOs, organize the rest; general code maintainance --- src/shared/include/camellia/execbuf.h | 2 ++ src/shared/include/camellia/path.h | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 src/shared/include/camellia/path.h (limited to 'src/shared') diff --git a/src/shared/include/camellia/execbuf.h b/src/shared/include/camellia/execbuf.h index 9741f66..de7ae3b 100644 --- a/src/shared/include/camellia/execbuf.h +++ b/src/shared/include/camellia/execbuf.h @@ -1,6 +1,8 @@ #pragma once /* the instruction format is bound to change, atm it's extremely inefficient */ +#define EXECBUF_MAX_LEN 4096 + /* takes 6 arguments */ #define EXECBUF_SYSCALL 0xF0000001 /* takes 1 argument, changes %rip */ diff --git a/src/shared/include/camellia/path.h b/src/shared/include/camellia/path.h new file mode 100644 index 0000000..ba6bccf --- /dev/null +++ b/src/shared/include/camellia/path.h @@ -0,0 +1,3 @@ +#pragma once + +#define PATH_MAX 512 -- cgit v1.2.3