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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [a29khif/] [kill.c] - Blame information for rev 207

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/* 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.