ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/signal.h
Revision: 2.2
Committed: Mon Sep 21 12:04:23 1992 UTC (32 years, 7 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.1: +27 -27 lines
Log Message:
Changes for PC port

File Contents

# User Rev Content
1 greg 2.1 /* Copyright (c) 1992 Regents of the University of California */
2    
3     /* SCCSid "$SunId$ LBL" */
4    
5     /*
6     * Dummy signal definitions for non-UNIX systems
7     */
8    
9     #ifdef NIX
10    
11     #define NSIG 2
12    
13 greg 2.2 #define SIGHUP 1 /* hangup */
14     #define SIGINT 1 /* interrupt */
15     #define SIGQUIT 1 /* quit */
16     #define SIGILL 1 /* illegal instruction (not reset when caught) */
17     #define SIGTRAP 1 /* trace trap (not reset when caught) */
18     #define SIGIOT 1 /* IOT instruction */
19     #define SIGEMT 1 /* EMT instruction */
20     #define SIGFPE 1 /* floating point exception */
21     #define SIGKILL 1 /* kill (cannot be caught or ignored) */
22     #define SIGBUS 1 /* bus error */
23     #define SIGSEGV 1 /* segmentation violation */
24     #define SIGSYS 1 /* bad argument to system call */
25     #define SIGPIPE 1 /* write on a pipe with no one to read it */
26     #define SIGALRM 1 /* alarm clock */
27     #define SIGTERM 1 /* software termination signal from kill */
28     #define SIGURG 1 /* urgent condition on IO channel */
29     #define SIGCONT 1 /* continue a stopped process */
30     #define SIGCHLD 1 /* to parent on child stop or exit */
31     #define SIGTTIN 1 /* to readers pgrp upon background tty read */
32     #define SIGTTOU 1 /* like TTIN for output if (tp->t_local&LTOSTOP) */
33     #define SIGIO 1 /* input/output possible signal */
34     #define SIGLOST 1 /* resource lost (eg, record-lock lost) */
35 greg 2.1
36 greg 2.2 #define BADSIG (int (*)())-1
37     #define SIG_DFL (int (*)())0
38     #define SIG_IGN (int (*)())1
39 greg 2.1
40     /*
41     * Macro for converting signal number to a mask suitable for sigblock().
42     */
43     #define sigmask(m) (1 << ((m)-1))
44    
45     #define signal(n,f) SIG_DFL
46    
47     #define sigblock(m) 0
48 greg 2.2
49     #define alarm(t) 0
50 greg 2.1
51     #else
52    
53     #include "/usr/include/signal.h"
54    
55     #endif