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
3 // found in the LICENSE file.
5 #ifndef SANDBOX_LINUX_SERVICES_ANDROID_MIPS_UCONTEXT_H_
6 #define SANDBOX_LINUX_SERVICES_ANDROID_MIPS_UCONTEXT_H_
8 // This is mostly copied from breakpad (common/android/include/sys/ucontext.h),
9 // except we do use sigset_t for uc_sigmask instead of a custom type.
10 #if !defined(__BIONIC_HAVE_UCONTEXT_T)
11 // Ensure that 'stack_t' is defined.
12 #include <asm/signal.h>
14 // We also need greg_t for the sandbox, include it in this header as well.
15 typedef unsigned long greg_t
;
38 typedef struct ucontext
{
40 struct ucontext
* uc_link
;
42 mcontext_t uc_mcontext
;
44 // Other fields are not used by Google Breakpad. Don't define them.
48 #include <sys/ucontext.h>
49 #endif // __BIONIC_HAVE_UCONTEXT_T
51 #endif // SANDBOX_LINUX_SERVICES_ANDROID_MIPS_UCONTEXT_H_