summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-08-10 15:23:39 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-08-10 15:23:39 +0000
commitfa1272e9b7c054e8715b64b3eb1cc54233f0f869 (patch)
tree275d47efde1e9579e4e289cd8a9c4cc268ca45ca
parent5a65d0d833140521fa1dfcc0a700ad25851a3183 (diff)
entered into RCS
-rw-r--r--pfinet/linux/kernel.h35
1 files changed, 31 insertions, 4 deletions
diff --git a/pfinet/linux/kernel.h b/pfinet/linux/kernel.h
index f4859a05..dcd5acf3 100644
--- a/pfinet/linux/kernel.h
+++ b/pfinet/linux/kernel.h
@@ -3,15 +3,42 @@
#include <stdio.h>
#include <linux/sched.h>
+#include <stdlib.h>
+#include <assert.h>
#define printk printf
-int getname (const char *, char **);
-void putname (char *);
+extern inline int
+getname (const char *name, char **newp)
+{
+ *newp = malloc (strlen (name) + 1);
+ strcpy (*newp, name);
+ return 0;
+}
+extern inline void
+putname (char *p)
+{
+ free (p);
+}
-int kill_proc (int, int, int);
-int kill_pg (int, int, int);
+/* These two functions are used only to send SIGURG. But I can't
+ find any SIGIO code at all. So we'll just punt on that; clearly
+ Linux is missing the point. SIGURG should only be sent for
+ sockets that have explicitly requested it. */
+extern inline int
+kill_proc (int pid, int signo, int priv)
+{
+ assert (signo == SIGURG);
+ return 0;
+}
+
+extern inline int
+kill_pg (int pgrp, int signo, int priv)
+{
+ assert (signo == SIGURG);
+ return 0;
+}
#endif