csignal 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // -*- C++ -*-
  2. //===--------------------------- csignal ----------------------------------===//
  3. //
  4. // The LLVM Compiler Infrastructure
  5. //
  6. // This file is dual licensed under the MIT and the University of Illinois Open
  7. // Source Licenses. See LICENSE.TXT for details.
  8. //
  9. //===----------------------------------------------------------------------===//
  10. #ifndef _LIBCPP_CSIGNAL
  11. #define _LIBCPP_CSIGNAL
  12. /*
  13. csignal synopsis
  14. Macros:
  15. SIG_DFL
  16. SIG_ERR
  17. SIG_IGN
  18. SIGABRT
  19. SIGFPE
  20. SIGILL
  21. SIGINT
  22. SIGSEGV
  23. SIGTERM
  24. namespace std
  25. {
  26. Types:
  27. sig_atomic_t
  28. void (*signal(int sig, void (*func)(int)))(int);
  29. int raise(int sig);
  30. } // std
  31. */
  32. // Not supported in SGX.
  33. #include <__config>
  34. #if !defined(_LIBCPP_SGX_CONFIG)
  35. #include <signal.h>
  36. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  37. #pragma GCC system_header
  38. #endif
  39. _LIBCPP_BEGIN_NAMESPACE_STD
  40. using ::sig_atomic_t;
  41. using ::signal;
  42. using ::raise;
  43. _LIBCPP_END_NAMESPACE_STD
  44. #endif // !defined(_LIBCPP_SGX_CONFIG)
  45. #endif // _LIBCPP_CSIGNAL