Changeset efb1b830 in rtems for c/src/lib/libc/memfile.c


Ignore:
Timestamp:
02/10/99 17:04:54 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
9619ff3
Parents:
3165b4d3
Message:

Corrected multiple places the file size was not being properly updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libc/memfile.c

    r3165b4d3 refb1b830  
    146146{
    147147  IMFS_jnode_t   *the_jnode;
     148  int             status;
    148149
    149150  the_jnode = iop->file_info;
    150151
    151   return IMFS_memfile_write( the_jnode, iop->offset, buffer, count );
     152  status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count );
     153  iop->size = the_jnode->info.file.size;
     154
     155  return status;
    152156}
    153157
     
    192196    set_errno_and_return_minus_one( ENOSPC );
    193197
    194   return 0;
     198  iop->size = the_jnode->info.file.size;
     199  return iop->offset;
    195200}
    196201
     
    232237
    233238  the_jnode->info.file.size = length;
     239  iop->size = the_jnode->info.file.size;
    234240
    235241  IMFS_update_atime( the_jnode );
Note: See TracChangeset for help on using the changeset viewer.