Changeset 51c18676 in rtems


Ignore:
Timestamp:
Jul 13, 2005, 2:19:30 AM (15 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
d8bc48b4
Parents:
fb875a8
Message:

Pass along errno from failed ftruncate().

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rfb875a8 r51c18676  
     12005-07-08      Eric Norum <norume@aps.anl.gov>
     2
     3    * libcsupport/src/open.c: Pass along errno from failed ftruncate().
     4
    152005-07-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
    26
  • cpukit/libcsupport/src/open.c

    rfb875a8 r51c18676  
    175175    rc = ftruncate( iop - rtems_libio_iops, 0 );
    176176    if ( rc ) {
     177      if(errno) rc = errno;
    177178      close( iop - rtems_libio_iops );
    178179      /* those are released by close(): */
Note: See TracChangeset for help on using the changeset viewer.