mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
f0bbd6b4f3
--HG-- rename : security/sandbox/LICENSE => security/sandbox/linux/LICENSE rename : security/sandbox/Makefile.in => security/sandbox/linux/Makefile.in rename : security/sandbox/Sandbox.cpp => security/sandbox/linux/Sandbox.cpp rename : security/sandbox/Sandbox.h => security/sandbox/linux/Sandbox.h rename : security/sandbox/android_arm_ucontext.h => security/sandbox/linux/android_arm_ucontext.h rename : security/sandbox/android_i386_ucontext.h => security/sandbox/linux/android_i386_ucontext.h rename : security/sandbox/android_ucontext.h => security/sandbox/linux/android_ucontext.h rename : security/sandbox/arm_linux_syscalls.h => security/sandbox/linux/arm_linux_syscalls.h rename : security/sandbox/linux_seccomp.h => security/sandbox/linux/linux_seccomp.h rename : security/sandbox/linux_syscalls.h => security/sandbox/linux/linux_syscalls.h rename : security/sandbox/moz.build => security/sandbox/linux/moz.build rename : security/sandbox/seccomp_filter.h => security/sandbox/linux/seccomp_filter.h rename : security/sandbox/x86_32_linux_syscalls.h => security/sandbox/linux/x86_32_linux_syscalls.h rename : security/sandbox/x86_64_linux_syscalls.h => security/sandbox/linux/x86_64_linux_syscalls.h
84 lines
1.9 KiB
C
84 lines
1.9 KiB
C
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
/* This file has been imported from
|
|
* http://git.chromium.org/gitweb/?p=chromium.git;a=blob;f=sandbox/linux/services/android_i386_ucontext.h;hb=99b3e83972e478a42fa72da1ffefee58413e87d4
|
|
*/
|
|
|
|
#ifndef SANDBOX_LINUX_SERVICES_ANDROID_I386_UCONTEXT_H_
|
|
#define SANDBOX_LINUX_SERVICES_ANDROID_I386_UCONTEXT_H_
|
|
|
|
// We do something compatible with glibc. Hopefully, at some point Android will
|
|
// provide that for us, and __BIONIC_HAVE_UCONTEXT_T should be defined.
|
|
// This is mostly copied from breakpad (common/android/include/sys/ucontext.h),
|
|
// except we do use sigset_t for uc_sigmask instead of a custom type.
|
|
|
|
#if !defined(__BIONIC_HAVE_UCONTEXT_T)
|
|
#include <asm/sigcontext.h>
|
|
|
|
/* 80-bit floating-point register */
|
|
struct _libc_fpreg {
|
|
unsigned short significand[4];
|
|
unsigned short exponent;
|
|
};
|
|
|
|
/* Simple floating-point state, see FNSTENV instruction */
|
|
struct _libc_fpstate {
|
|
unsigned long cw;
|
|
unsigned long sw;
|
|
unsigned long tag;
|
|
unsigned long ipoff;
|
|
unsigned long cssel;
|
|
unsigned long dataoff;
|
|
unsigned long datasel;
|
|
struct _libc_fpreg _st[8];
|
|
unsigned long status;
|
|
};
|
|
|
|
typedef uint32_t greg_t;
|
|
|
|
typedef struct {
|
|
uint32_t gregs[19];
|
|
struct _libc_fpstate* fpregs;
|
|
uint32_t oldmask;
|
|
uint32_t cr2;
|
|
} mcontext_t;
|
|
|
|
enum {
|
|
REG_GS = 0,
|
|
REG_FS,
|
|
REG_ES,
|
|
REG_DS,
|
|
REG_EDI,
|
|
REG_ESI,
|
|
REG_EBP,
|
|
REG_ESP,
|
|
REG_EBX,
|
|
REG_EDX,
|
|
REG_ECX,
|
|
REG_EAX,
|
|
REG_TRAPNO,
|
|
REG_ERR,
|
|
REG_EIP,
|
|
REG_CS,
|
|
REG_EFL,
|
|
REG_UESP,
|
|
REG_SS,
|
|
};
|
|
|
|
typedef struct ucontext {
|
|
uint32_t uc_flags;
|
|
struct ucontext* uc_link;
|
|
stack_t uc_stack;
|
|
mcontext_t uc_mcontext;
|
|
sigset_t uc_sigmask;
|
|
struct _libc_fpstate __fpregs_mem;
|
|
} ucontext_t;
|
|
|
|
#else
|
|
#include <sys/ucontext.h>
|
|
#endif // __BIONIC_HAVE_UCONTEXT_T
|
|
|
|
#endif // SANDBOX_LINUX_SERVICES_ANDROID_I386_UCONTEXT_H_
|