1*48352Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California. 246465Sbostic.\" All rights reserved. 346465Sbostic.\" 446465Sbostic.\" %sccs.include.redist.man% 546465Sbostic.\" 6*48352Scael.\" @(#)raise.3 5.2 (Berkeley) 04/19/91 746465Sbostic.\" 8*48352Scael.Dd 9*48352Scael.Dt RAISE 3 10*48352Scael.Os 11*48352Scael.Sh NAME 12*48352Scael.Nm raise 13*48352Scael.Nd send a signal to the current process 14*48352Scael.Sh SYNOPSIS 15*48352Scael.Fd #include <signal.h> 16*48352Scael.Ft int 17*48352Scael.Fn raise "int sig" 18*48352Scael.Sh DESCRIPTION 1946465SbosticThe 20*48352Scael.Fn raise 2146465Sbosticfunction sends the signal 22*48352Scael.Fa sig 2346465Sbosticto the current process. 24*48352Scael.Sh RETURN VALUES 2546465SbosticUpon successful completion, a value of 0 is returned. 26*48352ScaelOtherwise, a value of \-1 is returned and the global variable 27*48352Scael.Va errno 2846465Sbosticis set to indicate the error. 29*48352Scael.Sh ERRORS 30*48352ScaelThe 31*48352Scael.Fn raise 32*48352Scaelfunction 3346465Sbosticmay fail and set 34*48352Scael.Va errno 35*48352Scaelfor any of the errors specified for the 36*48352Scaellibrary functions 37*48352Scael.Xr getpid 2 3846465Sbosticand 39*48352Scael.Xr kill 2 . 40*48352Scael.Sh SEE ALSO 41*48352Scael.Xr kill 2 42*48352Scael.Sh STANDARDS 43*48352ScaelThe 44*48352Scael.Fn raise 45*48352Scaelfunction 46*48352Scaelconforms to 47*48352Scael.St -ansiC . 48