toaruos/libc/unistd/readlink.c

12 lines
269 B
C
Raw Normal View History

#include <unistd.h>
#include <errno.h>
#include <syscall.h>
#include <syscall_nums.h>
DEFN_SYSCALL3(readlink, SYS_READLINK, char *, char *, int);
ssize_t readlink(const char * name, char * buf, size_t len) {
2018-07-18 04:25:01 +03:00
__sets_errno(syscall_readlink((char*)name, buf, len));
}