OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_X86_64_LINUX_UCONTEXT_H_ | 5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_X86_64_LINUX_UCONTEXT_H_ |
6 #define SANDBOX_LINUX_SYSTEM_HEADERS_X86_64_LINUX_UCONTEXT_H_ | 6 #define SANDBOX_LINUX_SYSTEM_HEADERS_X86_64_LINUX_UCONTEXT_H_ |
7 | 7 |
8 #include <stdint.h> | |
9 | |
10 // We do something compatible with glibc. Hopefully, at some point Android will | 8 // We do something compatible with glibc. Hopefully, at some point Android will |
11 // provide that for us, and __BIONIC_HAVE_UCONTEXT_T should be defined. | 9 // provide that for us, and __BIONIC_HAVE_UCONTEXT_T should be defined. |
12 // Spec: | 10 // Spec: |
13 // http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-AMD64/LSB-Core-AMD64/l
ibc-ddefs.html#AEN5668 | 11 // http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-AMD64/LSB-Core-AMD64/l
ibc-ddefs.html#AEN5668 |
14 | 12 |
15 #if !defined(__BIONIC_HAVE_UCONTEXT_T) | 13 #if !defined(__BIONIC_HAVE_UCONTEXT_T) |
16 #include <asm/sigcontext.h> | 14 #include <asm/sigcontext.h> |
17 | 15 |
18 struct _libc_fpxreg { | 16 struct _libc_fpxreg { |
19 unsigned short significand[4]; | 17 unsigned short significand[4]; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 mcontext_t uc_mcontext; | 79 mcontext_t uc_mcontext; |
82 sigset_t uc_sigmask; | 80 sigset_t uc_sigmask; |
83 struct _libc_fpstate __fpregs_mem; | 81 struct _libc_fpstate __fpregs_mem; |
84 } ucontext_t; | 82 } ucontext_t; |
85 | 83 |
86 #else | 84 #else |
87 #include <sys/ucontext.h> | 85 #include <sys/ucontext.h> |
88 #endif // __BIONIC_HAVE_UCONTEXT_T | 86 #endif // __BIONIC_HAVE_UCONTEXT_T |
89 | 87 |
90 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_X86_64_LINUX_UCONTEXT_H_ | 88 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_X86_64_LINUX_UCONTEXT_H_ |
OLD | NEW |