From 61b8f5f2a7811e667ec5cf1fc9a58f06c43ee23f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 2 Jul 2004 00:40:39 +0000 Subject: [PATCH] Fixed some return types. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8255 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/drivers/fs_interface.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/headers/os/drivers/fs_interface.h b/headers/os/drivers/fs_interface.h index 8ce87611f1..e64eae0fd8 100644 --- a/headers/os/drivers/fs_interface.h +++ b/headers/os/drivers/fs_interface.h @@ -70,7 +70,7 @@ typedef struct file_system_info { status_t (*ioctl)(fs_volume fs, fs_vnode v, fs_cookie cookie, ulong op, void *buffer, size_t length); status_t (*fsync)(fs_volume fs, fs_vnode v); - status_t (*read_link)(fs_volume fs, fs_vnode link, char *buffer, size_t bufferSize); + ssize_t (*read_link)(fs_volume fs, fs_vnode link, char *buffer, size_t bufferSize); status_t (*write_link)(fs_volume fs, fs_vnode link, char *toPath); status_t (*create_symlink)(fs_volume fs, fs_vnode dir, const char *name, const char *path, int mode); @@ -87,8 +87,8 @@ typedef struct file_system_info { status_t (*open)(fs_volume fs, fs_vnode v, int openMode, fs_cookie *_cookie); status_t (*close)(fs_volume fs, fs_vnode v, fs_cookie cookie); status_t (*free_cookie)(fs_volume fs, fs_vnode v, fs_cookie cookie); - ssize_t (*read)(fs_volume fs, fs_vnode v, fs_cookie cookie, off_t pos, void *buffer, size_t *length); - ssize_t (*write)(fs_volume fs, fs_vnode v, fs_cookie cookie, off_t pos, const void *buffer, size_t *length); + status_t (*read)(fs_volume fs, fs_vnode v, fs_cookie cookie, off_t pos, void *buffer, size_t *length); + status_t (*write)(fs_volume fs, fs_vnode v, fs_cookie cookie, off_t pos, const void *buffer, size_t *length); /* directory operations */ status_t (*create_dir)(fs_volume fs, fs_vnode parent, const char *name, int perms, vnode_id *_newVnodeID); @@ -111,8 +111,8 @@ typedef struct file_system_info { status_t (*open_attr)(fs_volume fs, fs_vnode file, const char *name, int openMode, fs_cookie *_cookie); status_t (*close_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie); status_t (*free_attr_cookie)(fs_volume fs, fs_vnode file, fs_cookie cookie); - ssize_t (*read_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie, off_t pos, void *buffer, size_t *len); - ssize_t (*write_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie, off_t pos, const void *buffer, size_t *len); + status_t (*read_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie, off_t pos, void *buffer, size_t *length); + status_t (*write_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie, off_t pos, const void *buffer, size_t *length); status_t (*read_attr_stat)(fs_volume fs, fs_vnode file, fs_cookie cookie, struct stat *stat); status_t (*write_attr_stat)(fs_volume fs, fs_vnode file, fs_cookie cookie, const struct stat *stat, int statMask);