libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / sys-minix / link.c
blobf87c9062bb41f5aa45834d83d8a8f813258e1c58
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <string.h>
6 #include <unistd.h>
8 #ifdef __weak_alias
9 __weak_alias(link, _link)
10 #endif
12 int link(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, LINK, &m));