1 //===--- signal.h - Stub header for tests -----------------------*- C++ -*-===//
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 _SIGNAL_H_
10 #define _SIGNAL_H_
11 
12 typedef void (*sighandler_t)(int);
13 
14 void _sig_ign(int);
15 void _sig_dfl(int);
16 
17 #define SIGINT 1
18 #define SIG_IGN _sig_ign
19 #define SIG_DFL _sig_dfl
20 
21 sighandler_t signal(int, sighandler_t);
22 
23 #endif // _SIGNAL_H_
24