csignal 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // -*- C++ -*-
  2. //===----------------------------------------------------------------------===//
  3. //
  4. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  5. // See https://llvm.org/LICENSE.txt for license information.
  6. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef _LIBCPP_CSIGNAL
  10. #define _LIBCPP_CSIGNAL
  11. /*
  12. csignal synopsis
  13. Macros:
  14. SIG_DFL
  15. SIG_ERR
  16. SIG_IGN
  17. SIGABRT
  18. SIGFPE
  19. SIGILL
  20. SIGINT
  21. SIGSEGV
  22. SIGTERM
  23. namespace std
  24. {
  25. Types:
  26. sig_atomic_t
  27. void (*signal(int sig, void (*func)(int)))(int);
  28. int raise(int sig);
  29. } // std
  30. */
  31. #include <__config>
  32. #include <signal.h>
  33. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  34. # pragma GCC system_header
  35. #endif
  36. _LIBCPP_BEGIN_NAMESPACE_STD
  37. using ::sig_atomic_t _LIBCPP_USING_IF_EXISTS;
  38. using ::signal _LIBCPP_USING_IF_EXISTS;
  39. using ::raise _LIBCPP_USING_IF_EXISTS;
  40. _LIBCPP_END_NAMESPACE_STD
  41. #endif // _LIBCPP_CSIGNAL