Changeset 2344 for zzuf/trunk/src/zzuf.c
- Timestamp:
- May 19, 2008, 1:25:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/zzuf.c
r2343 r2344 170 170 #endif 171 171 #define OPTSTR "+" OPTSTR_REGEX OPTSTR_RLIMIT_MEM OPTSTR_RLIMIT_CPU \ 172 "Ab:B:C:dD:f:F:i l:mnp:P:qr:R:s:St:vxhV"172 "Ab:B:C:dD:f:F:ij:l:mnp:P:qr:R:s:St:vxhV" 173 173 #define MOREINFO "Try `%s --help' for more information.\n" 174 174 int option_index = 0; … … 189 189 #endif 190 190 { "fuzzing", 1, NULL, 'f' }, 191 { "max-forks", 1, NULL, 'F' },192 191 { "stdin", 0, NULL, 'i' }, 193 192 #if defined HAVE_REGEX_H 194 193 { "include", 1, NULL, 'I' }, 195 194 #endif 195 { "jobs", 1, NULL, 'j' }, 196 196 { "list", 1, NULL, 'l' }, 197 197 { "md5", 0, NULL, 'm' }, … … 260 260 opts->fuzzing = myoptarg; 261 261 break; 262 case 'F': /* --max-forks */263 opts->maxchild = atoi(myoptarg) > 1 ? atoi(myoptarg) : 1;264 break;262 case 'F': 263 fprintf(stderr, "%s: `-F' is deprecated, use `-j'\n", argv[0]); 264 return EXIT_FAILURE; 265 265 case 'i': /* --stdin */ 266 266 setenv("ZZUF_STDIN", "1", 1); … … 278 278 break; 279 279 #endif 280 case 'j': /* --jobs */ 281 opts->maxchild = atoi(myoptarg) > 1 ? atoi(myoptarg) : 1; 282 break; 280 283 case 'l': /* --list */ 281 284 opts->list = myoptarg; … … 1161 1164 printf("Usage: zzuf [-AdimnqSvx] [-s seed|-s start:stop] [-r ratio|-r min:max]\n"); 1162 1165 #endif 1163 printf(" [-f fuzzing] [-D delay] [- F forks] [-C crashes] [-B bytes]\n");1166 printf(" [-f fuzzing] [-D delay] [-j jobs] [-C crashes] [-B bytes]\n"); 1164 1167 printf(" [-t seconds] "); 1165 1168 #if defined HAVE_SETRLIMIT && defined ZZUF_RLIMIT_CPU … … 1194 1197 #endif 1195 1198 printf(" -f, --fuzzing <mode> use fuzzing mode <mode> ([xor] set unset)\n"); 1196 printf(" -F, --max-forks <n> number of concurrent children (default 1)\n");1197 1199 printf(" -i, --stdin fuzz standard input\n"); 1198 1200 #if defined HAVE_REGEX_H 1199 1201 printf(" -I, --include <regex> only fuzz files matching <regex>\n"); 1200 1202 #endif 1203 printf(" -j, --jobs <n> number of simultaneous jobs (default 1)\n"); 1201 1204 printf(" -l, --list <list> only fuzz Nth descriptor with N in <list>\n"); 1202 1205 printf(" -m, --md5 compute the output's MD5 hash\n");
Note: See TracChangeset
for help on using the changeset viewer.