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 +++++++++++ lib/sys/mkdir.h | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 lib/sys/creat.h create mode 100644 lib/sys/mkdir.h (limited to 'lib/sys') 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 diff --git a/lib/sys/mkdir.h b/lib/sys/mkdir.h new file mode 100644 index 0000000..2de3b01 --- /dev/null +++ b/lib/sys/mkdir.h @@ -0,0 +1,11 @@ +#ifndef MKDIR_H +#define MKDIR_H + +#include "syscalls.h" + +int mkdir(const char *pathname, unsigned int mode) +{ + return syscall(MKDIR, pathname, mode); +} + +#endif -- cgit v1.2.3-70-g09d2