- Timestamp:
- Jan 14, 2007, 6:47:01 PM (14 years ago)
- Location:
- zzuf/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/doc/zzuf.1
r1666 r1667 3 3 zzuf \- multiple purpose fuzzer 4 4 .SH SYNOPSIS 5 \fBzzuf\fR [\fB\-AcdiMnqS x\fR] [\fB\-r\fR \fIratio\fR] [\fB\-s\fR \fIseed\fR|\fB\-s\fR \fIstart:stop\fR]6 .br 7 [\fB\-D\fR \fIdelay\fR] [\fB\-F\fR \fIforks\fR] [\fB\-C\fR \fIcrashes\fR] [\fB\-B\fR \fIbytes\fR]8 .br 9 [\fB\-T\fR \fIseconds\fR] [\fB\-M\fR \fImegabytes\fR] [\fB\-P\fR \fIprotect\fR] [\fB\-R\fR \fIrefuse\fR]10 .br 11 [\fB\-I\fR \fIinclude\fR] [\fB\-E\fR \fIexclude\fR] [\fIPROGRAM\fR [\fB\-\-\fR] [\fIARGS\fR]...]5 \fBzzuf\fR [\fB\-AcdiMnqSvx\fR] [\fB\-r\fR \fIratio\fR] [\fB\-s\fR \fIseed\fR|\fB\-s\fR \fIstart:stop\fR] 6 .br 7 [\fB\-D\fR \fIdelay\fR] [\fB\-F\fR \fIforks\fR] [\fB\-C\fR \fIcrashes\fR] [\fB\-B\fR \fIbytes\fR] 8 .br 9 [\fB\-T\fR \fIseconds\fR] [\fB\-M\fR \fImegabytes\fR] [\fB\-P\fR \fIprotect\fR] [\fB\-R\fR \fIrefuse\fR] 10 .br 11 [\fB\-I\fR \fIinclude\fR] [\fB\-E\fR \fIexclude\fR] [\fIPROGRAM\fR [\fB\-\-\fR] [\fIARGS\fR]...] 12 12 .br 13 13 \fBzzuf \-h\fR | \fB\-\-help\fR … … 208 208 situations. See also the \fB\-B\fR flag. 209 209 .TP 210 \fB\-v\fR, \fB\-\-verbose\fR 211 Print information during the run, such as the current seed, what processes 212 get run, their exit status, etc. 213 .TP 210 214 \fB\-x\fR, \fB\-\-check\-exit\fR 211 215 Report processes that exit with a non-zero status. By default only processes -
zzuf/trunk/src/zzuf.c
r1666 r1667 87 87 static int md5 = 0; 88 88 static int checkexit = 0; 89 static int verbose = 0; 89 90 static int maxmem = -1; 90 91 static int64_t maxtime = -1; … … 113 114 for(;;) 114 115 { 115 # define OPTSTR "AB:cC:dD:E:F:iI:mM:nP:qr:R:s:ST: xhV"116 # define OPTSTR "AB:cC:dD:E:F:iI:mM:nP:qr:R:s:ST:vxhV" 116 117 # ifdef HAVE_GETOPT_LONG 117 118 # define MOREINFO "Try `%s --help' for more information.\n" … … 140 141 { "signal", 0, NULL, 'S' }, 141 142 { "max-time", 1, NULL, 'T' }, 143 { "verbose", 0, NULL, 'v' }, 142 144 { "check-exit", 0, NULL, 'x' }, 143 145 { "help", 0, NULL, 'h' }, … … 232 234 case 'x': /* --check-exit */ 233 235 checkexit = 1; 236 break; 237 case 'v': /* --verbose */ 238 verbose = 1; 234 239 break; 235 240 case 'h': /* --help */ … … 537 542 && maxbytes >= 0 && child_list[i].bytes > maxbytes) 538 543 { 539 fprintf(stdout, "zzuf[seed=%i]: data exceeded, sending SIGTERM\n",544 fprintf(stdout, "zzuf[seed=%i]: data output exceeded, sending SIGTERM\n", 540 545 child_list[i].seed); 541 546 kill(child_list[i].pid, SIGTERM); … … 548 553 && now > child_list[i].date + maxtime) 549 554 { 550 fprintf(stdout, "zzuf[seed=%i]: time exceeded, sending SIGTERM\n",555 fprintf(stdout, "zzuf[seed=%i]: running time exceeded, sending SIGTERM\n", 551 556 child_list[i].seed); 552 557 kill(child_list[i].pid, SIGTERM); … … 764 769 static void usage(void) 765 770 { 766 printf("Usage: zzuf [-AcdimnqS x] [-r ratio] [-s seed | -s start:stop]\n");767 printf(" [-D delay] [-F forks] [-C crashes] [-B bytes]\n");768 printf(" [-T seconds] [-M bytes] [-P protect] [-R refuse]\n");769 printf(" [-I include] [-E exclude] [PROGRAM [--] [ARGS]...]\n");771 printf("Usage: zzuf [-AcdimnqSvx] [-r ratio] [-s seed | -s start:stop]\n"); 772 printf(" [-D delay] [-F forks] [-C crashes] [-B bytes]\n"); 773 printf(" [-T seconds] [-M bytes] [-P protect] [-R refuse]\n"); 774 printf(" [-I include] [-E exclude] [PROGRAM [--] [ARGS]...]\n"); 770 775 # ifdef HAVE_GETOPT_LONG 771 776 printf(" zzuf -h | --help\n"); … … 800 805 printf(" -S, --signal prevent children from diverting crashing signals\n"); 801 806 printf(" -T, --max-time <n> kill children that run for more than <n> seconds\n"); 807 printf(" -v, --verbose print information during the run\n"); 802 808 printf(" -x, --check-exit report processes that exit with a non-zero status\n"); 803 809 printf(" -h, --help display this help and exit\n"); … … 825 831 printf(" -S prevent children from diverting crashing signals\n"); 826 832 printf(" -T <n> kill children that run for more than <n> seconds\n"); 833 printf(" -v print information during the run\n"); 827 834 printf(" -x report processes that exit with a non-zero status\n"); 828 835 printf(" -h display this help and exit\n");
Note: See TracChangeset
for help on using the changeset viewer.