shithub: riscv

ref: acfc389bb90944f3ac1200eec4a80b49adaf4e6a
dir: /sys/src/ape/lib/ap/gen/raise.c/

View raw version
/* not a posix function, but implemented with posix kill, getpid */

#include <sys/types.h>
#include <signal.h>
#include <unistd.h>

int
raise(int sig)
{
	return kill(getpid(), sig);
}