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