Replace readdir_r with readdir
[platform/upstream/ltrace.git] / sysdeps / sysdep.h
1 /*
2  * This file is part of ltrace.
3  * Copyright (C) 2012,2013 Petr Machata, Red Hat Inc.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18  * 02110-1301 USA
19  */
20
21 #ifndef LTRACE_SYSDEP_H
22 #define LTRACE_SYSDEP_H
23
24 #include <arch.h>
25 #ifndef ARCH_HAVE_ADDRESS_TYPES
26 /* We should in general be able to trace 64-bit processes with 32-bit
27  * ltrace (this is possible on PPC, and generally there should be no
28  * problem tracing x86_64 processes from x32 ltrace, though it isn't
29  * possible from i386 ltrace).  But ltrace is currently hopelessly
30  * infested with using void* for host address.  So keep with it, for
31  * now.  */
32 typedef void *arch_addr_t;
33 #endif
34
35 #include <os.h>
36
37 #ifndef ARCH_HAVE_LTELF_DATA
38 struct arch_ltelf_data {
39 };
40 #endif
41
42 #ifndef OS_HAVE_BREAKPOINT_DATA
43 struct os_breakpoint_data {
44 };
45 #endif
46
47 #ifndef ARCH_HAVE_BREAKPOINT_DATA
48 struct arch_breakpoint_data {
49 };
50 #endif
51
52 #ifndef OS_HAVE_LIBRARY_SYMBOL_DATA
53 struct os_library_symbol_data {
54 };
55 #endif
56
57 #ifndef ARCH_HAVE_LIBRARY_SYMBOL_DATA
58 struct arch_library_symbol_data {
59 };
60 #endif
61
62 #ifndef OS_HAVE_LIBRARY_DATA
63 struct os_library_data {
64 };
65 #endif
66
67 #ifndef ARCH_HAVE_LIBRARY_DATA
68 struct arch_library_data {
69 };
70 #endif
71
72 #ifndef OS_HAVE_PROCESS_DATA
73 struct os_process_data {
74 };
75 #endif
76
77 #ifndef ARCH_HAVE_PROCESS_DATA
78 struct arch_process_data {
79 };
80 #endif
81
82 #endif /* LTRACE_SYSDEP_H */