Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ signal(3F) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

kill(1)

kill(3f)

signal(3c)



SIGNAL(3F)              COMMAND REFERENCE              SIGNAL(3F)



NAME
     signal - change the action for a signal

SYNOPSIS
     integer function signal (signum, proc, flag)
     integer signum, flag
     external proc

DESCRIPTION
     When a process incurs a signal (see signal(3c)) the default
     action is usually to clean up and abort.  The user may
     choose to write an alternative signal handling routine.  A
     call to signal is the way this alternate action is specified
     to the system.

     Signum is the signal number (see signal(3c)).  If flag is
     negative, then proc must be the name of the user signal
     handling routine.  If flag is 0 or positive, then proc is
     ignored and the value of flag is passed to the system as the
     signal action definition.  In particular, this is how
     previously saved signal actions can be restored.  Two
     possible values for flag have specific meanings:  0 means
     use the default action.  1 means ignore this signal.

     A positive returned value is the previous action definition.
     A value greater than 1 is the address of a routine that was
     to have been called on occurrence of the given signal.  The
     returned value can be used in subsequent calls to signal in
     order to restore a previous action definition.  A negative
     returned value is the negation of a system error code.  (See
     perror(3f).)

FILES
     /usr/lib/libU77.a        f77 UTek system interface library.

CAVEATS
     F77 arranges to trap certain signals when a process is
     started.  The only way to restore the default f77 action is
     to save the returned value from the first call to signal.

     If the user signal handler is called, it will be passed the
     signal number as an integer argument.

SEE ALSO
     kill(1), kill(3f), signal(3c).










Printed 10/17/86                                                1





































































%%index%%
na:72,75;
sy:147,567;
de:714,1507;
fi:2221,146;
ca:2367,420;
se:2787,132;
%%index%%000000000107

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026