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 void _sig_ign(int);
13 void _sig_dfl(int);
14 
15 #define SIGINT 1
16 #define SIG_IGN _sig_ign
17 #define SIG_DFL _sig_dfl
18 
19 typedef void (*sighandler_t)(int);
20 sighandler_t signal(int, sighandler_t);
21 
22 #endif // _SIGNAL_H_
23