1#include <sys/stat.h>
2#include <fcntl.h>
3#include "syscall.h"
4
5int mknod(const char *path, mode_t mode, dev_t dev)
6{
7#ifdef SYS_mknod
8	return syscall(SYS_mknod, path, mode, dev);
9#else
10	return syscall(SYS_mknodat, AT_FDCWD, path, mode, dev);
11#endif
12}
13