Lionel Sambuc 433d6423c3 New sources layout
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00

23 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));
}