1.\" Copyright (c) 1990, 1991 The Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" %sccs.include.redist.man% 5.\" 6.\" @(#)raise.3 5.2 (Berkeley) 04/19/91 7.\" 8.Dd 9.Dt RAISE 3 10.Os 11.Sh NAME 12.Nm raise 13.Nd send a signal to the current process 14.Sh SYNOPSIS 15.Fd #include <signal.h> 16.Ft int 17.Fn raise "int sig" 18.Sh DESCRIPTION 19The 20.Fn raise 21function sends the signal 22.Fa sig 23to the current process. 24.Sh RETURN VALUES 25Upon successful completion, a value of 0 is returned. 26Otherwise, a value of \-1 is returned and the global variable 27.Va errno 28is set to indicate the error. 29.Sh ERRORS 30The 31.Fn raise 32function 33may fail and set 34.Va errno 35for any of the errors specified for the 36library functions 37.Xr getpid 2 38and 39.Xr kill 2 . 40.Sh SEE ALSO 41.Xr kill 2 42.Sh STANDARDS 43The 44.Fn raise 45function 46conforms to 47.St -ansiC . 48