toaruos/libc/unistd/unlink.c

11 lines
218 B
C
Raw Normal View History

2018-06-25 06:11:33 +03:00
#include <unistd.h>
#include <errno.h>
#include <syscall.h>
#include <syscall_nums.h>
DEFN_SYSCALL1(unlink, SYS_UNLINK, char *);
int unlink(const char * pathname) {
2018-07-18 04:25:01 +03:00
__sets_errno(syscall_unlink((char *)pathname));
2018-06-25 06:11:33 +03:00
}