repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixes for host gcc 4.6.1
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
sys
/
a29khif
/
kill.c
blob
ff9fe5428a7e7115ff083a39c4a3b682dd9a1b43
1
/* Stub for kill. */
2
3
#include <_ansi.h>
4
#include <errno.h>
5
6
/* The pid argument should be of type pid_t. */
7
8
int
9
_DEFUN
(
_kill
, (
pid
,
sig
),
10
int
pid _AND
11
int
sig
)
12
{
13
if
(
pid
==
1
||
pid
<
0
)
14
{
15
if
(
sig
==
0
)
16
return
0
;
17
return
raise
(
sig
);
18
}
19
errno
=
EINVAL
;
20
return
-
1
;
21
}