2018-05-02 06:20:06 +03:00
|
|
|
#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));
|
2018-05-02 06:20:06 +03:00
|
|
|
}
|
|
|
|
|