security/sandbox/linux/android_arm_ucontext.h

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
michael@0 2 // Use of this source code is governed by a BSD-style license that can be
michael@0 3 // found in the LICENSE file.
michael@0 4
michael@0 5 /* This file has been imported from
michael@0 6 * http://git.chromium.org/gitweb/?p=chromium.git;a=blob;f=sandbox/linux/services/android_arm_ucontext.h;hb=99b3e83972e478a42fa72da1ffefee58413e87d4
michael@0 7 */
michael@0 8
michael@0 9 #ifndef SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_
michael@0 10 #define SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_
michael@0 11
michael@0 12 #if !defined(__BIONIC_HAVE_UCONTEXT_T)
michael@0 13 #include <asm/sigcontext.h>
michael@0 14
michael@0 15 // We also need greg_t for the sandbox, include it in this header as well.
michael@0 16 typedef unsigned long greg_t;
michael@0 17
michael@0 18 //typedef unsigned long sigset_t;
michael@0 19 typedef struct ucontext {
michael@0 20 unsigned long uc_flags;
michael@0 21 struct ucontext *uc_link;
michael@0 22 stack_t uc_stack;
michael@0 23 struct sigcontext uc_mcontext;
michael@0 24 sigset_t uc_sigmask;
michael@0 25 /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */
michael@0 26 int __not_used[32 - (sizeof (sigset_t) / sizeof (int))];
michael@0 27 /* Last for extensibility. Eight byte aligned because some
michael@0 28 coprocessors require eight byte alignment. */
michael@0 29 unsigned long uc_regspace[128] __attribute__((__aligned__(8)));
michael@0 30 } ucontext_t;
michael@0 31
michael@0 32 #else
michael@0 33 #include <sys/ucontext.h>
michael@0 34 #endif // __BIONIC_HAVE_UCONTEXT_T
michael@0 35
michael@0 36 #endif // SANDBOX_LINUX_SERVICES_ANDROID_ARM_UCONTEXT_H_

mercurial