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

Last change on this file since 1702 was 1702, checked in by Sam Hocevar, 13 years ago
  • Added DLL injection to the Win32 port attempt.
  • 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 1702 2007-01-24 15:06:17Z 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 const **newargv;
22    char *protect, *refuse;
23    uint32_t seed;
24    uint32_t endseed;
25    double minratio;
26    double maxratio;
27    int quiet;
28    int maxbytes;
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.