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

Last change on this file since 4258 was 4258, checked in by Sam Hocevar, 10 years ago

Add a workaround for OS X ignoring RLIMIT_RSS / RLIMIT_AS and getrusage()
not filling in RSS information. After each memory allocation, we ask the
Mach for the RSS value.

  • Property svn:keywords set to Id
File size: 1.1 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
Note: See TracBrowser for help on using the repository browser.