summaryrefslogtreecommitdiff
path: root/lib/libc/gen/raise.3
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-11-10 03:51:42 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-11-10 03:51:42 +0000
commit4a9a086eeac4305d4fd3621820cefe3566923484 (patch)
tree3b0d3347b2df53d2a6c77985ea4206517cac4c5d /lib/libc/gen/raise.3
parent33e8c557e5b6ee43d35fb1561d92ac277c06b178 (diff)
raise() sends the signal to the current thread and only one error can occur.
ok jmc@
Diffstat (limited to 'lib/libc/gen/raise.3')
-rw-r--r--lib/libc/gen/raise.327
1 files changed, 13 insertions, 14 deletions
diff --git a/lib/libc/gen/raise.3 b/lib/libc/gen/raise.3
index 634eb08e055..abb9738bdcb 100644
--- a/lib/libc/gen/raise.3
+++ b/lib/libc/gen/raise.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: raise.3,v 1.8 2007/05/31 19:19:28 jmc Exp $
+.\" $OpenBSD: raise.3,v 1.9 2012/11/10 03:51:41 guenther Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,12 +31,12 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: November 10 2012 $
.Dt RAISE 3
.Os
.Sh NAME
.Nm raise
-.Nd send a signal to the current process
+.Nd send a signal to the current thread
.Sh SYNOPSIS
.Fd #include <signal.h>
.Ft int
@@ -46,27 +46,26 @@ The
.Fn raise
function sends the signal
.Fa sig
-to the current process.
+to the current thread.
.Sh RETURN VALUES
Upon successful completion, a value of 0 is returned.
Otherwise, a value of \-1 is returned and the global variable
.Va errno
is set to indicate the error.
.Sh ERRORS
-The
.Fn raise
-function may fail and set
-.Va errno
-for any of the errors specified for the
-library functions
-.Xr getpid 2
-and
-.Xr kill 2 .
+will fail and no signal will be sent if:
+.Bl -tag -width Er
+.It Bq Er EINVAL
+.Fa sig
+is not a valid signal number.
+.El
.Sh SEE ALSO
-.Xr getpid 2 ,
.Xr kill 2
.Sh STANDARDS
The
.Fn raise
function conforms to
-.St -ansiC .
+.St -ansiC
+and
+.St -p1003.1-2008 .