Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1607)

Side by Side Diff: sandbox/linux/system_headers/android_i386_ucontext.h

Issue 1029283003: WIP: Implement seccomp-bpf sandbox for nacl_helper_nonsfi. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ANDROID_I386_UCONTEXT_H_ 5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_I386_UCONTEXT_H_
6 #define SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_I386_UCONTEXT_H_ 6 #define SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_I386_UCONTEXT_H_
7 7
8 // 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
9 // 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.
10 // This is mostly copied from breakpad (common/android/include/sys/ucontext.h), 10 // This is mostly copied from breakpad (common/android/include/sys/ucontext.h),
11 // except we do use sigset_t for uc_sigmask instead of a custom type. 11 // except we do use sigset_t for uc_sigmask instead of a custom type.
12 12
13 #if !defined(__BIONIC_HAVE_UCONTEXT_T) 13 #if !defined(__BIONIC_HAVE_UCONTEXT_T)
14 #if defined(__ANDORID__)
14 #include <asm/sigcontext.h> 15 #include <asm/sigcontext.h>
16 #else
17 typedef struct sigaltstack {
18 void* ss_sp;
19 int ss_flags;
20 size_t ss_size;
21 } stack_t;
22 #endif
15 23
16 /* 80-bit floating-point register */ 24 /* 80-bit floating-point register */
17 struct _libc_fpreg { 25 struct _libc_fpreg {
18 unsigned short significand[4]; 26 unsigned short significand[4];
19 unsigned short exponent; 27 unsigned short exponent;
20 }; 28 };
21 29
22 /* Simple floating-point state, see FNSTENV instruction */ 30 /* Simple floating-point state, see FNSTENV instruction */
23 struct _libc_fpstate { 31 struct _libc_fpstate {
24 unsigned long cw; 32 unsigned long cw;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 mcontext_t uc_mcontext; 78 mcontext_t uc_mcontext;
71 sigset_t uc_sigmask; 79 sigset_t uc_sigmask;
72 struct _libc_fpstate __fpregs_mem; 80 struct _libc_fpstate __fpregs_mem;
73 } ucontext_t; 81 } ucontext_t;
74 82
75 #else 83 #else
76 #include <sys/ucontext.h> 84 #include <sys/ucontext.h>
77 #endif // __BIONIC_HAVE_UCONTEXT_T 85 #endif // __BIONIC_HAVE_UCONTEXT_T
78 86
79 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_I386_UCONTEXT_H_ 87 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_I386_UCONTEXT_H_
OLDNEW
« no previous file with comments | « sandbox/linux/services/syscall_wrappers.cc ('k') | sandbox/linux/system_headers/android_ucontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698