Annotation of coherent/f/usr/include.78/signal.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * /usr/include/signal.h
                      3:  *
                      4:  * COHERENT signal support.
                      5:  *
                      6:  * Revised: Wed May 12 07:56:47 1993 CDT
                      7:  */
                      8: #ifndef         __SIGNAL_H__
                      9: #define         __SIGNAL_H__
                     10: 
                     11: #ifdef _I386
                     12: extern void    (*signal())();
                     13: extern void    (*sigset())();
                     14: 
                     15: #define SIGHUP 1                       /* Hangup */
                     16: #define        SIGINT  2                       /* Interrupt */
                     17: #define SIGQUIT        3                       /* Quit */
                     18: #define SIGILL 4                       /* Illegal instruction */
                     19: #define        SIGTRAP 5                       /* Trace trap */        
                     20: #define SIGIOT 6                       /* IOT instruction */
                     21: #define SIGABRT        6                       /* replace by SIGIOT in the future */
                     22: #define        SIGEMT  7                       /* emulator trap */
                     23: #define        SIGFPE  8                       /* floating point exception */
                     24: #define SIGKILL        9                       /* Kill */
                     25: #define        SIGBUS  10                      /* bus error */
                     26: #define        SIGSEGV 11                      /* Segmentation violation */
                     27: #define SIGSYS 12                      /* Bad argument to system call */
                     28: #define        SIGPIPE 13                      /* Write to pipe with no readers */
                     29: #define SIGALRM        14                      /* Alarm */
                     30: #define SIGTERM        15                      /* Software termination signal */
                     31: #define        SIGUSR1 16
                     32: #define        SIGUSR2 17
                     33: #define        SIGCLD  18                      /* Death of a child */
                     34: #define        SIGCHLD 18                      /* Death of a child - not done yet */
                     35: #define SIGPWR 19                      /* Restart */
                     36: #define        SIGWINCH 20                     /* window change */
                     37: #define        SIGPOLL 22                      /* polled event in stream */
                     38: 
                     39: #define NSIG   23                      /* Number of signals */
                     40: #define        MAXSIG  32
                     41: 
                     42: /*
                     43:  * Special arguments to signal.
                     44:  */
                     45: #define SIG_DFL (void(*)())0           /* Default */
                     46: #define SIG_ERR (void(*)())-1          /* Error */
                     47: #define SIG_IGN (void(*)())1           /* Ignore */
                     48: #define SIG_HOLD (void(*)())2          /* Hold */
                     49: 
                     50: #ifdef KERNEL
                     51: /*
                     52:  * According to iBCS2, signal() shares a system call number with
                     53:  * sigset(), sighold(), sigrelse(), sigignore(), and sigpause().
                     54:  * The latter are distinguished according to the high 16 bits of
                     55:  * the signal number, as below.
                     56:  */
                     57: #define        SIGSET          0x100
                     58: #define        SIGHOLD         0x200
                     59: #define        SIGRELSE        0x400
                     60: #define        SIGIGNORE       0x800
                     61: #define        SIGPAUSE        0x1000
                     62: 
                     63: #define SIG_BIT(signal)                (1 << ((signal) - 1))
                     64: #endif
                     65: 
                     66: #else
                     67: #include <sys/msig.h>
                     68: 
                     69: #define SIGHUP 1                       /* Hangup */
                     70: #define        SIGINT  2                       /* Interrupt */
                     71: #define SIGQUIT        3                       /* Quit */
                     72: #define SIGALRM        4                       /* Alarm */
                     73: #define SIGTERM        5                       /* Software termination signal */
                     74: #define SIGREST        6                       /* Restart */
                     75: #define SIGSYS 7                       /* Bad argument to system call */
                     76: #define        SIGPIPE 8                       /* Write to pipe with no readers */
                     77: #define SIGKILL        9                       /* Kill */
                     78: #define SIGTRAP        10                      /* Breakpoint */
                     79: #define        SIGSEGV 11                      /* Segmentation violation */
                     80: #endif
                     81: 
                     82: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.