summaryrefslogtreecommitdiff
path: root/lib/libc/stat/mknod.c
blob: b8efed01d4ccb6f519127683eee002a5742916e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "asm/unistd_64.h" // for __NR_mknodat

#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);
}