Changeset 2991 in kBuild for trunk/src/lib/nt/tstNtFts.c
- Timestamp:
- Nov 1, 2016 9:56:13 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/tstNtFts.c
r2989 r2991 4 4 * Header Files * 5 5 *********************************************************************************************************************************/ 6 #include "fts-nt.h" 6 #ifndef USE_OLD_FTS 7 # include "fts-nt.h" 8 #else 9 # include "kmkbuiltin/ftsfake.h" 10 #endif 7 11 #include <stdlib.h> 8 12 #include <stdio.h> … … 34 38 " -x, --one-file-system\n" 35 39 " FTS_XDEV\n" 40 " -q, --quiet\n" 41 " Quiet operation, no output.\n" 42 " -v, --verbose\n" 43 " Verbose operation (default).\n" 36 44 ); 37 45 return 0; … … 87 95 else if (strcmp(pszArg, "one-file-system") == 0) 88 96 chOpt = 'x'; 97 else if (strcmp(pszArg, "quiet") == 0) 98 chOpt = 'q'; 99 else if (strcmp(pszArg, "verbose") == 0) 100 chOpt = 'v'; 89 101 else 90 102 { … … 92 104 return 2; 93 105 } 106 pszArg = ""; 94 107 } 95 108 do … … 132 145 break; 133 146 147 case 'q': 148 cVerbosity = 0; 149 break; 134 150 case 'v': 135 151 cVerbosity++; … … 146 162 papszFtsArgs[cFtsArgs++] = pszArg; 147 163 } 164 165 #ifdef USE_OLD_FTS 166 if (papszFtsArgs[0] == NULL) 167 { 168 fprintf(stderr, "Nothing to do\n"); 169 return 1; 170 } 171 #endif 148 172 149 173 /* … … 181 205 } 182 206 183 printf("%8s %s\n", pszState, pFtsEnt->fts_accpath); 207 if (cVerbosity > 0) 208 printf("%8s %s\n", pszState, pFtsEnt->fts_accpath); 184 209 if ( pFtsEnt->fts_info == FTS_SL 185 210 && pFtsEnt->fts_number == 0
Note:
See TracChangeset
for help on using the changeset viewer.