diff --git a/src/kernel/libroot/posix/unistd/mount.c b/src/kernel/libroot/posix/unistd/mount.c index daee1437b4..ee22f7f527 100644 --- a/src/kernel/libroot/posix/unistd/mount.c +++ b/src/kernel/libroot/posix/unistd/mount.c @@ -1,39 +1,30 @@ /* ** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the OpenBeOS License. +** Distributed under the terms of the Haiku License. */ -#include -#include +#if 0 + #include +#include - -#define RETURN_AND_SET_ERRNO(err) \ - if (err < 0) { \ - errno = err; \ - return -1; \ - } \ - return err; - +int mount(const char *filesystem, const char *where, const char *device, ulong flags, void *parms, int len); +int unmount(const char *path); int mount(const char *filesystem, const char *where, const char *device, ulong flags, void *parms, int len) { - // ToDo: consider parsing "parms" string in userland - int status = _kern_mount(where, device, filesystem, flags, parms); - - (void)len; - - RETURN_AND_SET_ERRNO(status); + errno = EOPNOTSUPP; + return -1; } int unmount(const char *path) { - int status = _kern_unmount(path); - - RETURN_AND_SET_ERRNO(status); + errno = EOPNOTSUPP; + return -1; } +#endif