From 7536d000ac9a5188378f2749ecfd7f0ccb437573 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 14 Dec 2022 22:12:20 +0100 Subject: first try to pipe stuff --- lib/sys/exit.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/sys/exit.h (limited to 'lib/sys/exit.h') diff --git a/lib/sys/exit.h b/lib/sys/exit.h new file mode 100644 index 0000000..516d714 --- /dev/null +++ b/lib/sys/exit.h @@ -0,0 +1,11 @@ +#ifndef EXIT_H +#define EXIT_H + +#include "syscalls.h" + +_Noreturn void exit(int error_code) +{ + syscall(EXIT, error_code); +} + +#endif -- cgit v1.2.3-70-g09d2