File:  [MW Coherent from dump] / coherent / a / usr / man / COHERENT / signal
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



signal()               COHERENT System Call              signal()




Specify disposition of a signal

#include <signal.h>
iinntt (*ssiiggnnaall(_s_i_g_n_u_m, _a_c_t_i_o_n))()
iinntt _s_i_g_n_u_m, (*_a_c_t_i_o_n)();

A process can receive a signal, or interrupt, from a hardware ex-
ception, terminal input, or  a kill call made by another process.
A hardware  exception might be  caused by an  illegal instruction
code  or  a  bad  machine  address,  caught by  the  segmentation
hardware.  A terminal interrupt character, described in detail in
tty, generates  a process interrupt (and in one  case a core dump
file for debugging purposes).

When  a process  receives a  signal,  it performs  an appropriate
action.  The  default action SIG_DFL  causes the process  to ter-
minate.   By calling  signal,  you can  specify  what action  the
process takes when it receives  a given signal signum is the num-
ber of  the signal, and  action points to the  routine to execute
when signum  is received.  The action SIG_IGN  causes a signal to
be ignored.  Note that the signal SIGKILL, which kills a process,
can be  neither caught nor ignored.  signal  returns a pointer to
the previous action.

With  the exception  of SIGILL  and  SIGTRAP, caught  signals are
reset to  the default action  SIG_DFL.  To catch  a signal again,
the specified action must reissue the signal call.

The following list  gives machine-independent signals by symbolic
name (defined  in the header  file signal.h), numeric  value, and
description.  Signals  marked by an asterisk  produce a core dump
if the action is SIG_DFL.


     SSIIGGHHUUPP    1    Hangup
     SSIIGGIINNTT    2    Interrupt
     SSIIGGQQUUIITT   3*   Quit
     SSIIGGAALLRRMM   4    Alarm clock
     SSIIGGTTEERRMM   5    Termination
     SSIIGGRREESSTT   6    Restart indication
     SSIIGGSSYYSS    7*   Bad system call argument
     SSIIGGPPIIPPEE   8    Write on closed pipe
     SSIIGGKKIILLLL   9    Kill
     SSIIGGTTRRAAPP   10*  Breakpoint
     SSIIGGSSEEGGVV   11*  Segmentation violation


The  following lists gives  machine-dependent signals  defined in
the header file msig.h.

The following signals are  specific to the Zilog Z8002 version of
COHERENT:




COHERENT Lexicon                                           Page 1




signal()               COHERENT System Call              signal()




     SSIIGGUUNNII    12*  Unimplemented instruction
     SSIIGGPPRRVV    13*  Privileged instruction
     SSIIGGNNVVII    14*  Non-vectored interrupt
     SSIIGGPPAARR    15*  Parity error


The following signals are  specific to the Zilog Z8001 version of
COHERENT:


     SSIIGGEEPPAA    12*  Extended processor trap
     SSIIGGPPRRVV    13*  Privileged instruction
     SSIIGGNNVVII    14*  Non-vectored interrupt
     SSIIGGNNMMII    15*  Non-maskable interrupt (not in all versions)


The following  signals are  specific to  the Intel 8086  or 80286
version of COHERENT:


     SSIIGGDDIIVVEE   12*  Divide error
     SSIIGGOOVVFFLL   13*  Overflow


A signal  may be  caught during  a system call  that has  not yet
returned.  In  this case, the  system call appears  to fail, with
errno set to EINTR.   If desired, such an interrupted system call
may be  reissued.  System calls which may  be interrupted in this
way include pause, read on a  device such as a terminal, write on
a pipe, and wait.

***** See Also *****

COHERENT system call, kill, ptrace(), sh, signame

***** Diagnostics *****

signal returns  a pointer to the previous  action on success.  It
returns (int)-1 for invalid signum.

















COHERENT Lexicon                                           Page 2



unix.superglobalmegacorp.com

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