libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / sys-minix / rename.c
blob50aedbd2f453d4d1f474ed262be0be3ed8343503
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #include <string.h>
6 #include <stdio.h>
8 int rename(const char *name, const char *name2)
10 message m;
12 m.m1_i1 = strlen(name) + 1;
13 m.m1_i2 = strlen(name2) + 1;
14 m.m1_p1 = (char *) __UNCONST(name);
15 m.m1_p2 = (char *) __UNCONST(name2);
16 return(_syscall(VFS_PROC_NR, RENAME, &m));