Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #ifndef _SIGNAL_H_
  2. #define _SIGNAL_H_
  3.  
  4. #include "_ansi.h"
  5. #include <sys/signal.h>
  6.  
  7. _BEGIN_STD_C
  8.  
  9. typedef int     sig_atomic_t;           /* Atomic entity type (ANSI) */
  10. #ifndef _POSIX_SOURCE
  11. typedef _sig_func_ptr sighandler_t;     /* glibc naming */
  12. #endif /* !_POSIX_SOURCE */
  13.  
  14. #define SIG_DFL ((_sig_func_ptr)0)      /* Default action */
  15. #define SIG_IGN ((_sig_func_ptr)1)      /* Ignore action */
  16. #define SIG_ERR ((_sig_func_ptr)-1)     /* Error return */
  17.  
  18. struct _reent;
  19.  
  20. _sig_func_ptr _EXFUN(_signal_r, (struct _reent *, int, _sig_func_ptr));
  21. int     _EXFUN(_raise_r, (struct _reent *, int));
  22.  
  23. #ifndef _REENT_ONLY
  24. _sig_func_ptr _EXFUN(signal, (int, _sig_func_ptr));
  25. int     _EXFUN(raise, (int));
  26. #endif
  27.  
  28. _END_STD_C
  29.  
  30. #endif /* _SIGNAL_H_ */
  31.