diff options
Diffstat (limited to 'libc-top-half/musl/src/unistd/unlink.c')
-rw-r--r-- | libc-top-half/musl/src/unistd/unlink.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/unistd/unlink.c b/libc-top-half/musl/src/unistd/unlink.c new file mode 100644 index 0000000..c40c28d --- /dev/null +++ b/libc-top-half/musl/src/unistd/unlink.c @@ -0,0 +1,12 @@ +#include <unistd.h> +#include <fcntl.h> +#include "syscall.h" + +int unlink(const char *path) +{ +#ifdef SYS_unlink + return syscall(SYS_unlink, path); +#else + return syscall(SYS_unlinkat, AT_FDCWD, path, 0); +#endif +} |