raise(3C) — COMPATIBILITY FUNCTIONS
NAME
raise − send signal to program
SYNOPSIS
#include <signal.h>
int raise(int sig);
DESCRIPTION
raise() sends the signal sig to the executing program.
raise() uses kill() to send the signal to the executing program:
kill(getpid(), sig);
See kill(2V) for a detailed list of failure conditions. See signal(3V) for a list of signals.
RETURN VALUES
raise() returns zero if the operation succeeds. Otherwise, raise() returns −1 and errno is set to indicate the error.
SEE ALSO
getpid(2V), kill(2V), signal(3V)
NOTES
The unbundled ANSI C compiler provides ANSI versions of most of the system header files, which are used automatically at compile time. For example, the directive
#include <stdio.h> will use the file provided by this compiler, rather than /usr/include/stdio.h.
Sun Release 4.1 — Last change: 21 June 1994