Ignore:
Timestamp:
Sep 16, 2006, 4:37:51 PM (19 years ago)
Author:
bird
Message:

tuning. libc is 1-2 seconds faster to load now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/w32/pathstuff.c

    r520 r526  
    234234}
    235235
     236#undef stat
    236237/*
    237238 * Workaround for directory names with trailing slashes.
     
    239240 */
    240241int
    241 stat(const char *path, struct stat *st)
    242 {
    243     int rc = _stat(path, (struct _stat *)st);
     242my_stat(const char *path, struct stat *st)
     243{
     244    int rc = stat(path, st);
    244245    if (    rc != 0
    245246        &&  errno == ENOENT
     
    255256            tmp[len_path + 1] = '\0';
    256257            errno = 0;
    257             rc = _stat(tmp, (struct _stat *)st);
     258            rc = stat(tmp, st);
    258259            if (    rc == 0
    259260                &&  !S_ISDIR(st->st_mode))
Note: See TracChangeset for help on using the changeset viewer.