Our file system are different, and old mount stuff does not work anymore;
we do not support mount() and unmount() anymore. I've not removed that file in case we decide that we have to export those functions for whatever reason. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9868 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,39 +1,30 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2002-2004, Axel Dörfler, [email protected]. All rights reserved.
|
** Copyright 2002-2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
** Distributed under the terms of the Haiku License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#if 0
|
||||||
#include <syscalls.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
int mount(const char *filesystem, const char *where, const char *device, ulong flags, void *parms, int len);
|
||||||
#define RETURN_AND_SET_ERRNO(err) \
|
int unmount(const char *path);
|
||||||
if (err < 0) { \
|
|
||||||
errno = err; \
|
|
||||||
return -1; \
|
|
||||||
} \
|
|
||||||
return err;
|
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
mount(const char *filesystem, const char *where, const char *device, ulong flags, void *parms, int len)
|
mount(const char *filesystem, const char *where, const char *device, ulong flags, void *parms, int len)
|
||||||
{
|
{
|
||||||
// ToDo: consider parsing "parms" string in userland
|
errno = EOPNOTSUPP;
|
||||||
int status = _kern_mount(where, device, filesystem, flags, parms);
|
return -1;
|
||||||
|
|
||||||
(void)len;
|
|
||||||
|
|
||||||
RETURN_AND_SET_ERRNO(status);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
unmount(const char *path)
|
unmount(const char *path)
|
||||||
{
|
{
|
||||||
int status = _kern_unmount(path);
|
errno = EOPNOTSUPP;
|
||||||
|
return -1;
|
||||||
RETURN_AND_SET_ERRNO(status);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user