aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/threadimpl.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-12-28 04:20:39 +0000
committerrsc <devnull@localhost>2004-12-28 04:20:39 +0000
commitd54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f (patch)
tree78dc9f76638ed04805c5627252406072860c868b /src/libthread/threadimpl.h
parent9cb22ba60776e22568798b40560543ddf6c8ed2c (diff)
downloadplan9port-d54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f.tar.gz
plan9port-d54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f.tar.bz2
plan9port-d54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f.zip
more freebsd work
Diffstat (limited to 'src/libthread/threadimpl.h')
-rw-r--r--src/libthread/threadimpl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
index d4acebeb..32afa5fe 100644
--- a/src/libthread/threadimpl.h
+++ b/src/libthread/threadimpl.h
@@ -1,4 +1,20 @@
+#include "u.h"
+#include <errno.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sched.h>
+#include <signal.h>
#include <ucontext.h>
+#include "libc.h"
+#include "thread.h"
+
+#if defined(__FreeBSD__) && !defined(__FreeBSD5__)
+extern int getcontext(ucontext_t*);
+extern void setcontext(ucontext_t*);
+extern int swapcontext(ucontext_t*, ucontext_t*);
+extern void makecontext(ucontext_t*, void(*)(), int, ...);
+#endif
typedef struct Context Context;
typedef struct Execjob Execjob;