- Timestamp:
- Nov 1, 2016, 11:06:08 PM (9 years ago)
- Location:
- trunk/src/lib/nt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/fts-nt.c
r2990 r2992 95 95 static FTSENT *fts_sort(FTS *, FTSENT *, size_t); 96 96 static int fts_stat(FTS *, FTSENT *, int, HANDLE); 97 static int 97 static int fts_process_stats(FTSENT *, BirdStat_T const *); 98 98 99 99 #define ISDOT(a) (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2]))) … … 127 127 128 128 FTS * FTSCALL 129 fts_open(char * const *argv, int options,129 nt_fts_open(char * const *argv, int options, 130 130 int (*compar)(const FTSENT * const *, const FTSENT * const *)) 131 131 { … … 271 271 272 272 int FTSCALL 273 fts_close(FTS *sp)273 nt_fts_close(FTS *sp) 274 274 { 275 275 FTSENT *freep, *p; … … 323 323 324 324 FTSENT * FTSCALL 325 fts_read(FTS *sp)325 nt_fts_read(FTS *sp) 326 326 { 327 327 FTSENT *p, *tmp; … … 498 498 /* ARGSUSED */ 499 499 int FTSCALL 500 fts_set(FTS *sp, FTSENT *p, int instr)500 nt_fts_set(FTS *sp, FTSENT *p, int instr) 501 501 { 502 502 if (instr != 0 && instr != FTS_AGAIN && instr != FTS_FOLLOW && … … 510 510 511 511 FTSENT * FTSCALL 512 fts_children(FTS *sp, int instr)512 nt_fts_children(FTS *sp, int instr) 513 513 { 514 514 FTSENT *p; … … 584 584 585 585 void FTSCALL 586 fts_set_clientptr(FTS *sp, void *clientptr)586 nt_fts_set_clientptr(FTS *sp, void *clientptr) 587 587 { 588 588 -
trunk/src/lib/nt/fts-nt.h
r2989 r2992 147 147 extern "C" { 148 148 #endif 149 FTSENT *FTSCALL fts_children(FTS *, int); 150 int FTSCALL fts_close(FTS *); 151 void *FTSCALL fts_get_clientptr(FTS *); 149 150 FTSENT *FTSCALL nt_fts_children(FTS *, int); 151 int FTSCALL nt_fts_close(FTS *); 152 void *FTSCALL nt_fts_get_clientptr(FTS *); 152 153 #define fts_get_clientptr(fts) ((fts)->fts_clientptr) 153 FTS *FTSCALL fts_get_stream(FTSENT *);154 FTS *FTSCALL nt_fts_get_stream(FTSENT *); 154 155 #define fts_get_stream(ftsent) ((ftsent)->fts_fts) 155 FTS *FTSCALL fts_open(char * const *, int,156 FTS *FTSCALL nt_fts_open(char * const *, int, 156 157 int (FTSCALL*)(const FTSENT * const *, const FTSENT * const *)); 157 FTSENT *FTSCALL fts_read(FTS *); 158 int FTSCALL fts_set(FTS *, FTSENT *, int); 159 void FTSCALL fts_set_clientptr(FTS *, void *); 158 FTSENT *FTSCALL nt_fts_read(FTS *); 159 int FTSCALL nt_fts_set(FTS *, FTSENT *, int); 160 void FTSCALL nt_fts_set_clientptr(FTS *, void *); 161 162 /* API mappings. */ 163 #define fts_children(a_pFts, a_iInstr) nt_fts_children(a_pFts, a_iInstr) 164 #define fts_close(a_pFts) nt_fts_close(a_pFts) 165 #define fts_open(a_papszArgs, a_fOptions, a_pfnCompare) nt_fts_open(a_papszArgs, a_fOptions, a_pfnCompare) 166 #define fts_read(a_pFts) nt_fts_read(a_pFts) 167 #define fts_set(a_pFts, a_pFtsEntry, a_iInstr) nt_fts_set(a_pFts, a_pFtsEntry, a_iInstr) 168 #define fts_set_clientptr(a_pFts, a_pvUser) nt_fts_set_clientptr(a_pFts, a_pvUser) 169 160 170 #ifdef __cplusplus 161 171 }
Note:
See TracChangeset
for help on using the changeset viewer.