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

13 lines
255 B
C

#include <unistd.h>
#include <errno.h>
#include <syscall.h>
#include <syscall_nums.h>
DEFN_SYSCALL2(symlink, SYS_SYMLINK, const char *, const char *);
int symlink(const char *target, const char *name) {
__sets_errno(syscall_symlink(target, name));
}