Last change
on this file since 1494 was
1494,
checked in by Sam Hocevar, 16 years ago
|
- Split preload.c into load-fd.c and load-stream.c.
|
-
Property svn:keywords set to
Id
|
File size:
777 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 1494 2006-12-17 17:17:31Z 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 | |
---|
29 | extern void zzuf_load_fd(void); |
---|
30 | extern void zzuf_load_stream(void); |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.