Next update of the VFS: more posix like open/create; divided create in

sys_create(), and sys_create_dir(), open in sys_open(), and sys_open_dir().
Small cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@207 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2002-07-14 05:08:26 +00:00
parent 85493f0665
commit eba8b6cfb9
4 changed files with 78 additions and 36 deletions
+7 -5
View File
@@ -5,6 +5,8 @@
#ifndef _LIBSYS_SYSCALLS_H
#define _LIBSYS_SYSCALLS_H
/* this file shouldn't be in the public folder! */
#include <ktypes.h>
#include <types.h>
#include <defines.h>
@@ -25,14 +27,14 @@ int sys_null();
int sys_mount(const char *path, const char *device, const char *fs_name, void *args);
int sys_unmount(const char *path);
int sys_sync();
int sys_open(const char *path, stream_type st, int omode);
int sys_close(int fd);
int sys_fsync(int fd);
int sys_create(const char *path, int omode, int perms);
int sys_open(const char *path, int omode);
int sys_close(int fd);
ssize_t sys_read(int fd, void *buf, off_t pos, size_t len);
ssize_t sys_write(int fd, const void *buf, off_t pos, size_t len);
int sys_seek(int fd, off_t pos, int seek_type);
int sys_ioctl(int fd, ulong op, void *buf, size_t length);
int sys_create(const char *path, stream_type stream_type);
int sys_unlink(const char *path);
int sys_rename(const char *oldpath, const char *newpath);
int sys_rstat(const char *path, struct stat *stat);
@@ -42,11 +44,11 @@ char *sys_getcwd(char* buf, size_t size);
int sys_setcwd(const char* path);
int sys_dup(int fd);
int sys_dup2(int ofd, int nfd);
int sys_getrlimit(int resource, struct rlimit * rlp);
int sys_setrlimit(int resource, const struct rlimit * rlp);
bigtime_t sys_system_time();
int sys_snooze(bigtime_t time);
int sys_getrlimit(int resource, struct rlimit * rlp);
int sys_setrlimit(int resource, const struct rlimit * rlp);
/* sem functions */
sem_id kern_create_sem(int count, const char *name);