5 ssize_t
readlink(const char *restrict path
, char *restrict buf
, size_t bufsize
)
13 int r
= __syscall(SYS_readlink
, path
, buf
, bufsize
);
15 int r
= __syscall(SYS_readlinkat
, AT_FDCWD
, path
, buf
, bufsize
);
17 if (buf
== dummy
&& r
> 0) r
= 0;
18 return __syscall_ret(r
);