Debian Codegraph @

clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/signal.h

raw
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 void _sig_err(int);
17
18 #define SIGINT 1
19 #define SIG_IGN _sig_ign
20 #define SIG_DFL _sig_dfl
21 #define SIG_ERR _sig_err
22
23 sighandler_t signal(int, sighandler_t);
24
25 #endif // _SIGNAL_H_