vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / sys / mknod.c
blobc5b45e4f267cd0cc2c8c860701d7ee98c5be1433
1 /*
2 * Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <errno.h>
8 #include <sys/stat.h>
10 #include <errno_private.h>
13 int
14 mknod(const char *name, mode_t mode, dev_t dev)
16 __set_errno(ENOTSUP);
17 return -1;
21 int
22 mknodat(int fd, const char *name, mode_t mode, dev_t dev)
24 __set_errno(ENOTSUP);
25 return -1;