Changeset 1800 for zzuf/trunk/src


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.