xref: /plan9-contrib/sys/src/ape/lib/ap/gen/raise.c (revision 219b2ee8daee37f4aad58d63f21287faa8e4ffdc)
1 #define _POSIX_SOURCE
2 /* not a posix function, but implemented with posix kill, getpid */
3 
4 #include <signal.h>
5 #include <sys/types.h>
6 #include <unistd.h>
7 
8 int
9 raise(int sig)
10 {
11 	return kill(getpid(), sig);
12 }
13