shithub: scc

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