From a4a54fa8adc031801e1e44436ce7fc895a8f5d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 15 Mar 2005 05:09:56 +0000 Subject: [PATCH] read/write() return type was still wrong (ssize_t instead of status_t). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11753 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/fs/bootfs.c | 4 ++-- src/kernel/core/fs/rootfs.c | 13 ++++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/kernel/core/fs/bootfs.c b/src/kernel/core/fs/bootfs.c index 1ba6bcf718..e72d2b19a7 100755 --- a/src/kernel/core/fs/bootfs.c +++ b/src/kernel/core/fs/bootfs.c @@ -655,7 +655,7 @@ bootfs_fsync(fs_volume _fs, fs_vnode _v) } -static ssize_t +static status_t bootfs_read(fs_volume _fs, fs_vnode _v, fs_cookie _cookie, off_t pos, void *buffer, size_t *_length) { struct bootfs *fs = _fs; @@ -704,7 +704,7 @@ err: } -static ssize_t +static status_t bootfs_write(fs_volume fs, fs_vnode v, fs_cookie cookie, off_t pos, const void *buf, size_t *len) { TRACE(("bootfs_write: vnode %p, cookie %p, pos 0x%Lx , len 0x%lx\n", v, cookie, pos, *len)); diff --git a/src/kernel/core/fs/rootfs.c b/src/kernel/core/fs/rootfs.c index b9a6b67b79..6429718b23 100755 --- a/src/kernel/core/fs/rootfs.c +++ b/src/kernel/core/fs/rootfs.c @@ -556,17 +556,20 @@ rootfs_fsync(fs_volume _fs, fs_vnode _v) } -static ssize_t -rootfs_read(fs_volume _fs, fs_vnode _v, fs_cookie _cookie, off_t pos, void *buf, size_t *len) +static status_t +rootfs_read(fs_volume _fs, fs_vnode _vnode, fs_cookie _cookie, + off_t pos, void *buffer, size_t *_length) { return EINVAL; } -static ssize_t -rootfs_write(fs_volume fs, fs_vnode v, fs_cookie cookie, off_t pos, const void *buf, size_t *len) +static status_t +rootfs_write(fs_volume fs, fs_vnode vnode, fs_cookie cookie, + off_t pos, const void *buffer, size_t *_length) { - TRACE(("rootfs_write: vnode %p, cookie %p, pos 0x%Lx , len 0x%lx\n", v, cookie, pos, *len)); + TRACE(("rootfs_write: vnode %p, cookie %p, pos 0x%Lx , len 0x%lx\n", + vnode, cookie, pos, *len)); return EPERM; }