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

Last change on this file since 1532 was 1532, checked in by Sam Hocevar, 16 years ago
  • Implemented signal handling.
  • Updated documentation accordingly and improved a few parts.
  • Property svn:keywords set to Id
File size: 810 bytes
RevLine 
[1470]1/*
2 *  zzuf - general purpose fuzzer
3 *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
4 *                All Rights Reserved
5 *
6 *  $Id: load.h 1532 2007-01-01 21:35:54Z 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
[1494]19#define STR(x) #x
20#define ORIG(x) x##_orig
[1470]21
[1494]22#define LOADSYM(x) \
23    do { \
24        ORIG(x) = dlsym(RTLD_NEXT, STR(x)); \
25        if(!ORIG(x)) \
26            abort(); \
27    } while(0)
28
[1523]29extern void _zz_load_fd(void);
[1532]30extern void _zz_load_signal(void);
[1523]31extern void _zz_load_stream(void);
[1494]32
Note: See TracBrowser for help on using the repository browser.