etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libc / sys / kill.c
blob4bedfdd5fdb98ad072d0656025ada885af1f92a4
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <string.h>
6 #include <signal.h>
8 #ifdef __weak_alias
9 __weak_alias(kill, _kill)
10 #endif
12 int kill(proc, sig)
13 pid_t proc; /* which process is to be sent the signal */
14 int sig; /* signal number */
16 message m;
18 memset(&m, 0, sizeof(m));
19 m.m_lc_pm_sig.pid = proc;
20 m.m_lc_pm_sig.nr = sig;
21 return(_syscall(PM_PROC_NR, PM_KILL, &m));