blob: e76e232bd474d3aa2ff0410bec2ada60b1cd0df7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <fcntl.h> // for AT_FDCWD
#include <sys/stat.h> // for mknod
#include <sys/types.h> // for dev_t, mode_t
#include <syscall.h> // for __syscall_4, syscall
int mknod(const char *path, mode_t mode, dev_t dev)
{
return syscall(mknodat, AT_FDCWD, path, mode, dev);
}
|