From 1a8731e797f030a84bb982007ee4477b506f7bd6 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 10 Feb 2023 15:26:47 +0100 Subject: add 'new' --- lib/sys/creat.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/sys/creat.h (limited to 'lib/sys/creat.h') diff --git a/lib/sys/creat.h b/lib/sys/creat.h new file mode 100644 index 0000000..9c6e492 --- /dev/null +++ b/lib/sys/creat.h @@ -0,0 +1,11 @@ +#ifndef CREAT_H +#define CREAT_H + +#include "syscalls.h" + +int creat(const char *pathname, unsigned int mode) +{ + return syscall(CREAT, pathname, mode); +} + +#endif -- cgit v1.2.3-70-g09d2