__aeabi_ldivmod: fix sign logic
[minix.git] / lib / libc / sys-minix / symlink.c
blob6db8ff81b304bde7b245ed21e55bdb7948e9a8bb
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #ifdef __weak_alias
6 __weak_alias(symlink, _symlink)
7 #endif
9 #include <string.h>
10 #include <unistd.h>
12 int symlink(const char *name, const char *name2)
14 message m;
16 m.m1_i1 = strlen(name) + 1;
17 m.m1_i2 = strlen(name2) + 1;
18 m.m1_p1 = (char *) __UNCONST(name);
19 m.m1_p2 = (char *) __UNCONST(name2);
20 return(_syscall(VFS_PROC_NR, SYMLINK, &m));