OLD | NEW |
1 /* Copyright (c) 2005-2008, Google Inc. | 1 /* Copyright (c) 2005-2008, Google Inc. |
2 * All rights reserved. | 2 * All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 #include <stdarg.h> | 150 #include <stdarg.h> |
151 #include <stddef.h> | 151 #include <stddef.h> |
152 #include <stdint.h> | 152 #include <stdint.h> |
153 #include <string.h> | 153 #include <string.h> |
154 #include <sys/ptrace.h> | 154 #include <sys/ptrace.h> |
155 #include <sys/resource.h> | 155 #include <sys/resource.h> |
156 #include <sys/time.h> | 156 #include <sys/time.h> |
157 #include <sys/types.h> | 157 #include <sys/types.h> |
158 #if defined(__ANDROID__) | 158 #if defined(__ANDROID__) |
159 #include <sys/syscall.h> | 159 #include <sys/syscall.h> |
160 #ifndef ANDROID_NON_SDK_BUILD | |
161 #include <sys/linux-syscalls.h> | 160 #include <sys/linux-syscalls.h> |
162 #endif | |
163 #else | 161 #else |
164 #include <syscall.h> | 162 #include <syscall.h> |
165 #endif | 163 #endif |
166 #include <unistd.h> | 164 #include <unistd.h> |
167 #include <linux/unistd.h> | 165 #include <linux/unistd.h> |
168 #include <endian.h> | 166 #include <endian.h> |
169 | 167 |
170 #ifdef __mips__ | 168 #ifdef __mips__ |
171 /* Include definitions of the ABI currently in use. */ | 169 /* Include definitions of the ABI currently in use. */ |
172 #include <sgidefs.h> | 170 #include <sgidefs.h> |
(...skipping 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2271 return rc; | 2269 return rc; |
2272 } | 2270 } |
2273 #endif | 2271 #endif |
2274 | 2272 |
2275 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) | 2273 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) |
2276 } | 2274 } |
2277 #endif | 2275 #endif |
2278 | 2276 |
2279 #endif | 2277 #endif |
2280 #endif | 2278 #endif |
OLD | NEW |