Changeset 2579 for branches/libc-0.6


Ignore:
Timestamp:
Mar 8, 2006, 1:03:46 AM (19 years ago)
Author:
bird
Message:

#49: Fixed stat backend so ctime is set, and made fstat, lstat and stat convert birthtime too.

Location:
branches/libc-0.6/src/emx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/ChangeLog.LIBC

    r2577 r2579  
    552006-03-07: knut st. osmundsen <bird-gccos2-spam@anduin.net>
    66    - libc:
     7        o #49: Fixed stat backend so ctime is set, and made fstat, lstat and stat convert birthtime too.
    78        o #61: Fixed incorrect ENOENT errno on symlink when it should return EEXIST.
    89       
  • branches/libc-0.6/src/emx/src/lib/io/fstat.c

    r1519 r2579  
    2121      _loc2gmt (&buffer->st_mtime, -1);
    2222      _loc2gmt (&buffer->st_ctime, -1);
     23      _loc2gmt (&buffer->st_birthtime, -1);
    2324    }
    2425  else
  • branches/libc-0.6/src/emx/src/lib/io/lstat.c

    r2254 r2579  
    5050        _loc2gmt(&buffer->st_mtime, -1);
    5151        _loc2gmt(&buffer->st_ctime, -1);
     52        _loc2gmt(&buffer->st_birthtime, -1);
    5253        LIBCLOG_RETURN_INT(0);
    5354    }
  • branches/libc-0.6/src/emx/src/lib/io/stat.c

    r2254 r2579  
    2121        _loc2gmt(&buffer->st_mtime, -1);
    2222        _loc2gmt(&buffer->st_ctime, -1);
     23        _loc2gmt(&buffer->st_birthtime, -1);
    2324        LIBCLOG_RETURN_INT(rc);
    2425    }
  • branches/libc-0.6/src/emx/src/lib/sys/b_fsNativeFileStat.c

    r2522 r2579  
    138138     */
    139139    /* Times: FAT might not return create and access time. */
    140     pStat->st_mtime = pStat->st_mtime = _sys_p2t(info.fsts4.ftimeLastWrite, info.fsts4.fdateLastWrite);
     140    pStat->st_mtime = pStat->st_ctime = _sys_p2t(info.fsts4.ftimeLastWrite, info.fsts4.fdateLastWrite);
    141141    if (   FTIMEZEROP(info.fsts4.ftimeCreation)
    142142        && FDATEZEROP(info.fsts4.fdateCreation))
Note: See TracChangeset for help on using the changeset viewer.