forked from Imagelibrary/rtems
2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/dosfs/msdos_file.c (msdos_file_read, msdos_file_write): Use '0' as initial value for ret instead of RC_OK. 2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * src/dosfs/msdos_conv.c: Remove isupper, islower, toupper, tolower (Unused).
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* src/dosfs/msdos_file.c (msdos_file_read, msdos_file_write):
|
||||
Use '0' as initial value for ret instead of RC_OK.
|
||||
|
||||
2003-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* src/dosfs/msdos_conv.c: Remove isupper, islower, toupper, tolower
|
||||
(Unused).
|
||||
|
||||
2003-09-26 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
PR 492/filesystem
|
||||
|
||||
@@ -163,15 +163,6 @@ msdos_date_dos2unix(unsigned int dd, unsigned int dt)
|
||||
return seconds + lastseconds;
|
||||
}
|
||||
|
||||
/*
|
||||
* Cheezy macros to do case detection and conversion for the ascii
|
||||
* character set. DOESN'T work for ebcdic.
|
||||
*/
|
||||
#define isupper(c) (c >= 'A' && c <= 'Z')
|
||||
#define islower(c) (c >= 'a' && c <= 'z')
|
||||
#define toupper(c) (c & ~' ')
|
||||
#define tolower(c) (c | ' ')
|
||||
|
||||
static const u_char msdos_map[] = {
|
||||
/* 00 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
/* 08 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
||||
@@ -146,7 +146,7 @@ msdos_file_close(rtems_libio_t *iop)
|
||||
ssize_t
|
||||
msdos_file_read(rtems_libio_t *iop, void *buffer, unsigned32 count)
|
||||
{
|
||||
ssize_t ret = RC_OK;
|
||||
ssize_t ret = 0;
|
||||
rtems_status_code sc = RTEMS_SUCCESSFUL;
|
||||
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
|
||||
fat_file_fd_t *fat_fd = iop->file_info;
|
||||
@@ -179,7 +179,7 @@ msdos_file_read(rtems_libio_t *iop, void *buffer, unsigned32 count)
|
||||
ssize_t
|
||||
msdos_file_write(rtems_libio_t *iop,const void *buffer, unsigned32 count)
|
||||
{
|
||||
ssize_t ret = RC_OK;
|
||||
ssize_t ret = 0;
|
||||
rtems_status_code sc = RTEMS_SUCCESSFUL;
|
||||
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
|
||||
fat_file_fd_t *fat_fd = iop->file_info;
|
||||
|
||||
Reference in New Issue
Block a user