summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/memfile.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-09-14 21:01:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-09-14 21:01:39 +0000
commitd32359a77870a330080ff22a67ab07b0aa2ff724 (patch)
treea514e916cc5a7bd251eb174d1dc76fe4b9357c46 /cpukit/libfs/src/imfs/memfile.c
parent2002-09-14 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-d32359a77870a330080ff22a67ab07b0aa2ff724.tar.bz2
2002-09-14 Joel Sherrill <joel@OARcorp.com>
* src/dosfs/fat.c, src/imfs/deviceio.c, src/imfs/imfs.h, src/imfs/imfs_directory.c, src/imfs/imfs_fchmod.c, src/imfs/memfile.c: Eliminated warnings. A lot of this focus was on changing read and write entry points to return ssize_t as read(2) and write(2) now do.
Diffstat (limited to '')
-rw-r--r--cpukit/libfs/src/imfs/memfile.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/libfs/src/imfs/memfile.c b/cpukit/libfs/src/imfs/memfile.c
index cfa37c20c6..711e0c0383 100644
--- a/cpukit/libfs/src/imfs/memfile.c
+++ b/cpukit/libfs/src/imfs/memfile.c
@@ -59,14 +59,14 @@ MEMFILE_STATIC block_p *IMFS_memfile_get_block_pointer(
int malloc_it
);
-MEMFILE_STATIC int IMFS_memfile_read(
+MEMFILE_STATIC ssize_t IMFS_memfile_read(
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
);
-MEMFILE_STATIC int IMFS_memfile_write(
+ssize_t IMFS_memfile_write( /* cannot be static as used in imfs_fchmod.c */
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
@@ -131,7 +131,7 @@ int memfile_close(
* This routine processes the read() system call.
*/
-int memfile_read(
+ssize_t memfile_read(
rtems_libio_t *iop,
void *buffer,
unsigned32 count
@@ -150,14 +150,14 @@ int memfile_read(
* This routine processes the write() system call.
*/
-int memfile_write(
+ssize_t memfile_write(
rtems_libio_t *iop,
const void *buffer,
unsigned32 count
)
{
IMFS_jnode_t *the_jnode;
- int status;
+ ssize_t status;
the_jnode = iop->file_info;
@@ -541,7 +541,7 @@ int IMFS_memfile_remove(
* read).
*/
-MEMFILE_STATIC int IMFS_memfile_read(
+MEMFILE_STATIC ssize_t IMFS_memfile_read(
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
@@ -691,7 +691,7 @@ MEMFILE_STATIC int IMFS_memfile_read(
* file pointed to by the_jnode. The file is extended as needed.
*/
-MEMFILE_STATIC int IMFS_memfile_write(
+MEMFILE_STATIC ssize_t IMFS_memfile_write(
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,