| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ | 7 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ |
| 8 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ 1 | 8 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ 1 |
| 9 | 9 |
| 10 /* | 10 /* |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 SIGTRACE= 5, | 51 SIGTRACE= 5, |
| 52 SIGABRT = 6, | 52 SIGABRT = 6, |
| 53 SIGBUS = 7, | 53 SIGBUS = 7, |
| 54 SIGFPE = 8, | 54 SIGFPE = 8, |
| 55 SIGKILL = 9, | 55 SIGKILL = 9, |
| 56 SIGSEGV = 11, | 56 SIGSEGV = 11, |
| 57 SIGSTKFLT = 16, | 57 SIGSTKFLT = 16, |
| 58 }; | 58 }; |
| 59 #endif | 59 #endif |
| 60 | 60 |
| 61 #if NACL_LINUX |
| 62 # define NACL_THREAD_SUSPEND_SIGNAL SIGUSR1 |
| 63 #endif |
| 64 |
| 61 | 65 |
| 62 /* | 66 /* |
| 63 * Prototype for a signal handler. The handler will receive the POSIX | 67 * Prototype for a signal handler. The handler will receive the POSIX |
| 64 * signal number and an opaque platform dependent signal object. | 68 * signal number and an opaque platform dependent signal object. |
| 65 */ | 69 */ |
| 66 typedef enum NaClSignalResult (*NaClSignalHandler)(int sig_num, void *ctx); | 70 typedef enum NaClSignalResult (*NaClSignalHandler)(int sig_num, void *ctx); |
| 67 | 71 |
| 68 | 72 |
| 69 /* | 73 /* |
| 70 * Allocates a stack suitable for passing to | 74 * Allocates a stack suitable for passing to |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 /* | 186 /* |
| 183 * Platform specific code. Do not call directly. | 187 * Platform specific code. Do not call directly. |
| 184 */ | 188 */ |
| 185 void NaClSignalHandlerInitPlatform(void); | 189 void NaClSignalHandlerInitPlatform(void); |
| 186 void NaClSignalHandlerFiniPlatform(void); | 190 void NaClSignalHandlerFiniPlatform(void); |
| 187 | 191 |
| 188 | 192 |
| 189 EXTERN_C_END | 193 EXTERN_C_END |
| 190 | 194 |
| 191 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ */ | 195 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SIGNAL_H__ */ |
| OLD | NEW |