repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git]
/
newlib
/
libc
/
sys
/
a29khif
/
kill.c
blob
ecb489e38edae92bb4eba745e59a1e830f6d413d
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
_kill
(
int
pid
,
10
int
sig
)
11
{
12
if
(
pid
==
1
||
pid
<
0
)
13
{
14
if
(
sig
==
0
)
15
return
0
;
16
return
raise
(
sig
);
17
}
18
errno
=
EINVAL
;
19
return
-
1
;
20
}