summaryrefslogtreecommitdiffstats
path: root/c/src/lib
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-11-10 17:50:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-11-10 17:50:50 +0000
commita307f79f17b6f4a330728f01540c57115d4ec56a (patch)
tree4b3539b92518cf20d69ea874931a4a2b5daf235d /c/src/lib
parentSet return code to avoid spurious errors. (diff)
downloadrtems-a307f79f17b6f4a330728f01540c57115d4ec56a.tar.bz2
Fixed prototype
Diffstat (limited to 'c/src/lib')
-rw-r--r--c/src/lib/include/rtems/libio.h2
-rw-r--r--c/src/lib/libc/libio.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/include/rtems/libio.h b/c/src/lib/include/rtems/libio.h
index bde906c0f1..15c04a2b79 100644
--- a/c/src/lib/include/rtems/libio.h
+++ b/c/src/lib/include/rtems/libio.h
@@ -105,7 +105,7 @@ int __rtems_isatty(int _fd);
typedef struct {
int (*open)(const char *pathname, unsigned32 flag, unsigned32 mode);
int (*close)(int fd);
- int (*read)(int fd, void *buffer);
+ int (*read)(int fd, void *buffer, unsigned32 count);
int (*write)(int fd, const void *buffer, unsigned32 count);
int (*ioctl)(int fd, unsigned32 command, void *buffer);
int (*lseek)(int fd, rtems_libio_offset_t offset, int whence);
diff --git a/c/src/lib/libc/libio.h b/c/src/lib/libc/libio.h
index bde906c0f1..15c04a2b79 100644
--- a/c/src/lib/libc/libio.h
+++ b/c/src/lib/libc/libio.h
@@ -105,7 +105,7 @@ int __rtems_isatty(int _fd);
typedef struct {
int (*open)(const char *pathname, unsigned32 flag, unsigned32 mode);
int (*close)(int fd);
- int (*read)(int fd, void *buffer);
+ int (*read)(int fd, void *buffer, unsigned32 count);
int (*write)(int fd, const void *buffer, unsigned32 count);
int (*ioctl)(int fd, unsigned32 command, void *buffer);
int (*lseek)(int fd, rtems_libio_offset_t offset, int whence);