projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement gettext message translation functions
[musl]
/
src
/
unistd
/
symlink.c
diff --git
a/src/unistd/symlink.c
b/src/unistd/symlink.c
index
8d380d8
..
0973d78
100644
(file)
--- a/
src/unistd/symlink.c
+++ b/
src/unistd/symlink.c
@@
-1,7
+1,12
@@
#include <unistd.h>
#include <unistd.h>
+#include <fcntl.h>
#include "syscall.h"
int symlink(const char *existing, const char *new)
{
#include "syscall.h"
int symlink(const char *existing, const char *new)
{
- return syscall2(__NR_symlink, (long)existing, (long)new);
+#ifdef SYS_symlink
+ return syscall(SYS_symlink, existing, new);
+#else
+ return syscall(SYS_symlinkat, existing, AT_FDCWD, new);
+#endif
}
}