brintos

brintos / llvm-project-archived public Read only

0
0
Text · 996 B · 76488e9 Raw
32 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_MACROS_GPU_SIGNAL_MACROS_H10#define LLVM_LIBC_MACROS_GPU_SIGNAL_MACROS_H11 12#include "__llvm-libc-common.h"13 14#define SIGINT 215#define SIGILL 416#define SIGABRT 617#define SIGFPE 818#define SIGSEGV 1119#define SIGTERM 1520 21#define SIG_ERR __LLVM_LIBC_CAST(reinterpret_cast, void (*)(int), -1)22#define SIG_DFL __LLVM_LIBC_CAST(reinterpret_cast, void (*)(int), 0)23#define SIG_IGN __LLVM_LIBC_CAST(reinterpret_cast, void (*)(int), 1)24#define SIG_HOLD __LLVM_LIBC_CAST(reinterpret_cast, void (*)(int), 2)25 26// Max signal number27#define NSIG 6428 29#define __NSIGSET_WORDS NSIG30 31#endif // LLVM_LIBC_MACROS_GPU_SIGNAL_MACROS_H32