summaryrefslogtreecommitdiff
path: root/src/unistd/readlinkat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/readlinkat.c')
-rw-r--r--src/unistd/readlinkat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unistd/readlinkat.c b/src/unistd/readlinkat.c
new file mode 100644
index 00000000..8171050d
--- /dev/null
+++ b/src/unistd/readlinkat.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+#include "syscall.h"
+
+int readlinkat(int fd, const char *path, char *buf, size_t bufsize)
+{
+ return syscall4(__NR_readlinkat, fd, (long)path, (long)buf, bufsize);
+}