OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [a29khif/] [kill.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.