source: zzuf/trunk/src/load.h @ 1639

Last change on this file since 1639 was 1639, checked in by Sam Hocevar, 14 years ago
  • Split load-fd.c into load-fd.c and load-mem.c (mmap, etc.).
  • Property svn:keywords set to Id
File size: 842 bytes
Line 
1/*
2 *  zzuf - general purpose fuzzer
3 *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
4 *                All Rights Reserved
5 *
6 *  $Id: load.h 1639 2007-01-10 14:57:22Z 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 *  preload.h: preloaded library functions
17 */
18
19#define STR(x) #x
20#define ORIG(x) x##_orig
21
22#define LOADSYM(x) \
23    do { \
24        ORIG(x) = dlsym(RTLD_NEXT, STR(x)); \
25        if(!ORIG(x)) \
26            abort(); \
27    } while(0)
28
29extern void _zz_load_fd(void);
30extern void _zz_load_mem(void);
31extern void _zz_load_signal(void);
32extern void _zz_load_stream(void);
33
Note: See TracBrowser for help on using the repository browser.