projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
netinet/tcp.h: update to linux v5.7
[musl]
/
src
/
unistd
/
readlink.c
1
#include <unistd.h>
2
#include <fcntl.h>
3
#include "syscall.h"
4
5
ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize)
6
{
7
#ifdef SYS_readlink
8
return syscall(SYS_readlink, path, buf, bufsize);
9
#else
10
return syscall(SYS_readlinkat, AT_FDCWD, path, buf, bufsize);
11
#endif
12
}