BSD 3 development
[unix-history] / usr / man / man2 / signal.2
index 50da35b..e688f19 100644 (file)
@@ -4,13 +4,13 @@ signal \- catch or ignore signals
 .SH SYNOPSIS
 .B #include <signal.h>
 .PP
 .SH SYNOPSIS
 .B #include <signal.h>
 .PP
-.B (*signal(sig, func))()
+.B (*signal(sig, func))();
 .br
 .B (*func)();
 .SH DESCRIPTION
 A signal
 is generated by some abnormal event,
 .br
 .B (*func)();
 .SH DESCRIPTION
 A signal
 is generated by some abnormal event,
-initiated either by user at a typewriter (quit, interrupt),
+initiated either by user at a terminal (quit, interrupt),
 by a program error (bus error, etc.),
 or by request of another program (kill).
 Normally all signals
 by a program error (bus error, etc.),
 or by request of another program (kill).
 Normally all signals
@@ -36,7 +36,7 @@ SIGKILL       9       kill (cannot be caught or ignored)
 SIGBUS 10*     bus error
 SIGSEGV        11*     segmentation violation
 SIGSYS 12*     bad argument to system call
 SIGBUS 10*     bus error
 SIGSEGV        11*     segmentation violation
 SIGSYS 12*     bad argument to system call
-SIGPIPE        13      write on a pipe or link with no one to read it
+SIGPIPE        13      write on a pipe with no one to read it
 SIGALRM        14      alarm clock
 SIGTERM        15      software termination signal
        16      unassigned
 SIGALRM        14      alarm clock
 SIGTERM        15      software termination signal
        16      unassigned
@@ -78,7 +78,7 @@ during a
 .I read
 or
 .IR write (2)
 .I read
 or
 .IR write (2)
-on a slow device (like a typewriter; but not a file);
+on a slow device (like a terminal; but not a file);
 and during
 .I pause
 or
 and during
 .I pause
 or
@@ -118,7 +118,11 @@ reset, there is no chance to catch it.
 The type specification of the routine and its
 .I func
 argument are problematical.
 The type specification of the routine and its
 .I func
 argument are problematical.
-.SH ASSEMBLER
+.PP
+On the VAX-11, odd values for
+.I func
+are the same as SIG_IGN.
+.SH "ASSEMBLER (PDP-11)"
 (signal = 48.)
 .br
 .B sys  signal; sig; label
 (signal = 48.)
 .br
 .B sys  signal; sig; label
@@ -138,3 +142,35 @@ specifies an address in the process
 where an interrupt is simulated.
 An RTI or RTT instruction will return from the
 interrupt.
 where an interrupt is simulated.
 An RTI or RTT instruction will return from the
 interrupt.
+.SH "NOTES (VAX-11)"
+The following defines the mapping of hardware traps to signals:
+.PP
+.nf
+.ta \w'     Floating divide by zero   'u +\w'15*  'u
+Arithemetic traps:
+.in +5
+Integer overflow       SIGFPE
+Integer division by zero       SIGFPE
+Floating overflow      SIGFPE
+Floating underflow     SIGFPE
+Floating division by zero      SIGFPE
+Decimal division by zero       SIGFPE
+Decimal overflow       SIGFPE
+Subscript-range        SIGFPE
+.in -5
+Access control (i.e. protection
+  violation)
+  except length violation      SIGBUS
+Translation not valid, and
+  Length access control        SIGSEGV
+Reserved instruction   SIGILL
+Customer-reserved instr.       SIGEMT
+Reserved operand       SIGILL
+Reserved addressing    SIGILL
+Trace pending  SIGTRAP
+Bpt instruction        SIGTRAP
+Compatibility-mode     SIGEMT
+Chme   SIGSEGV
+Chms   SIGSEGV
+Chmu   SIGBUS
+.fi