diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-10 16:02:19 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-10 16:02:19 +0100 |
| commit | f5a76d8eaba565e2a532faf659efe2848d605163 (patch) | |
| tree | 33889081d5f98e6c3e771f597086658e0aeaec05 /lib/sys/rmdir.h | |
| parent | 55c86c04d3abfa597f9dc27ddc14159193f51ceb (diff) | |
add rm (using rmdir and unlink syscalls)
Diffstat (limited to 'lib/sys/rmdir.h')
| -rw-r--r-- | lib/sys/rmdir.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sys/rmdir.h b/lib/sys/rmdir.h new file mode 100644 index 0000000..1656ee9 --- /dev/null +++ b/lib/sys/rmdir.h @@ -0,0 +1,11 @@ +#ifndef RMDIR_H +#define RMDIR_H + +#include "syscalls.h" + +int rmdir(const char *pathname) +{ + return syscall(RMDIR, pathname); +} + +#endif |