OSDN Git Service

Initial revision
[pf3gnuchains/pf3gnuchains4x.git] / newlib / libc / sys / h8500hms / misc.c
1 /* Misc. operating system stubs.  */
2
3 #include <_ansi.h>
4 #include <sys/types.h>
5 #include <sys/stat.h>
6 #include <signal.h>
7
8 /* _raise(), getpid(), and kill() are required by abort().
9    getpid/kill are prefixed with '_' because of MISSING_SYSCALL_NAMES.  */
10
11 int _DEFUN(_raise,(sig),
12            int sig)
13 {
14   return 0;
15 }
16
17 int _DEFUN(_getpid,(),)
18 {
19   return 0;
20 }
21
22 int _DEFUN(_kill,(pid, sig),
23            int pid _AND
24            int sig)
25 {
26   if (sig == SIGABRT)
27     asm ("mov.w #34,r3; trapa #15");
28   return 0;
29 }