OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [sys/] [a29khif/] [kill.c] - Diff between revs 207 and 345

Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 345
/* Stub for kill.  */
/* Stub for kill.  */
 
 
#include <_ansi.h>
#include <_ansi.h>
#include <errno.h>
#include <errno.h>
 
 
/* The pid argument should be of type pid_t.  */
/* The pid argument should be of type pid_t.  */
 
 
int
int
_DEFUN (_kill, (pid, sig),
_DEFUN (_kill, (pid, sig),
        int pid _AND
        int pid _AND
        int sig)
        int sig)
{
{
  if (pid == 1 || pid < 0)
  if (pid == 1 || pid < 0)
    {
    {
      if (sig == 0)
      if (sig == 0)
        return 0;
        return 0;
      return raise (sig);
      return raise (sig);
    }
    }
  errno = EINVAL;
  errno = EINVAL;
  return -1;
  return -1;
}
}
 
 

powered by: WebSVN 2.1.0

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