From 146a3000ee509a0c225deb1aa01aa50ad88b5cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 17 Oct 2002 18:52:04 +0000 Subject: [PATCH] Added syscalls for the index functions. Corrected the prototype for fs_rewind_index_dir() (don't copy and paste...) Also checked in the syscall definitions for the signal stuff to save Angelo some work. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1562 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/kernel/fs_index.h | 2 +- headers/private/kernel/ksyscalls.h | 7 +++++++ headers/private/kernel/vfs.h | 8 ++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/headers/os/kernel/fs_index.h b/headers/os/kernel/fs_index.h index 5f889a5819..2288da6cba 100644 --- a/headers/os/kernel/fs_index.h +++ b/headers/os/kernel/fs_index.h @@ -32,7 +32,7 @@ extern int fs_stat_index(dev_t device, const char *name, struct index_info *ind extern DIR *fs_open_index_dir(dev_t device); extern int fs_close_index_dir(DIR *indexDirectory); extern struct dirent *fs_read_index_dir(DIR *indexDirectory); -extern void fs_rewind_attr_dir(DIR *indexDirectory); +extern void fs_rewind_index_dir(DIR *indexDirectory); #ifdef __cplusplus } diff --git a/headers/private/kernel/ksyscalls.h b/headers/private/kernel/ksyscalls.h index 0d53e585f3..d64c88a34f 100755 --- a/headers/private/kernel/ksyscalls.h +++ b/headers/private/kernel/ksyscalls.h @@ -112,6 +112,13 @@ enum { SYSCALL_WRITE_STAT, /* 100 */ SYSCALL_REMOVE_ATTR, SYSCALL_RENAME_ATTR, + SYSCALL_RETURN_FROM_SIGNAL, + SYSCALL_KILL, + SYSCALL_SIGACTION, /* 105 */ + SYSCALL_OPEN_INDEX_DIR, + SYSCALL_CREATE_INDEX, + SYSCALL_READ_INDEX_STAT, + SYSCALL_REMOVE_INDEX, }; int syscall_dispatcher(unsigned long call_num, void *arg_buffer, uint64 *call_ret); diff --git a/headers/private/kernel/vfs.h b/headers/private/kernel/vfs.h index 8ed80e1810..62b9d13e8c 100755 --- a/headers/private/kernel/vfs.h +++ b/headers/private/kernel/vfs.h @@ -85,6 +85,10 @@ int sys_create_attr(int fd, const char *name, uint32 type, int openMode); int sys_open_attr(int fd, const char *name, int openMode); int sys_remove_attr(int fd, const char *name); int sys_rename_attr(int fromFile, const char *fromName, int toFile, const char *toName); +int sys_open_index_dir(dev_t device); +int sys_create_index(dev_t device, const char *name, uint32 type, uint32 flags); +int sys_read_index_stat(dev_t device, const char *name, struct stat *stat); +int sys_remove_index(dev_t device, const char *name); int sys_getcwd(char *buffer, size_t size); int sys_setcwd(int fd, const char *path); @@ -118,6 +122,10 @@ int user_create_attr(int fd, const char *name, uint32 type, int openMode); int user_open_attr(int fd, const char *name, int openMode); int user_remove_attr(int fd, const char *name); int user_rename_attr(int fromFile, const char *fromName, int toFile, const char *toName); +int user_open_index_dir(dev_t device); +int user_create_index(dev_t device, const char *name, uint32 type, uint32 flags); +int user_read_index_stat(dev_t device, const char *name, struct stat *stat); +int user_remove_index(dev_t device, const char *name); int user_getcwd(char *buffer, size_t size); int user_setcwd(int fd, const char *path);