Added syscall for _kern_next_device().
fs_stat_dev() and next_dev() should now work. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8347 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,9 +10,8 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "syscalls.h"
|
#include <syscalls.h>
|
||||||
|
|
||||||
// ToDo: implement these for real - the VFS functions are still missing!
|
|
||||||
|
|
||||||
#define RETURN_AND_SET_ERRNO(status) \
|
#define RETURN_AND_SET_ERRNO(status) \
|
||||||
{ \
|
{ \
|
||||||
@@ -37,20 +36,19 @@ dev_for_path(const char *path)
|
|||||||
|
|
||||||
|
|
||||||
dev_t
|
dev_t
|
||||||
next_dev(int32 *pos)
|
next_dev(int32 *_cookie)
|
||||||
{
|
{
|
||||||
status_t status = B_ERROR;
|
return _kern_next_device(_cookie);
|
||||||
|
// For some reason, this one returns its error code directly
|
||||||
RETURN_AND_SET_ERRNO(status)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
fs_stat_dev(dev_t dev, fs_info *info)
|
fs_stat_dev(dev_t device, fs_info *info)
|
||||||
{
|
{
|
||||||
status_t status = B_ERROR;
|
status_t status = _kern_read_fs_info(device, info);
|
||||||
|
|
||||||
RETURN_AND_SET_ERRNO(status)
|
RETURN_AND_SET_ERRNO(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ SYSCALL4(_kern_mount, 1)
|
|||||||
SYSCALL1(_kern_unmount, 2)
|
SYSCALL1(_kern_unmount, 2)
|
||||||
SYSCALL2(_kern_read_fs_info, 66)
|
SYSCALL2(_kern_read_fs_info, 66)
|
||||||
SYSCALL3(_kern_write_fs_info, 67)
|
SYSCALL3(_kern_write_fs_info, 67)
|
||||||
|
SYSCALL1(_kern_next_device, 68)
|
||||||
SYSCALL0(_kern_sync, 3)
|
SYSCALL0(_kern_sync, 3)
|
||||||
SYSCALL5(_kern_dir_node_ref_to_path, 142)
|
SYSCALL5(_kern_dir_node_ref_to_path, 142)
|
||||||
SYSCALL2(_kern_open, 4)
|
SYSCALL2(_kern_open, 4)
|
||||||
|
|||||||
Reference in New Issue
Block a user