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

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