public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c8a8f0
)
Initial revision
author
eck
<none@none>
Thu, 11 May 1989 12:32:26 +0000
(12:32 +0000)
committer
eck
<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]
patch
|
blob
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
+++ b/
lang/cem/libcc.ansi/signal/raise.c
@@ -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);
+}