From a8b2282eb88f24c3c5f461e1557fa2cf76ebc251 Mon Sep 17 00:00:00 2001 From: turret Date: Sun, 19 Nov 2023 18:57:55 -0600 Subject: Initial commit - create subsystem system using clone syscall, shared memory, shared file descriptors - printk-like logging facility (TODO: console loglevel) - initcall system (like linux kernel) TODO: determine license factors: linker.ld, linux kernel licensing (some ideas are more liberally taken rather than paraphrased) --- include/util.h | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 include/util.h (limited to 'include/util.h') diff --git a/include/util.h b/include/util.h new file mode 100644 index 0000000..97435be --- /dev/null +++ b/include/util.h @@ -0,0 +1,5 @@ +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) + +void die(const char *fmt, ...); + +#define writeputs(str) write(STDOUT_FILENO, str, strlen(str)); -- cgit v1.2.3