fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / sys / mmixware / kill.c
blobc01f53c81a73cfc00e7c118002492c57a482f107
1 /* kill for MMIXware.
3 Copyright (C) 2001 Hans-Peter Nilsson
5 Permission to use, copy, modify, and distribute this software is
6 freely granted, provided that the above copyright notice, this notice
7 and the following disclaimer are preserved with no changes.
9 THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
10 IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
12 PURPOSE. */
14 #include <_ansi.h>
15 #include <sys/types.h>
16 #include <sys/stat.h>
17 #include "sys/syscall.h"
18 #include <errno.h>
20 _kill (n, m)
22 if (n == 1)
23 return TRAP1i (SYS_halt, 0);
25 errno = EPERM;
26 return -1;