Annotation of researchv9/cmd/cfront/CC/signal.h, revision 1.1.1.1

1.1       root        1: #ifndef        NSIG
                      2: #define NSIG   32
                      3: 
                      4: #define        SIGHUP  1       /* hangup */
                      5: #define        SIGINT  2       /* interrupt */
                      6: #define        SIGQUIT 3       /* quit */
                      7: #define        SIGILL  4       /* illegal instruction (not reset when caught) */
                      8: #define        SIGTRAP 5       /* trace trap (not reset when caught) */
                      9: #define        SIGIOT  6       /* IOT instruction */
                     10: #define        SIGEMT  7       /* EMT instruction */
                     11: #define        SIGFPE  8       /* floating point exception */
                     12: #define                K_INTOVF 1      /* integer overflow */
                     13: #define                K_INTDIV 2      /* integer divide by zero */
                     14: #define                K_FLTOVF 3      /* floating overflow */
                     15: #define                K_FLTDIV 4      /* floating/decimal divide by zero */
                     16: #define                K_FLTUND 5      /* floating underflow */
                     17: #define                K_DECOVF 6      /* decimal overflow */
                     18: #define                K_SUBRNG 7      /* subscript out of range */
                     19: #define        SIGKILL 9       /* kill (cannot be caught or ignored) */
                     20: #define        SIGKIL  9
                     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 on a pipe with no one to read it */
                     25: #define        SIGALRM 14      /* alarm clock */
                     26: #define        SIGTERM 15      /* software termination signal from kill */
                     27: 
                     28: #define        SIGSTOP 17      /* sendable stop signal not from tty */
                     29: #define        SIGTSTP 18      /* stop signal from tty */
                     30: #define        SIGCONT 19      /* continue a stopped process */
                     31: #define        SIGCHLD 20      /* to parent on child stop or exit */
                     32: #define        SIGTTIN 21      /* to readers pgrp upon background tty read */
                     33: #define        SIGTTOU 22      /* like TTIN for output if (tp->t_local&LTOSTOP) */
                     34: #define SIGTINT        23      /* to pgrp on every input character if LINTRUP */
                     35: #define        SIGXCPU 24      /* exceeded CPU time limit */
                     36: #define        SIGXFSZ 25      /* exceeded file size limit */
                     37: 
                     38: #ifndef KERNEL
                     39: typedef int    (*SIG_TYP)();
                     40: typedef void   (*SIG_ARG_TYP)();
                     41: SIG_TYP signal(int, SIG_ARG_TYP);
                     42: #endif
                     43: 
                     44: #define        BADSIG          (SIG_TYP)-1
                     45: #define        SIG_DFL         (SIG_TYP)0
                     46: #define        SIG_IGN         (SIG_TYP)1
                     47: #ifdef KERNEL
                     48: #define        SIG_CATCH       (SIG_TYP)2
                     49: #endif
                     50: #define        SIG_HOLD        (SIG_TYP)3
                     51: 
                     52: #define        SIGISDEFER(x)   (((int)(x) & 1) != 0)
                     53: #define        SIGUNDEFER(x)   (SIG_TYP)((int)(x) &~ 1)
                     54: #define        DEFERSIG(x)     (SIG_TYP)((int)(x) | 1)
                     55: 
                     56: #define        SIGNUMMASK      0377            /* to extract pure signal number */
                     57: #define        SIGDOPAUSE      0400            /* do pause after setting action */
                     58: #define        SIGDORTI        01000           /* do ret+rti after setting action */
                     59: #endif

unix.superglobalmegacorp.com

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