home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  2.7 KB  |  87 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. #ifndef _SIGNAL_H
  12. #define _SIGNAL_H
  13. #ident    "@(#)sgs-head:common/head/signal.h    1.5.6.8"
  14.  
  15. #include <sys/signal.h>
  16. #include <sys/types.h>
  17.  
  18. typedef int     sig_atomic_t;
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24. extern const char *const    _sys_siglist[];
  25. extern const int        _sys_nsig;
  26.  
  27. extern void    (*signal(int, void (*)(int)))(int);
  28. extern int    raise(int);
  29.  
  30. #if __STDC__ - 0 == 0 || defined(_XOPEN_SOURCE) \
  31.     || defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE)
  32.  
  33. extern int    kill(pid_t, int);
  34. extern int    sigaction(int, const struct sigaction *, struct sigaction *);
  35. extern int    sigaddset(sigset_t *, int);
  36. extern int    sigdelset(sigset_t *, int);
  37. extern int    sigemptyset(sigset_t *);
  38. extern int    sigfillset(sigset_t *);
  39. extern int    sigismember(const sigset_t *, int);
  40. extern int    sigpending(sigset_t *);
  41. extern int    sigprocmask(int, const sigset_t *, sigset_t *);
  42. extern int    sigsuspend(const sigset_t *);
  43.  
  44. #endif /*__STDC__ - 0 == 0 || ...*/
  45.  
  46. #if __STDC__ - 0 == 0 && !defined(_XOPEN_SOURCE) \
  47.     && !defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE)
  48.  
  49. #include <sys/procset.h>
  50.  
  51. extern void    (*bsd_signal(int , void (*) (int)))(int);
  52. extern int    gsignal(int);
  53. extern int    killpg(pid_t, int);
  54. extern void    (*sigset(int, void (*)(int)))(int);
  55. extern int    sighold(int);
  56. extern int    sigrelse(int);
  57. extern int    sigignore(int);
  58. extern int     siginterrupt(int, int);
  59. extern int    sigpause(int);
  60. extern int    (*ssignal(int, int (*)(int)))(int);
  61. extern int    sigaltstack(const stack_t *, stack_t *);
  62. extern int    sigsend(idtype_t, id_t, int);
  63. extern int    sigsendset(const procset_t *, int);
  64. extern int    sigstack(struct sigstack *, struct sigstack *);
  65. extern int    sigwait(sigset_t *);
  66.  
  67. #elif defined(_XOPEN_SOURCE) && _XOPEN_SOURCE_EXTENDED - 0 >= 1
  68.  
  69. extern void    (*bsd_signal(int , void (*) (int)))(int); 
  70. extern int    killpg(pid_t, int);
  71. extern int    sigaltstack(const stack_t *, stack_t *);
  72. extern int    sighold(int);
  73. extern int    sigignore(int);
  74. extern int     siginterrupt(int, int);
  75. extern int    sigpause(int);
  76. extern int    sigrelse(int);
  77. extern void    (*sigset(int, void (*)(int)))(int);
  78. extern int    sigstack(struct sigstack *, struct sigstack *);
  79.  
  80. #endif /*__STDC__ - 0 == 0 && ...*/
  81.  
  82. #ifdef __cplusplus
  83. }
  84. #endif
  85.  
  86. #endif /*_SIGNAL_H*/
  87.