xref: /aosp_15_r20/external/llvm-libc/include/llvm-libc-macros/gpu/signal-macros.h (revision 71db0c75aadcf003ffe3238005f61d7618a3fead)
1 //===-- Definition of GPU signal number macros ----------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIBC_MACROS_GPU_SIGNAL_MACROS_H
10 #define LLVM_LIBC_MACROS_GPU_SIGNAL_MACROS_H
11 
12 #define SIGINT 2
13 #define SIGILL 4
14 #define SIGABRT 6
15 #define SIGFPE 8
16 #define SIGSEGV 11
17 #define SIGTERM 15
18 
19 #define SIG_DFL ((__sighandler_t)(0))
20 #define SIG_IGN ((__sighandler_t)(1))
21 #define SIG_ERR ((__sighandler_t)(-1))
22 
23 // Max signal number
24 #define NSIG 64
25 
26 #define __NSIGSET_WORDS NSIG
27 
28 #endif // LLVM_LIBC_MACROS_GPU_SIGNAL_MACROS_H
29