toaruos/libc/unistd/unlink.c
2018-07-18 10:25:01 +09:00

11 lines
218 B
C

#include <unistd.h>
#include <errno.h>
#include <syscall.h>
#include <syscall_nums.h>
DEFN_SYSCALL1(unlink, SYS_UNLINK, char *);
int unlink(const char * pathname) {
__sets_errno(syscall_unlink((char *)pathname));
}