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

Side by Side Diff: sandbox/linux/system_headers/linux_signal.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 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_LINUX_SIGNAL_H_ 5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SIGNAL_H_
6 #define SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SIGNAL_H_ 6 #define SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SIGNAL_H_
7 7
8 #include <stdint.h>
9
8 // NOTE: On some toolchains, signal related ABI is incompatible with Linux's 10 // NOTE: On some toolchains, signal related ABI is incompatible with Linux's
9 // (not undefined, but defined different values and in different memory 11 // (not undefined, but defined different values and in different memory
10 // layouts). So, fill the gap here. 12 // layouts). So, fill the gap here.
11 #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \ 13 #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \
12 defined(__aarch64__) 14 defined(__aarch64__)
13 15
14 #define LINUX_SIGHUP 1 16 #define LINUX_SIGHUP 1
15 #define LINUX_SIGINT 2 17 #define LINUX_SIGINT 2
16 #define LINUX_SIGQUIT 3 18 #define LINUX_SIGQUIT 3
17 #define LINUX_SIGABRT 6 19 #define LINUX_SIGABRT 6
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 #else 137 #else
136 struct LinuxSigAction { 138 struct LinuxSigAction {
137 void (*kernel_handler)(int); 139 void (*kernel_handler)(int);
138 uint32_t sa_flags; 140 uint32_t sa_flags;
139 void (*sa_restorer)(void); 141 void (*sa_restorer)(void);
140 LinuxSigSet sa_mask; 142 LinuxSigSet sa_mask;
141 }; 143 };
142 #endif 144 #endif
143 145
144 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SIGNAL_H_ 146 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SIGNAL_H_
OLDNEW
« no previous file with comments | « sandbox/linux/system_headers/i386_linux_ucontext.h ('k') | sandbox/linux/system_headers/mips_linux_ucontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698