1raise(3C)                Standard C Library Functions                raise(3C)
2
3
4

NAME

6       raise - send a signal to the executing thread
7

SYNOPSIS

9       #include <signal.h>
10
11       int raise(int sig);
12
13

DESCRIPTION

15       The raise() function sends the signal sig to the executing thread. If a
16       signal handler is called, the raise  function  does  not  return  until
17       after the signal handler returns.
18
19
20       The effect of the raise function is equivalent to calling:
21
22         pthread_kill(pthread_self(), sig);
23
24
25
26       See  the  pthread_kill(3C)  manual  page for a detailed list of failure
27       conditions and the signal.h(3HEAD) manual page for a list of signals.
28

RETURN VALUES

30       Upon successful completion, 0 is returned.  Otherwise, −1  is  returned
31       and errno is set to indicate the error.
32

ATTRIBUTES

34       See attributes(5) for descriptions of the following attributes:
35
36
37
38
39       ┌─────────────────────────────┬─────────────────────────────┐
40       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
41       ├─────────────────────────────┼─────────────────────────────┤
42       │Interface Stability          │Standard                     │
43       ├─────────────────────────────┼─────────────────────────────┤
44       │MT-Level                     │MT-Safe                      │
45       └─────────────────────────────┴─────────────────────────────┘
46

SEE ALSO

48       pthread_kill(3C),   pthread_self(3C),  signal.h(3HEAD),  attributes(5),
49       standards(5)
50
51
52
53SunOS 5.11                        23 Mar 2005                        raise(3C)
Impressum