xref: /llvm-project/libc/src/signal/signal.h (revision 73514f6831cfcea49f33fb9e31db0141b05532f2)
166d00febSPaula Toth //===-- Implementation header for signal ------------------------*- C++ -*-===//
2ca04d0c8SAlex Brachet //
3ca04d0c8SAlex Brachet // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4ca04d0c8SAlex Brachet // See https://llvm.org/LICENSE.txt for license information.
5ca04d0c8SAlex Brachet // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6ca04d0c8SAlex Brachet //
7ca04d0c8SAlex Brachet //===----------------------------------------------------------------------===//
8ca04d0c8SAlex Brachet 
9ca04d0c8SAlex Brachet #ifndef LLVM_LIBC_SRC_SIGNAL_SIGNAL_H
10ca04d0c8SAlex Brachet #define LLVM_LIBC_SRC_SIGNAL_SIGNAL_H
11ca04d0c8SAlex Brachet 
12*73514f68Swldfngrs #include "hdr/types/sighandler_t.h"
135ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
14ca04d0c8SAlex Brachet 
155ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
16ca04d0c8SAlex Brachet 
17ca04d0c8SAlex Brachet sighandler_t signal(int signum, sighandler_t handler);
18ca04d0c8SAlex Brachet 
195ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
20ca04d0c8SAlex Brachet 
21ca04d0c8SAlex Brachet #endif // LLVM_LIBC_SRC_SIGNAL_SIGNAL_H
22