4 * Copyright (C) 2009 Analog Devices Inc.
6 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
9 #include <sys/syscall.h>
13 int mknodat(int fd, const char *path, mode_t mode, dev_t dev)
15 unsigned long long int k_dev;
17 /* We must convert the value to dev_t type used by the kernel. */
18 k_dev = (dev) & ((1ULL << 32) - 1);
20 return INLINE_SYSCALL(mknodat, 4, fd, path, mode, (unsigned int)k_dev);
22 libc_hidden_def(mknodat)
24 /* should add emulation with mknod() and /proc/self/fd/ ... */