shithub: scc

ref: baa15c7b760f133166f213f22b7732cba6ac671c
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);
}