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