Initial revision
authoreck <none@none>
Thu, 11 May 1989 12:32:26 +0000 (12:32 +0000)
committereck <none@none>
Thu, 11 May 1989 12:32:26 +0000 (12:32 +0000)
lang/cem/libcc.ansi/signal/raise.c [new file with mode: 0644]

diff --git a/lang/cem/libcc.ansi/signal/raise.c b/lang/cem/libcc.ansi/signal/raise.c
new file mode 100644 (file)
index 0000000..f426ab1
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
+ * See the copyright notice in the ACK home directory, in the file "Copyright".
+ */
+/* $Header$ */
+
+#include       <signal.h>
+
+int kill(int pid, int sig);
+int getpid(void);
+
+int
+raise(int sig)
+{
+       if (sig < 0 || sig > _NSIG)
+               return -1;
+       return kill(getpid(), sig);
+}