Welcome to mirror list, hosted at ThFree Co, Russian Federation.

kill.c « a29khif « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ff9fe5428a7e7115ff083a39c4a3b682dd9a1b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Stub for kill.  */

#include <_ansi.h>
#include <errno.h>

/* The pid argument should be of type pid_t.  */

int
_DEFUN (_kill, (pid, sig),
	int pid _AND
	int sig)
{
  if (pid == 1 || pid < 0)
    {
      if (sig == 0)
	return 0;
      return raise (sig);
    }
  errno = EINVAL;
  return -1;
}