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) {