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

Last change on this file since 4827 was 4827, checked in by wisk, 8 years ago

on win32, use a named pipe and IOCP to read stdout, stderr and debugfd correctly.

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1/*
2 *  zzuf - general purpose fuzzer
3 *  Copyright (c) 2006-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 *  libzzuf.h: preloaded wrapper library
15 */
16
17/* Internal variables */
18extern int _zz_ready;
19extern int _zz_disabled;
20extern int _zz_debuglevel;
21extern int _zz_debugfd;
22extern int _zz_signal;
23extern uint64_t _zz_memory;
24extern int _zz_network;
25extern int _zz_autoinc;
26
27/* Library initialisation shit */
28#if defined __GNUC__
29extern void _zz_init(void) __attribute__((constructor));
30extern void _zz_fini(void) __attribute__((destructor));
31#elif defined HAVE_PRAGMA_INIT
32#   pragma INIT "_zz_init"
33#   pragma FINI "_zz_fini"
34#endif
35
36/* This function is needed to initialise memory functions */
37extern void _zz_mem_init(void);
38
39#ifdef _WIN32
40#   include <Windows.h>
41extern CRITICAL_SECTION _zz_pipe_cs;
42#endif
Note: See TracBrowser for help on using the repository browser.