Ignore:
Timestamp:
Nov 21, 2013, 1:11:08 AM (12 years ago)
Author:
bird
Message:

kmk/WindowsNT: Avoiding unnecessary stat() calls. Reimplemented stat(), lstat(), fstat(), opendir(), readdir(), and closedir() using native NT APIs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/config.h.win

    r2592 r2702  
    273273
    274274/* Define to 1 if you have the <sys/stat.h> header file. */
    275 /* #define HAVE_SYS_STAT_H 1 */
     275#define HAVE_SYS_STAT_H 1
    276276
    277277/* Define to 1 if you have the <sys/timeb.h> header file. */
     
    384384
    385385/* Define if struct stat contains a nanoseconds field */
    386 /* #undef ST_MTIM_NSEC */
     386#define ST_MTIM_NSEC tv_nsec
    387387
    388388/* Define to 1 on System V Release 4. */
     
    523523#endif
    524524
    525 /* bird hacks - similar in mscfakes.h */
    526 #include <sys/stat.h>
     525/* bird stat hacks. */
    527526#include <io.h>
    528527#include <direct.h>
    529 #ifndef STAT_REDEFINED_ALREADY
    530 # define STAT_REDEFINED_ALREADY
    531 # undef stat
    532 # define stat(_path, _st) bird_w32_stat(_path, _st)
    533 extern int bird_w32_stat(const char *, struct stat *);
    534 #endif
     528#include "nt/ntstat.h"
     529
     530/* bird dirent hack. */
     531#define _DIRENT_H /* see w32/dirent.h */
     532#include "nt/ntdir.h"
     533#define _DIRENT_HAVE_D_NAMLEN 1
     534#define _DIRENT_HAVE_D_TYPE   1
     535
    535536
    536537/* cygwin sucks to much in one end or the other. */
Note: See TracChangeset for help on using the changeset viewer.