minix/lib/libc/sys-minix/kill.c
Lionel Sambuc b90d99dab3 Message type for PM_{KILL,SIGACTION}
Change-Id: I7fac9a894e319671e12bfa7430984ca1cf24da33
2014-07-28 17:05:42 +02:00

22 lines
414 B
C

#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>
#include <string.h>
#include <signal.h>
#ifdef __weak_alias
__weak_alias(kill, _kill)
#endif
int kill(proc, sig)
pid_t proc; /* which process is to be sent the signal */
int sig; /* signal number */
{
message m;
memset(&m, 0, sizeof(m));
m.m_lc_pm_sig.pid = proc;
m.m_lc_pm_sig.nr = sig;
return(_syscall(PM_PROC_NR, PM_KILL, &m));
}