global cleanup to use the new syscall interface
[musl] / src / stat / mknod.c
1 #include <sys/stat.h>
2 #include "syscall.h"
3
4 int mknod(const char *path, mode_t mode, dev_t dev)
5 {
6         /* since dev_t is system-specific anyway we defer to the idiotic
7          * legacy-compatible bitfield mapping of the type.. at least we've
8          * made it large enough to leave space for future expansion.. */
9         return syscall(SYS_mknod, path, mode, dev & 0xffff);
10 }