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
This commit is contained in:
Axel Dörfler 2005-03-15 05:09:56 +00:00
parent a45de3956f
commit a4a54fa8ad
2 changed files with 10 additions and 7 deletions

View File

@ -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));

View File

@ -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;
}