Annotation of researchv9/sys/h/signal.h, revision 1.1.1.2

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) */
1.1.1.2 ! root        8: #ifdef mc68000
        !             9: #define     ILL_ILLINSTR_FAULT 0x10    /* illegal instruction fault */
        !            10: #define     ILL_PRIVVIO_FAULT  0x20    /* privilege violation fault */
        !            11: #define     ILL_COPROCERR_FAULT        0x34    /* [coprocesser protocol error fault] */
        !            12: #define     ILL_TRAP1_FAULT    0x84    /* trap #1 fault */
        !            13: #define     ILL_TRAP2_FAULT    0x88    /* trap #2 fault */
        !            14: #define     ILL_TRAP3_FAULT    0x8c    /* trap #3 fault */
        !            15: #define     ILL_TRAP4_FAULT    0x90    /* trap #4 fault */
        !            16: #define     ILL_TRAP5_FAULT    0x94    /* trap #5 fault */
        !            17: #define     ILL_TRAP6_FAULT    0x98    /* trap #6 fault */
        !            18: #define     ILL_TRAP7_FAULT    0x9c    /* trap #7 fault */
        !            19: #define     ILL_TRAP8_FAULT    0xa0    /* trap #8 fault */
        !            20: #define     ILL_TRAP9_FAULT    0xa4    /* trap #9 fault */
        !            21: #define     ILL_TRAP10_FAULT   0xa8    /* trap #10 fault */
        !            22: #define     ILL_TRAP11_FAULT   0xac    /* trap #11 fault */
        !            23: #define     ILL_TRAP12_FAULT   0xb0    /* trap #12 fault */
        !            24: #define     ILL_TRAP13_FAULT   0xb4    /* trap #13 fault */
        !            25: #define     ILL_TRAP14_FAULT   0xb8    /* trap #14 fault */
        !            26: #endif mc68000
1.1       root       27: #define        SIGTRAP 5       /* trace trap (not reset when caught) */
1.1.1.2 ! root       28: #define     TRAP_BKPT  0x1     /* a breakpoint trap */
        !            29: #define     TRAP_TRACE 0x2     /* a trace trap */
1.1       root       30: #define        SIGIOT  6       /* IOT instruction */
                     31: #define        SIGEMT  7       /* EMT instruction */
1.1.1.2 ! root       32: #ifdef mc68000
        !            33: #define     EMT_EMU1010                0x28    /* line 1010 emulator trap */
        !            34: #define     EMT_EMU1111                0x2c    /* line 1111 emulator trap */
        !            35: #endif mc68000
1.1       root       36: #define        SIGFPE  8       /* floating point exception */
1.1.1.2 ! root       37: #ifdef vax
1.1       root       38: #define                K_INTOVF 1      /* integer overflow */
                     39: #define                K_INTDIV 2      /* integer divide by zero */
                     40: #define                K_FLTOVF 3      /* floating overflow */
                     41: #define                K_FLTDIV 4      /* floating/decimal divide by zero */
                     42: #define                K_FLTUND 5      /* floating underflow */
                     43: #define                K_DECOVF 6      /* decimal overflow */
                     44: #define                K_SUBRNG 7      /* subscript out of range */
1.1.1.2 ! root       45: #endif
        !            46: #ifdef mc68000
        !            47: #define     FPE_INTDIV_TRAP    0x14    /* integer divide by zero */
        !            48: #define     FPE_CHKINST_TRAP   0x18    /* CHK [CHK2] instruction */
        !            49: #define     FPE_TRAPV_TRAP     0x1c    /* TRAPV [cpTRAPcc TRAPcc] instr */
        !            50: #define     FPE_FLTBSUN_TRAP   0xc0    /* [branch or set on unordered cond] */
        !            51: #define     FPE_FLTINEX_TRAP   0xc4    /* [floating inexact result] */
        !            52: #define     FPE_FLTDIV_TRAP    0xc8    /* [floating divide by zero] */
        !            53: #define     FPE_FLTUND_TRAP    0xcc    /* [floating underflow] */
        !            54: #define     FPE_FLTOPERR_TRAP  0xd0    /* [floating operand error] */
        !            55: #define     FPE_FLTOVF_TRAP    0xd4    /* [floating overflow] */
        !            56: #define     FPE_FLTNAN_TRAP    0xd8    /* [floating Not-A-Number] */
        !            57: #endif mc68000
1.1       root       58: #define        SIGKILL 9       /* kill (cannot be caught or ignored) */
                     59: #define        SIGKIL  9
                     60: #define        SIGBUS  10      /* bus error */
                     61: #define        SIGSEGV 11      /* segmentation violation */
                     62: #define        SIGSYS  12      /* bad argument to system call */
                     63: #define        SIGPIPE 13      /* write on a pipe with no one to read it */
                     64: #define        SIGALRM 14      /* alarm clock */
                     65: #define        SIGTERM 15      /* software termination signal from kill */
                     66: 
                     67: #define        SIGSTOP 17      /* sendable stop signal not from tty */
                     68: #define        SIGTSTP 18      /* stop signal from tty */
                     69: #define        SIGCONT 19      /* continue a stopped process */
                     70: #define        SIGCHLD 20      /* to parent on child stop or exit */
                     71: #define        SIGTTIN 21      /* to readers pgrp upon background tty read */
                     72: #define        SIGTTOU 22      /* like TTIN for output if (tp->t_local&LTOSTOP) */
                     73: #define SIGTINT        23      /* to pgrp on every input character if LINTRUP */
                     74: #define        SIGXCPU 24      /* exceeded CPU time limit */
                     75: #define        SIGXFSZ 25      /* exceeded file size limit */
                     76: 
                     77: #ifndef KERNEL
                     78: typedef int    (*SIG_TYP)();
                     79: SIG_TYP signal();
                     80: #endif
                     81: 
                     82: #define        BADSIG          (int (*)())-1
                     83: #define        SIG_DFL         (int (*)())0
                     84: #define        SIG_IGN         (int (*)())1
                     85: #ifdef KERNEL
                     86: #define        SIG_CATCH       (int (*)())2
                     87: #endif
                     88: #define        SIG_HOLD        (int (*)())3
                     89: 
                     90: #define        SIGISDEFER(x)   (((int)(x) & 1) != 0)
                     91: #define        SIGUNDEFER(x)   (int (*)())((int)(x) &~ 1)
                     92: #define        DEFERSIG(x)     (int (*)())((int)(x) | 1)
                     93: 
                     94: #define        SIGNUMMASK      0377            /* to extract pure signal number */
                     95: #define        SIGDOPAUSE      0400            /* do pause after setting action */
                     96: #define        SIGDORTI        01000           /* do ret+rti after setting action */
                     97: #endif

unix.superglobalmegacorp.com

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