From c28c0592921ef90cd5bdab9e6ac6642dbf37ece9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 7 Jul 2004 16:07:25 +0000 Subject: [PATCH] Added all syscalls needed for the next_dev() call. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8346 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/ksyscalls.h | 2 +- headers/private/kernel/syscalls.h | 1 + headers/private/kernel/vfs.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/headers/private/kernel/ksyscalls.h b/headers/private/kernel/ksyscalls.h index 8cc82cc09c..3d160f9419 100755 --- a/headers/private/kernel/ksyscalls.h +++ b/headers/private/kernel/ksyscalls.h @@ -77,7 +77,7 @@ enum { SYSCALL_SETRLIMIT, /* 65 */ SYSCALL_READ_FS_INFO, SYSCALL_WRITE_FS_INFO, - SYSCALL_unused_68, + SYSCALL_NEXT_DEVICE, SYSCALL_unused_69, SYSCALL_unused_70, /* 70 */ SYSCALL_SYSCTL, diff --git a/headers/private/kernel/syscalls.h b/headers/private/kernel/syscalls.h index fe1a2f2404..2a277f433e 100644 --- a/headers/private/kernel/syscalls.h +++ b/headers/private/kernel/syscalls.h @@ -84,6 +84,7 @@ extern status_t _kern_mount(const char *path, const char *device, const char *f extern status_t _kern_unmount(const char *path); extern status_t _kern_read_fs_info(dev_t device, struct fs_info *info); extern status_t _kern_write_fs_info(dev_t device, const struct fs_info *info, int mask); +extern dev_t _kern_next_device(int32 *_cookie); extern status_t _kern_sync(void); extern status_t _kern_dir_node_ref_to_path(dev_t device, ino_t inode, char *userPath, size_t pathLength); extern int _kern_open_entry_ref(dev_t device, ino_t inode, const char *name, int omode); diff --git a/headers/private/kernel/vfs.h b/headers/private/kernel/vfs.h index 4ce7f6d3a0..09c2f4cd7e 100755 --- a/headers/private/kernel/vfs.h +++ b/headers/private/kernel/vfs.h @@ -88,6 +88,7 @@ status_t _user_mount(const char *path, const char *device, const char *fs_name, status_t _user_unmount(const char *path); status_t _user_read_fs_info(dev_t device, struct fs_info *info); status_t _user_write_fs_info(dev_t device, const struct fs_info *info, int mask); +dev_t _user_next_device(int32 *_cookie); status_t _user_sync(void); status_t _user_dir_node_ref_to_path(dev_t device, ino_t inode, char *userPath, size_t pathLength); int _user_open_entry_ref(dev_t device, ino_t inode, const char *name, int omode);