diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-03 19:13:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-03 19:13:25 +0000 |
commit | b637dbbf21b53bbd095b4389113f636c0db3b023 (patch) | |
tree | f44fb3fea85eff4e5404bf11784adc843d61aa06 /cpukit/libcsupport/include/rtems | |
parent | 2010-07-02 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-b637dbbf21b53bbd095b4389113f636c0db3b023.tar.bz2 |
2010-07-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/include/rtems/libio.h, libfs/src/defaults/default_read.c,
libfs/src/defaults/default_readlink.c,
libfs/src/rfs/rtems-rfs-rtems.c: Correct types and prototypes to
eliminate warnings.
Diffstat (limited to 'cpukit/libcsupport/include/rtems')
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index 946cce147c..f3f9c2ea38 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -387,7 +387,7 @@ int rtems_filesystem_default_close( * system call support which is provided by a file system * implementation. */ -size_t rtems_filesystem_default_read( +ssize_t rtems_filesystem_default_read( rtems_libio_t *iop, void *buffer, size_t count @@ -659,10 +659,10 @@ typedef int (*rtems_filesystem_symlink_t)( * This type defines the interface to the readlink(2) system call * support which is provided by a file system implementation. */ -typedef int (*rtems_filesystem_readlink_t)( +typedef ssize_t (*rtems_filesystem_readlink_t)( rtems_filesystem_location_info_t *loc, /* IN */ char *buf, /* OUT */ - size_t bufsize + size_t bufsize ); /** @@ -1012,10 +1012,10 @@ int rtems_filesystem_default_symlink( * @brief Provides a defualt routine for filesystem * implementation of a readlink command. */ -int rtems_filesystem_default_readlink( +ssize_t rtems_filesystem_default_readlink( rtems_filesystem_location_info_t *loc, /* IN */ char *buf, /* OUT */ - size_t bufsize + size_t bufsize ); /** @@ -1165,16 +1165,16 @@ typedef int (*rtems_libio_close_t)( int fd ); -typedef int (*rtems_libio_read_t)( +typedef ssize_t (*rtems_libio_read_t)( int fd, void *buffer, - uint32_t count + size_t count ); -typedef int (*rtems_libio_write_t)( +typedef ssize_t (*rtems_libio_write_t)( int fd, const void *buffer, - uint32_t count + size_t count ); typedef int (*rtems_libio_ioctl_t)( |