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

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

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros Created 4 years, 12 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 #include <stddef.h>
9 #include <stdint.h>
10
8 // We do something compatible with glibc. Hopefully, at some point Android will 11 // 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. 12 // 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), 13 // 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. 14 // except we do use sigset_t for uc_sigmask instead of a custom type.
12 15
13 #if !defined(__BIONIC_HAVE_UCONTEXT_T) 16 #if !defined(__BIONIC_HAVE_UCONTEXT_T)
14 #if !defined(__native_client_nonsfi__) 17 #if !defined(__native_client_nonsfi__)
15 #include <asm/sigcontext.h> 18 #include <asm/sigcontext.h>
16 #else 19 #else
17 // In PNaCl toolchain, sigcontext is not defined. So here declare it. 20 // In PNaCl toolchain, sigcontext is not defined. So here declare it.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 uint32_t kernel_sigmask[2]; 87 uint32_t kernel_sigmask[2];
85 }; 88 };
86 struct _libc_fpstate __fpregs_mem; 89 struct _libc_fpstate __fpregs_mem;
87 } ucontext_t; 90 } ucontext_t;
88 91
89 #else 92 #else
90 #include <sys/ucontext.h> 93 #include <sys/ucontext.h>
91 #endif // __BIONIC_HAVE_UCONTEXT_T 94 #endif // __BIONIC_HAVE_UCONTEXT_T
92 95
93 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_I386_UCONTEXT_H_ 96 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_I386_UCONTEXT_H_
OLDNEW
« no previous file with comments | « sandbox/linux/system_headers/arm_linux_ucontext.h ('k') | sandbox/linux/system_headers/linux_signal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698