home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / linux / backup / star-1.3.1.tar.gz / star-1.3.1.tar / star-1.3.1 / include / sigblk.h < prev    next >
C/C++ Source or Header  |  2000-11-08  |  2KB  |  59 lines

  1. /* @(#)sigblk.h    1.7 00/11/08 Copyright 1985 J. Schilling */
  2. /*
  3.  *    software signal block definition
  4.  *
  5.  *    Copyright (c) 1985,1995 J. Schilling
  6.  */
  7. /*
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 2, or (at your option)
  11.  * any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program; see the file COPYING.  If not, write to
  20.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef    _SIGBLK_H
  24. #define    _SIGBLK_H
  25.  
  26. #ifndef _MCONFIG_H
  27. #include <mconfig.h>
  28. #endif
  29. #ifndef _STANDARD_H
  30. #include <standard.h>
  31. #endif
  32.  
  33. #ifdef    __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. typedef struct sigblk {
  38.     long        **sb_savfp;
  39.     struct sigblk    *sb_signext;
  40.     short        sb_siglen;
  41.     const char    *sb_signame;
  42.     int        (*sb_sigfun)    __PR((const char *, long, long));
  43.     long        sb_sigarg;
  44. } SIGBLK;
  45.  
  46. typedef    int    (*handlefunc_t)        __PR((const char *, long, long));
  47.  
  48. extern    void    handlecond        __PR((const char *, SIGBLK *,
  49.                           int(*)(const char *, long, long),
  50.                                     long));
  51. extern    void    raisecond        __PR((const char *, long));
  52. extern    void    unhandlecond        __PR((void));
  53.  
  54. #ifdef    __cplusplus
  55. }
  56. #endif
  57.  
  58. #endif    /* _SIGBLK_H */
  59.