libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / sys-minix / mkdir.c
bloba014868da7b76943dca93ec422d370f1812beaf6
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <sys/stat.h>
6 #include <string.h>
8 #ifdef __weak_alias
9 __weak_alias(mkdir, _mkdir)
10 #endif
12 int mkdir(const char *name, mode_t mode)
14 message m;
16 m.m1_i1 = strlen(name) + 1;
17 m.m1_i2 = mode;
18 m.m1_p1 = (char *) __UNCONST(name);
19 return(_syscall(VFS_PROC_NR, MKDIR, &m));