Index: fusl/src/unistd/symlink.c |
diff --git a/fusl/src/unistd/symlink.c b/fusl/src/unistd/symlink.c |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0973d78a8936bca2cef633f361abd2401bd82f4a |
--- /dev/null |
+++ b/fusl/src/unistd/symlink.c |
@@ -0,0 +1,12 @@ |
+#include <unistd.h> |
+#include <fcntl.h> |
+#include "syscall.h" |
+ |
+int symlink(const char *existing, const char *new) |
+{ |
+#ifdef SYS_symlink |
+ return syscall(SYS_symlink, existing, new); |
+#else |
+ return syscall(SYS_symlinkat, existing, AT_FDCWD, new); |
+#endif |
+} |