TIOCGPGRP copies an int out of the kernel
[unix-history] / usr / src / lib / libc / gen / raise.3
CommitLineData
1db1d545
KB
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\" @(#)raise.3 5.1 (Berkeley) %G%
7.\"
8.TH RAISE 3 ""
9.UC 7
10.SH NAME
11raise \- send a signal to the current process
12.SH SYNOPSIS
13int raise(int sig);
14.SH DESCRIPTION
15The
16.I raise
17function sends the signal
18.I sig
19to the current process.
20.SH RETURNS
21Upon successful completion, a value of 0 is returned.
22Otherwise, a value of -1 is returned and
23.I errno
24is set to indicate the error.
25.SH ERRORS
26.I Raise
27may fail and set
28.I errno
29for any of the errors specified for the library function
30.IR getpid(2)
31and
32.IR kill(2).
33.SH SEE ALSO
34kill(2)
35.SH STANDARDS
36.I Raise
37conforms to ANSI X3.159-1989 (``ANSI C'').