From d55026c2d5ddc6df64341e76bd5cdfa39a6a1e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 18 Nov 2004 16:56:10 +0000 Subject: [PATCH] Added empty implementation of mknod() - should be pretty much what BeOS does. The "mv" command needed it. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10011 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/unistd/Jamfile | 1 + src/kernel/libroot/posix/unistd/mknod.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/kernel/libroot/posix/unistd/mknod.c diff --git a/src/kernel/libroot/posix/unistd/Jamfile b/src/kernel/libroot/posix/unistd/Jamfile index d6f268cdea..f6fcf3937b 100644 --- a/src/kernel/libroot/posix/unistd/Jamfile +++ b/src/kernel/libroot/posix/unistd/Jamfile @@ -16,6 +16,7 @@ KernelMergeObject posix_unistd.o : ioctl.c link.c lseek.c + mknod.c mount.c open.c pipe.c diff --git a/src/kernel/libroot/posix/unistd/mknod.c b/src/kernel/libroot/posix/unistd/mknod.c new file mode 100644 index 0000000000..6426280da8 --- /dev/null +++ b/src/kernel/libroot/posix/unistd/mknod.c @@ -0,0 +1,17 @@ +/* + * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. + * Distributed under the terms of the MIT License. + */ + + +#include +#include + + +int +mknod(const char *name, mode_t mode, dev_t dev) +{ + errno = B_BAD_VALUE; + return -1; +} +