some coverity fixes.
[minix.git] / lib / libc / sys-minix / mknod.c
blob70c7b8705f2fefc26f2409fdafe73bc536a5ba84
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <string.h>
6 #include <stdlib.h>
7 #include <unistd.h>
8 #include <sys/stat.h>
10 int mknod(const char *name, mode_t mode, dev_t dev)
12 message m;
14 m.m1_i1 = strlen(name) + 1;
15 m.m1_i2 = mode;
16 m.m1_i3 = dev;
17 m.m1_p1 = (char *) __UNCONST(name);
18 m.m1_p2 = (char *) ((int) 0); /* obsolete size field */
19 return(_syscall(VFS_PROC_NR, MKNOD, &m));