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

Side by Side Diff: sandbox/linux/system_headers/mips_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MIPS_LINUX_UCONTEXT_H_ 5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_MIPS_LINUX_UCONTEXT_H_
6 #define SANDBOX_LINUX_SYSTEM_HEADERS_MIPS_LINUX_UCONTEXT_H_ 6 #define SANDBOX_LINUX_SYSTEM_HEADERS_MIPS_LINUX_UCONTEXT_H_
7 7
8 #include <stdint.h>
9
8 // 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),
9 // 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.
10 #if !defined(__BIONIC_HAVE_UCONTEXT_T) 12 #if !defined(__BIONIC_HAVE_UCONTEXT_T)
11 // Ensure that 'stack_t' is defined. 13 // Ensure that 'stack_t' is defined.
12 #include <asm/signal.h> 14 #include <asm/signal.h>
13 15
14 // We also need greg_t for the sandbox, include it in this header as well. 16 // We also need greg_t for the sandbox, include it in this header as well.
15 typedef unsigned long greg_t; 17 typedef unsigned long greg_t;
16 18
17 typedef struct { 19 typedef struct {
(...skipping 24 matching lines...) Expand all
42 mcontext_t uc_mcontext; 44 mcontext_t uc_mcontext;
43 sigset_t uc_sigmask; 45 sigset_t uc_sigmask;
44 // Other fields are not used by Google Breakpad. Don't define them. 46 // Other fields are not used by Google Breakpad. Don't define them.
45 } ucontext_t; 47 } ucontext_t;
46 48
47 #else 49 #else
48 #include <sys/ucontext.h> 50 #include <sys/ucontext.h>
49 #endif // __BIONIC_HAVE_UCONTEXT_T 51 #endif // __BIONIC_HAVE_UCONTEXT_T
50 52
51 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_MIPS_LINUX_UCONTEXT_H_ 53 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_MIPS_LINUX_UCONTEXT_H_
OLDNEW
« no previous file with comments | « sandbox/linux/system_headers/linux_signal.h ('k') | sandbox/linux/system_headers/x86_64_linux_ucontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698