OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ | 5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ |
6 #define SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ | 6 #define SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #if !defined(__BIONIC_HAVE_UCONTEXT_T) | 10 #if !defined(__BIONIC_HAVE_UCONTEXT_T) |
9 #if !defined(__native_client_nonsfi__) | 11 #if !defined(__native_client_nonsfi__) |
10 #include <asm/sigcontext.h> | 12 #include <asm/sigcontext.h> |
11 #else | 13 #else |
12 // In PNaCl toolchain, sigcontext and stack_t is not defined. So here declare | 14 // In PNaCl toolchain, sigcontext and stack_t is not defined. So here declare |
13 // them. | 15 // them. |
14 struct sigcontext { | 16 struct sigcontext { |
15 unsigned long trap_no; | 17 unsigned long trap_no; |
16 unsigned long error_code; | 18 unsigned long error_code; |
17 unsigned long oldmask; | 19 unsigned long oldmask; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 /* Last for extensibility. Eight byte aligned because some | 60 /* Last for extensibility. Eight byte aligned because some |
59 coprocessors require eight byte alignment. */ | 61 coprocessors require eight byte alignment. */ |
60 unsigned long uc_regspace[128] __attribute__((__aligned__(8))); | 62 unsigned long uc_regspace[128] __attribute__((__aligned__(8))); |
61 } ucontext_t; | 63 } ucontext_t; |
62 | 64 |
63 #else | 65 #else |
64 #include <sys/ucontext.h> | 66 #include <sys/ucontext.h> |
65 #endif // __BIONIC_HAVE_UCONTEXT_T | 67 #endif // __BIONIC_HAVE_UCONTEXT_T |
66 | 68 |
67 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ | 69 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ARM_LINUX_UCONTEXT_H_ |
OLD | NEW |