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

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

Try to call _zz_init() as soon as possible. Otherwise, preloaded libraries
might be confused about half the calls actually working.

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1/*
2 *  zzuf - general purpose fuzzer
3 *  Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
4 *                All Rights Reserved
5 *
6 *  $Id$
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
19/* Internal variables */
20extern int _zz_ready;
21extern int _zz_disabled;
22extern int _zz_debuglevel;
23extern int _zz_debugfd;
24extern int _zz_signal;
25extern int _zz_memory;
26extern int _zz_network;
27extern int _zz_autoinc;
28
29/* Library initialisation shit */
30#if defined __GNUC__
31extern void _zz_init(void) __attribute__((constructor));
32extern void _zz_fini(void) __attribute__((destructor));
33#elif defined HAVE_PRAGMA_INIT
34#   pragma INIT "_zz_init"
35#   pragma FINI "_zz_fini"
36#endif
37
38/* This function is needed to initialise memory functions */
39extern void _zz_mem_init(void);
40
Note: See TracBrowser for help on using the repository browser.