Annotation of coherent/a/usr/include.b4ps2/signal.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * For the benefit of user programmes.
                      3:  */
                      4: #ifndef         SIGNAL_H
                      5: #define         SIGNAL_H       SIGNAL_H
                      6: 
                      7: #ifdef _I386
                      8: extern void    (*signal())();
                      9: extern void    (*sigset())();
                     10: 
                     11: #define SIGHUP 1                       /* Hangup */
                     12: #define        SIGINT  2                       /* Interrupt */
                     13: #define SIGQUIT        3                       /* Quit */
                     14: #define SIGILL 4                       /* Illegal instruction */
                     15: #define        SIGTRAP 5                       /* Trace trap */        
                     16: #define SIGIOT 6                       /* IOT instruction */
                     17: #define SIGABRT        6                       /* replace by SIGIOT in the future */
                     18: #define        SIGEMT  7                       /* emulator trap */
                     19: #define        SIGFPE  8                       /* floating point exception */
                     20: #define SIGKILL        9                       /* Kill */
                     21: #define        SIGBUS  10                      /* bus error */
                     22: #define        SIGSEGV 11                      /* Segmentation violation */
                     23: #define SIGSYS 12                      /* Bad argument to system call */
                     24: #define        SIGPIPE 13                      /* Write to pipe with no readers */
                     25: #define SIGALRM        14                      /* Alarm */
                     26: #define SIGTERM        15                      /* Software termination signal */
                     27: #define        SIGUSR1 16
                     28: #define        SIGUSR2 17
                     29: #define        SIGCLD  18                      /* Death of a child - not done yet */
                     30: #define        SIGCHLD 18                      /* Death of a child - not done yet */
                     31: #define SIGPWR 19                      /* Restart */
                     32: #define        SIGWINCH 20                     /* window change */
                     33: #define        SIGPOLL 22                      /* polled event in stream */
                     34: 
                     35: #define NSIG   23                      /* Number of signals */
                     36: #define        MAXSIG  32
                     37: 
                     38: /*
                     39:  * Special arguments to signal.
                     40:  */
                     41: #define SIG_DFL (void(*)())0           /* Default */
                     42: #define SIG_ERR (void(*)())-1          /* Error */
                     43: #define SIG_IGN (void(*)())1           /* Ignore */
                     44: #define SIG_HOLD (void(*)())2          /* Hold */
                     45: 
                     46: #ifdef KERNEL
                     47: #define        SIGDEFER        0x100
                     48: #define        SIGHOLD         0x200
                     49: #define        SIGRELSE        0x400
                     50: #define        SIGIGNORE       0x800
                     51: #define        SIGPAUSE        0x1000
                     52: #define        SIGDEFAULT      0x8000
                     53: #endif
                     54: 
                     55: #else
                     56: #include <sys/msig.h>
                     57: 
                     58: #define SIGHUP 1                       /* Hangup */
                     59: #define        SIGINT  2                       /* Interrupt */
                     60: #define SIGQUIT        3                       /* Quit */
                     61: #define SIGALRM        4                       /* Alarm */
                     62: #define SIGTERM        5                       /* Software termination signal */
                     63: #define SIGREST        6                       /* Restart */
                     64: #define SIGSYS 7                       /* Bad argument to system call */
                     65: #define        SIGPIPE 8                       /* Write to pipe with no readers */
                     66: #define SIGKILL        9                       /* Kill */
                     67: #define SIGTRAP        10                      /* Breakpoint */
                     68: #define        SIGSEGV 11                      /* Segmentation violation */
                     69: #endif
                     70: 
                     71: #endif

unix.superglobalmegacorp.com

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