From 4606798ea008ab8d3dcec4757198ac0294b46a6a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Sat, 9 Oct 2010 02:31:22 +0000 Subject: 2010-10-08 Bernd Schmidt Joseph Myers * configure.in: Handle tic6x targets. * configure: Regenerate. * tic6x/Makefile.in, tic6x/configure.in, tic6x/crt0.S, tic6x/getpid.c, tic6x/kill.c, tic6x/sbrk.c, tic6x/syscalls.c: New. * tic6x/configure: New (generated). --- libgloss/tic6x/kill.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 libgloss/tic6x/kill.c (limited to 'libgloss/tic6x/kill.c') diff --git a/libgloss/tic6x/kill.c b/libgloss/tic6x/kill.c new file mode 100644 index 000000000..3ed228fd2 --- /dev/null +++ b/libgloss/tic6x/kill.c @@ -0,0 +1,29 @@ +/* kill.c -- remove a process. + * + * Copyright (c) 1995 Cygnus Support + * + * The authors hereby grant permission to use, copy, modify, distribute, + * and license this software and its documentation for any purpose, provided + * that existing copyright notices are retained in all copies and that this + * notice is included verbatim in any distributions. No written agreement, + * license, or royalty fee is required for any of the authorized uses. + * Modifications to this software may be copyrighted by their authors + * and need not follow the licensing terms described here, provided that + * the new terms are clearly indicated on the first page of each file where + * they apply. + */ +#include <_ansi.h> +#define __MYPID 1 + +/* + * kill -- go out via exit... + */ +int +_DEFUN (kill, (pid, sig), + int pid _AND + int sig) +{ + if(pid == __MYPID) + _exit(sig); + return 0; +} -- cgit v1.2.3