source: zzuf/trunk/src/opts.h @ 4253

Last change on this file since 4253 was 4253, checked in by sam, 5 years ago

Fix copyright information and remove Id tag everywhere.

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1/*
2 *  zzuf - general purpose fuzzer
3 *  Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
4 *                All Rights Reserved
5 *
6 *  This program is free software. It comes without any warranty, to
7 *  the extent permitted by applicable law. You can redistribute it
8 *  and/or modify it under the terms of the Do What The Fuck You Want
9 *  To Public License, Version 2, as published by Sam Hocevar. See
10 *  http://sam.zoy.org/wtfpl/COPYING for more details.
11 */
12
13/*
14 *  opts.h: configuration handling
15 */
16
17struct opts
18{
19    char **oldargv;
20    char **newargv;
21    char *fuzzing, *bytes, *list, *ports, *protect, *refuse, *allow;
22    uint32_t seed;
23    uint32_t endseed;
24    double minratio;
25    double maxratio;
26    int quiet;
27    int maxbytes;
28    int maxcpu;
29    int md5;
30    int checkexit;
31    int verbose;
32    int maxmem;
33    int64_t maxtime;
34    int64_t delay;
35    int64_t lastlaunch;
36
37    int maxchild, nchild, maxcrashes, crashes;
38    struct child
39    {
40        enum status
41        {
42            STATUS_FREE,
43            STATUS_RUNNING,
44            STATUS_SIGTERM,
45            STATUS_SIGKILL,
46            STATUS_EOF,
47        } status;
48
49        pid_t pid;
50        int fd[3]; /* 0 is debug, 1 is stderr, 2 is stdout */
51        int bytes, seed;
52        double ratio;
53        int64_t date;
54        struct md5 *ctx;
55    } *child;
56};
57
58void _zz_opts_init(struct opts *);
59void _zz_opts_fini(struct opts *);
60
Note: See TracBrowser for help on using the repository browser.