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

_kill.c « arm « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 81354d47346314ebccdf1bb5de0d52e585bfbe5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <_ansi.h>
#include <signal.h>
#include "swi.h"

int _kill _PARAMS ((int, int));

int
_kill (int pid, int sig)
{
  (void) pid; (void) sig;
#ifdef ARM_RDI_MONITOR
  /* Note: The pid argument is thrown away.  */
  switch (sig)
    {
    case SIGABRT:
      return do_AngelSWI (AngelSWI_Reason_ReportException,
			  (void *) ADP_Stopped_RunTimeError);
    default:
      return do_AngelSWI (AngelSWI_Reason_ReportException,
			  (void *) ADP_Stopped_ApplicationExit);
    }
#else
  asm ("swi %a0" :: "i" (SWI_Exit));
#endif
}