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.
This commit is contained in:
Joel Sherrill
2002-09-14 21:01:39 +00:00
parent aebde08e3b
commit d32359a778
7 changed files with 34 additions and 18 deletions
+8
View File
@@ -1,3 +1,11 @@
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.
2002-07-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* wrapup/Makefile.am: Remove.
+2 -1
View File
@@ -20,6 +20,7 @@
#include <rtems/libio_.h>
#include "fat.h"
#include "fat_fat_operations.h"
/* _fat_block_read --
* This function reads 'count' bytes from device filesystem is mounted on,
@@ -692,4 +693,4 @@ fat_fat32_update_fsinfo_sector(
return RC_OK;
}
+4 -4
View File
@@ -130,7 +130,7 @@ int device_close(
* This handler maps a read() operation onto rtems_io_read().
*/
int device_read(
ssize_t device_read(
rtems_libio_t *iop,
void *buffer,
unsigned32 count
@@ -158,7 +158,7 @@ int device_read(
if ( status )
return rtems_deviceio_errno(status);
return args.bytes_moved;
return (ssize_t) args.bytes_moved;
}
/*
@@ -167,7 +167,7 @@ int device_read(
* This handler maps a write() operation onto rtems_io_write().
*/
int device_write(
ssize_t device_write(
rtems_libio_t *iop,
const void *buffer,
unsigned32 count
@@ -195,7 +195,7 @@ int device_write(
if ( status )
return rtems_deviceio_errno(status);
return args.bytes_moved;
return (ssize_t) args.bytes_moved;
}
/*
+5 -5
View File
@@ -395,7 +395,7 @@ int imfs_dir_close(
rtems_libio_t *iop /* IN */
);
int imfs_dir_read(
ssize_t imfs_dir_read(
rtems_libio_t *iop, /* IN */
void *buffer, /* IN */
unsigned32 count /* IN */
@@ -439,13 +439,13 @@ int memfile_close(
rtems_libio_t *iop /* IN */
);
int memfile_read(
ssize_t memfile_read(
rtems_libio_t *iop, /* IN */
void *buffer, /* IN */
unsigned32 count /* IN */
);
int memfile_write(
ssize_t memfile_write(
rtems_libio_t *iop, /* IN */
const void *buffer, /* IN */
unsigned32 count /* IN */
@@ -478,13 +478,13 @@ int device_close(
rtems_libio_t *iop /* IN */
);
int device_read(
ssize_t device_read(
rtems_libio_t *iop, /* IN */
void *buffer, /* IN */
unsigned32 count /* IN */
);
int device_write(
ssize_t device_write(
rtems_libio_t *iop, /* IN */
const void *buffer, /* IN */
unsigned32 count /* IN */
+1 -1
View File
@@ -72,7 +72,7 @@ int imfs_dir_open(
* size of a directory entry.
*/
int imfs_dir_read(
ssize_t imfs_dir_read(
rtems_libio_t *iop,
void *buffer,
unsigned32 count
+7
View File
@@ -30,6 +30,13 @@ int IMFS_fchmod(
#if defined(RTEMS_POSIX_API)
uid_t st_uid;
#endif
int IMFS_memfile_write(
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
);
jnode = loc->node_access;
+7 -7
View File
@@ -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,