shithub: scc

ref: f35fcff7b5fef0b95079c09445b5e60659dc271e
dir: /lib/c/target/posix/raise.c/

View raw version

#include <stddef.h>
#include <signal.h>
#include "../../syscall.h"

#undef raise

/* TODO: Add sys.h and store these definitions there */

extern int _getpid(void);
extern int _kill(int pid, int signum);

int
raise(int signum)
{
	return _kill(_getpid(), signum);
}