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

Side by Side Diff: sandbox/linux/services/android_x86_ucontext.h

Issue 12025004: Android make sandbox/linux/seccomp-bpf compile on i386 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SANDBOX_LINUX_SERVICES_ANDROID_X86_UCONTEXT_H_
6 #define SANDBOX_LINUX_SERVICES_ANDROID_X86_UCONTEXT_H_
7
8 // This is basically include/uapi/asm-generic/ucontext.h from the Linux kernel.
9 // In theory, Android libc's could expand the structure for its own internal
10 // use, but if the libc provides an API that expects this expanded structure,
11 // __BIONIC_HAVE_UCONTEXT_T should be defined.
12
13 #if !defined(__BIONIC_HAVE_UCONTEXT_T)
14 #include <asm/sigcontext.h>
15
16 // We also need greg_t for the sandbox, include it in this header as well.
17 typedef unsigned long greg_t;
18
19 typedef struct ucontext {
20 unsigned long uc_flags;
21 struct ucontext *uc_link;
22 stack_t uc_stack;
23 struct sigcontext uc_mcontext;
24 sigset_t uc_sigmask; /* mask last for extensibility */
25 } ucontext_t;
26
27 #else
28 #include <sys/ucontext.h>
29 #endif // __BIONIC_HAVE_UCONTEXT_T
30
31 #endif // SANDBOX_LINUX_SERVICES_ANDROID_X86_UCONTEXT_H_
OLDNEW
« sandbox/linux/services/android_i386_ucontext.h ('K') | « sandbox/linux/services/android_ucontext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698