summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-08-02 17:28:07 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-08-02 17:28:07 +0000
commit1995ad1132f93a0bfbb4b6c35a779693577b9924 (patch)
tree01b2f9cc0da01e2dec6112b004461707eee6fa98
parentf58da9049e4fbfee9600fad08b1b648bcc37a96d (diff)
Formerly sched.h.~2~
-rw-r--r--pfinet/linux/sched.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/pfinet/linux/sched.h b/pfinet/linux/sched.h
index e69de29b..734a8b4d 100644
--- a/pfinet/linux/sched.h
+++ b/pfinet/linux/sched.h
@@ -0,0 +1,32 @@
+#ifndef _HACK_SCHED_H
+#define _HACK_SCHED_H
+
+#include <linux/wait.h>
+#include <sys/signal.h>
+
+extern unsigned long volatile jiffies;
+#define HZ 100
+extern struct task_struct *current;
+
+struct task_struct
+{
+ uid_t pgrp, pid;
+ int flags;
+ int timeout;
+ int signal;
+ int blocked;
+};
+
+/* FLAGS in task_struct's. */
+#define PF_EXITING 1
+
+void wake_up_interruptible (struct wait_queue **);
+void interruptible_sleep_on (struct wait_queue **);
+
+int send_sig (u_long, struct task_struct *, int);
+
+int fetch_current_time (void);
+
+#define CURRENT_TIME (fetch_current_time())
+
+#endif