1RAISE(3P)                  POSIX Programmer's Manual                 RAISE(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       raise - send a signal to the executing process
13

SYNOPSIS

15       #include <signal.h>
16
17       int raise(int sig);
18
19

DESCRIPTION

21       The raise() function shall send the signal sig to the executing  thread
22       or  process.  If a signal handler is called, the raise() function shall
23       not return until after the signal handler does.
24
25       If the implementation supports the Threads option, the  effect  of  the
26       raise() function shall be equivalent to calling:
27
28
29              pthread_kill(pthread_self(), sig);
30
31       Otherwise,  the  effect  of the raise() function shall be equivalent to
32       calling:
33
34
35              kill(getpid(), sig);
36

RETURN VALUE

38       Upon successful completion, 0 shall be returned. Otherwise, a  non-zero
39       value shall be returned  and errno shall be set to indicate the error.
40

ERRORS

42       The raise() function shall fail if:
43
44       EINVAL The value of the sig argument is an invalid signal number.
45
46
47       The following sections are informative.
48

EXAMPLES

50       None.
51

APPLICATION USAGE

53       None.
54

RATIONALE

56       The term "thread" is an extension to the ISO C standard.
57

FUTURE DIRECTIONS

59       None.
60

SEE ALSO

62       kill(),     sigaction(),     the    Base    Definitions    volume    of
63       IEEE Std 1003.1-2001, <signal.h>, <sys/types.h>
64
66       Portions of this text are reprinted and reproduced in  electronic  form
67       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
68       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
69       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
70       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
71       event of any discrepancy between this version and the original IEEE and
72       The Open Group Standard, the original IEEE and The Open Group  Standard
73       is  the  referee document. The original Standard can be obtained online
74       at http://www.opengroup.org/unix/online.html .
75
76
77
78IEEE/The Open Group                  2003                            RAISE(3P)
Impressum