source: zzuf/trunk/src/libzzuf.h @ 1473

Last change on this file since 1473 was 1473, checked in by Sam Hocevar, 16 years ago
  • Add fallbacks to our functions in case other libraries call libc functions in their init constructor (eg. libproc).
  • Property svn:keywords set to Id
File size: 996 bytes
Line 
1/*
2 *  zzuf - general purpose fuzzer
3 *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
4 *                All Rights Reserved
5 *
6 *  $Id: libzzuf.h 1473 2006-12-15 08:14:38Z 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 *  libzzuf.h: preloaded wrapper library
17 */
18
19struct zzuf
20{
21    int managed;
22    uint64_t seed;
23    uint64_t pos;
24    char *data;
25};
26
27extern struct zzuf files[];
28
29/* Internal stuff */
30extern int       _zzuf_ready;
31extern int       _zzuf_debug;
32extern int       _zzuf_seed;
33extern float     _zzuf_percent;
34extern regex_t * _zzuf_include;
35extern regex_t * _zzuf_exclude;
36
37/* Library initialisation shit */
38extern void zzuf_init(void) __attribute__((constructor));
39extern void zzuf_fini(void) __attribute__((destructor));
40
Note: See TracBrowser for help on using the repository browser.