diff options
Diffstat (limited to 'lib/sys')
| -rw-r--r-- | lib/sys/creat.h | 11 | ||||
| -rw-r--r-- | lib/sys/mkdir.h | 11 |
2 files changed, 22 insertions, 0 deletions
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 |