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

Optimized ftsfake.c for windows (similar things can be done for OS/2, if we care).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/ntdir.h

    r2702 r2708  
    3737typedef struct dirent
    3838{
    39     /** File ID if available. */
    40     unsigned __int64    d_ino;
    41     /** The file size. */
    42     unsigned __int64    d_size;
    43     /** The name type. */
    44     unsigned char       d_type;
    45     /** Qualifies the DT_LNK d_type value. */
    46     unsigned char       d_dirsymlink;
     39    /** Optional stat information.
     40     * Only provided if using birdDirOpenExtraInfo(). */
     41    BirdStat_T          d_stat;
    4742    /** The record length. */
    4843    unsigned __int16    d_reclen;
    4944    /** The name length. */
    5045    unsigned __int16    d_namlen;
     46    /** The name type. */
     47    unsigned char       d_type;
    5148    /** The name. */
    52     char                d_name[512 - 8 - 8 - 1 - 1 - 2 - 2];
     49    char                d_name[512 - sizeof(BirdStat_T) - 2 - 2 - 1];
    5350} BirdDirEntry_T;
     51
     52#define d_ino           d_stat.st_ino;
    5453
    5554/** @name d_type values.
     
    9897
    9998BirdDir_T      *birdDirOpen(const char *pszPath);
     99BirdDir_T      *birdDirOpenExtraInfo(const char *pszPath);
    100100BirdDirEntry_T *birdDirRead(BirdDir_T *pDir);
    101101long            birdDirTell(BirdDir_T *pDir);
Note: See TracChangeset for help on using the changeset viewer.