From 362d99e7159523d0b8f949ceb87d43e441bdd22b Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 25 May 2007 05:06:02 +0000 Subject: [PATCH] Added fssh_read/write() implementation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21232 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/unistd.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/tools/fs_shell/unistd.cpp b/src/tools/fs_shell/unistd.cpp index 2569fc6e46..c4b4ac9207 100644 --- a/src/tools/fs_shell/unistd.cpp +++ b/src/tools/fs_shell/unistd.cpp @@ -202,6 +202,13 @@ fssh_ioctl(int fd, unsigned long op, ...) } +fssh_ssize_t +fssh_read(int fd, void *buffer, fssh_size_t count) +{ + return read(fd, buffer, count); +} + + fssh_ssize_t fssh_read_pos(int fd, fssh_off_t pos, void *buffer, fssh_size_t count) { @@ -209,6 +216,13 @@ fssh_read_pos(int fd, fssh_off_t pos, void *buffer, fssh_size_t count) } +fssh_ssize_t +fssh_write(int fd, const void *buffer, fssh_size_t count) +{ + return write(fd, buffer, count); +} + + fssh_ssize_t fssh_write_pos(int fd, fssh_off_t pos, const void *buffer, fssh_size_t count) {