Changeset 2998 for trunk/src/lib/nt/fts-nt.h
- Timestamp:
- Nov 5, 2016, 8:37:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/fts-nt.h
r2997 r2998 67 67 char *fts_path; /* path for this descent */ 68 68 size_t fts_pathlen; /* sizeof(path) */ 69 wchar_t *fts_wcspath; /* NT: UTF-16 path for this descent. */ 70 size_t fts_cwcpath; /* NT: size of fts_wcspath buffer */ 69 71 size_t fts_nitems; /* elements in the sort array */ 70 72 int (FTSCALL *fts_compar) /* compare function */ … … 85 87 #define FTS_NAMEONLY 0x100 /* (private) child names only */ 86 88 #define FTS_STOP 0x200 /* (private) unrecoverable error */ 89 #define FTS_NO_ANSI 0x40000000 /* NT: No ansi name or access path. */ 87 90 int fts_options; /* fts_open options, global flags */ 88 91 void *fts_clientptr; /* thunk for sort function */ … … 97 100 void *fts_pointer; /* local address value */ 98 101 char *fts_accpath; /* access path */ 102 wchar_t *fts_wcsaccpath; /* NT: UTF-16 access path */ 99 103 char *fts_path; /* root path */ 104 wchar_t *fts_wcspath; /* NT: UTF-16 root path */ 100 105 int fts_errno; /* errno for this node */ 101 106 fts_fd_t fts_symfd; /* NT: Normally -1; -2 we followed this symlinked dir */ 102 107 fts_fd_t fts_dirfd; /* NT: Handle to the directory (NT_FTS_)INVALID_HANDLE_VALUE if not valid */ 103 108 size_t fts_pathlen; /* strlen(fts_path) */ 109 size_t fts_cwcpath; /* NT: length of fts_wcspath. */ 104 110 size_t fts_namelen; /* strlen(fts_name) */ 111 size_t fts_cwcname; /* NT: length of fts_wcsname. */ 105 112 113 fts_nlink_t fts_nlink; /* link count */ 106 114 fts_ino_t fts_ino; /* inode */ 107 115 fts_dev_t fts_dev; /* device */ 108 fts_nlink_t fts_nlink; /* link count */109 116 110 117 #define FTS_ROOTPARENTLEVEL -1 … … 141 148 struct stat *fts_statp; /* stat(2) information */ 142 149 char *fts_name; /* file name */ 150 wchar_t *fts_wcsname; /* NT: UTF-16 file name. */ 143 151 FTS *fts_fts; /* back pointer to main FTS */ 144 152 BirdStat_T fts_stat; /* NT: We always got stat info. */ … … 156 164 FTS *FTSCALL nt_fts_get_stream(FTSENT *); 157 165 #define fts_get_stream(ftsent) ((ftsent)->fts_fts) 158 FTS *FTSCALL nt_fts_open(char * const *, int, 159 166 FTS *FTSCALL nt_fts_open(char * const *, int, int (FTSCALL*)(const FTSENT * const *, const FTSENT * const *)); 167 FTS *FTSCALL nt_fts_openw(wchar_t * const *, int, int (FTSCALL*)(const FTSENT * const *, const FTSENT * const *)); 160 168 FTSENT *FTSCALL nt_fts_read(FTS *); 161 169 int FTSCALL nt_fts_set(FTS *, FTSENT *, int);
Note:
See TracChangeset
for help on using the changeset viewer.