home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / siginfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  1.4 KB  |  53 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 _SIGINFO_H
  12. #define _SIGINFO_H
  13. #ident    "@(#)sgs-head:common/head/siginfo.h    1.7"
  14.  
  15. #include <sys/types.h>
  16. #include <sys/siginfo.h>
  17.  
  18. union sigval {
  19.     int    sival_int;    /* integer value */
  20.     void    *sival_ptr;    /* pointer value */
  21. };
  22.  
  23. union notifyinfo {
  24.     int        nisigno;    /* signal number */
  25.     void        (*nifunc)(union sigval);
  26. };
  27.  
  28. struct sigevent {
  29.     int        sigev_notify;    /* notification mode */
  30.     union notifyinfo sigev_notifyinfo; 
  31.     union sigval    sigev_value;    /* signal value */
  32. };
  33. #define    sigev_func    sigev_notifyinfo.nifunc
  34. #define sigev_signo    sigev_notifyinfo.nisigno
  35.  
  36. /* values of sigev_notify */
  37. #define    SIGEV_NONE    1    /* no notification required */
  38. #define    SIGEV_SIGNAL    2    /* queued signal notification */
  39. #define    SIGEV_CALLBACK    3    /* call back notification */
  40.  
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44.  
  45. extern void    psiginfo(const siginfo_t *, const char *);
  46. extern void    psignal(int, const char *);
  47.  
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51.  
  52. #endif /*_SIGINFO_H*/
  53.