initial commit
[surgeon.git] / stubs.h
blob912c5c713a1069b6bfd44fee0a84295aeb3c53b0
1 /*
2 * Copyright (C) 2010 gonzoj
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef STUBS_H_
19 #define STUBS_H_
21 /* address of function must be in eax, arguments in ecx, edx */
23 #define call_malloc_STUB_size 4
24 void *
25 call_malloc_STUB();
27 #define call_free_STUB_size 4
28 void *
29 call_free_STUB();
31 #define call_libc_dlopen_mode_STUB_size 5
32 void *
33 call_libc_dlopen_mode_STUB();
35 #define call_libc_dlclose_STUB_size 4
36 void *
37 call_libc_dlclose_STUB();
39 #endif /* STUBS_H_ */