repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vm: fix failed alloc condition
[minix.git]
/
lib
/
libc
/
sys-minix
/
kill.c
blob
fb4c86c532109dd24dc3177b20c042782723e0c9
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <signal.h>
6
7
#ifdef __weak_alias
8
__weak_alias
(
kill
,
_kill
)
9
#endif
10
11
int
kill
(
proc
,
sig
)
12
int
proc
;
/* which process is to be sent the signal */
13
int
sig
;
/* signal number */
14
{
15
message m
;
16
17
m
.
m1_i1
=
proc
;
18
m
.
m1_i2
=
sig
;
19
return
(
_syscall
(
PM_PROC_NR
,
KILL
, &
m
));
20
}