about summary refs log tree commit diff
path: root/src/unistd/readlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/readlink.c')
-rw-r--r--src/unistd/readlink.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unistd/readlink.c b/src/unistd/readlink.c
new file mode 100644
index 00000000..f6b1635c
--- /dev/null
+++ b/src/unistd/readlink.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+#include "syscall.h"
+
+int readlink(const char *path, char *buf, size_t bufsize)
+{
+	return syscall3(__NR_readlink, (long)path, (long)buf, bufsize);
+}