1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/sandbox/linux/android_arm_ucontext.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +// Copyright (c) 2012 The Chromium Authors. All rights reserved. 1.5 +// Use of this source code is governed by a BSD-style license that can be 1.6 +// found in the LICENSE file. 1.7 + 1.8 +/* This file has been imported from 1.9 + * http://git.chromium.org/gitweb/?p=chromium.git;a=blob;f=sandbox/linux/services/android_arm_ucontext.h;hb=99b3e83972e478a42fa72da1ffefee58413e87d4 1.10 + */ 1.11 + 1.12 +#ifndef SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ 1.13 +#define SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_ 1.14 + 1.15 +#if !defined(__BIONIC_HAVE_UCONTEXT_T) 1.16 +#include <asm/sigcontext.h> 1.17 + 1.18 +// We also need greg_t for the sandbox, include it in this header as well. 1.19 +typedef unsigned long greg_t; 1.20 + 1.21 +//typedef unsigned long sigset_t; 1.22 +typedef struct ucontext { 1.23 + unsigned long uc_flags; 1.24 + struct ucontext *uc_link; 1.25 + stack_t uc_stack; 1.26 + struct sigcontext uc_mcontext; 1.27 + sigset_t uc_sigmask; 1.28 + /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */ 1.29 + int __not_used[32 - (sizeof (sigset_t) / sizeof (int))]; 1.30 + /* Last for extensibility. Eight byte aligned because some 1.31 + coprocessors require eight byte alignment. */ 1.32 + unsigned long uc_regspace[128] __attribute__((__aligned__(8))); 1.33 +} ucontext_t; 1.34 + 1.35 +#else 1.36 +#include <sys/ucontext.h> 1.37 +#endif // __BIONIC_HAVE_UCONTEXT_T 1.38 + 1.39 +#endif // SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_