From 0e0f22cde8fa9a8c9e0ff509a90727092e0af58b Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 17 Dec 2022 17:27:57 +0100 Subject: add errno and file support --- lib/sys/open.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/sys/open.h (limited to 'lib/sys/open.h') diff --git a/lib/sys/open.h b/lib/sys/open.h new file mode 100644 index 0000000..5aeab6d --- /dev/null +++ b/lib/sys/open.h @@ -0,0 +1,11 @@ +#ifndef OPEN_H +#define OPEN_H + +#include "syscalls.h" + +static int open(const char *filename, int flags, int mode) +{ + return syscall(OPEN, filename, flags, mode); +} + +#endif -- cgit v1.2.3-70-g09d2