Changeset 1800


Ignore:
Timestamp:
Jul 10, 2007, 4:30:13 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Rename -T to -t. -T will be the CPU time limit.
Location:
zzuf/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/doc/zzuf.1

    r1798 r1800  
    77       [\fB\-f\fR \fIfuzzing\fR] [\fB\-D\fR \fIdelay\fR] [\fB\-F\fR \fIforks\fR] [\fB\-C\fR \fIcrashes\fR] [\fB\-B\fR \fIbytes\fR]
    88.br
    9        [\fB\-T\fR \fIseconds\fR] [\fB\-M\fR \fImegabytes\fR] [\fB\-P\fR \fIprotect\fR] [\fB\-R\fR \fIrefuse\fR]
     9       [\fB\-t\fR \fIseconds\fR] [\fB\-M\fR \fImegabytes\fR] [\fB\-P\fR \fIprotect\fR] [\fB\-R\fR \fIrefuse\fR]
    1010.br
    1111       [\fB\-p\fR \fIpick\fR] [\fB\-b\fR \fIranges\fR] [\fB\-I\fR \fIinclude\fR] [\fB\-E\fR \fIexclude\fR]
     
    6060Automatically terminate child processes that output more than \fIn\fR bytes
    6161on the standard output and standard error channels. This is useful to detect
    62 infinite loops. See also the \fB\-T\fR flag.
     62infinite loops. See also the \fB\-t\fR flag.
    6363.TP
    6464\fB\-c\fR, \fB\-\-cmdline\fR
     
    256256how to set such limits.
    257257.TP
    258 \fB\-T\fR, \fB\-\-max\-time\fR=\fIn\fR
     258\fB\-t\fR, \fB\-\-max\-time\fR=\fIn\fR
    259259Automatically terminate child processes that run for more than \fIn\fR
    260260seconds. This is useful to detect infinite loops or processes stuck in other
  • zzuf/trunk/src/zzuf.c

    r1799 r1800  
    164164#endif
    165165#define OPTSTR OPTSTR_REGEX OPTSTR_RLIMIT_MEM \
    166             "Ab:B:C:dD:f:F:imnp:P:qr:R:s:ST:vxhV"
     166            "Ab:B:C:dD:f:F:imnp:P:qr:R:s:St:vxhV"
    167167#define MOREINFO "Try `%s --help' for more information.\n"
    168168        int option_index = 0;
     
    198198            { "seed",        1, NULL, 's' },
    199199            { "signal",      0, NULL, 'S' },
    200             { "max-time",    1, NULL, 'T' },
     200            { "max-time",    1, NULL, 't' },
    201201            { "verbose",     0, NULL, 'v' },
    202202            { "check-exit",  0, NULL, 'x' },
     
    307307            setenv("ZZUF_SIGNAL", "1", 1);
    308308            break;
    309         case 'T': /* --max-time */
     309        case 't': /* --max-time */
    310310            opts->maxtime = (int64_t)(atof(myoptarg) * 1000000.0);
    311311            break;
     
    11111111    printf("              [-f fuzzing] [-D delay] [-F forks] [-C crashes] [-B bytes]\n");
    11121112#if defined HAVE_SETRLIMIT && defined ZZUF_RLIMIT_MEM
    1113     printf("              [-T seconds] [-M bytes] [-b ranges] [-P protect] [-R refuse]\n");
     1113    printf("              [-t seconds] [-M bytes] [-b ranges] [-P protect] [-R refuse]\n");
    11141114#else
    1115     printf("              [-T seconds] [-b ranges] [-P protect] [-R refuse]\n");
     1115    printf("              [-t seconds] [-b ranges] [-P protect] [-R refuse]\n");
    11161116#endif
    11171117#if defined HAVE_REGEX_H
     
    11581158    printf("      --seed <start:stop>   specify a seed range\n");
    11591159    printf("  -S, --signal              prevent children from diverting crashing signals\n");
    1160     printf("  -T, --max-time <n>        kill children that run for more than <n> seconds\n");
     1160    printf("  -t, --max-time <n>        kill children that run for more than <n> seconds\n");
    11611161    printf("  -v, --verbose             print information during the run\n");
    11621162    printf("  -x, --check-exit          report processes that exit with a non-zero status\n");
Note: See TracChangeset for help on using the changeset viewer.