more freebsd work

This commit is contained in:
rsc
2004-12-28 04:20:39 +00:00
parent 9cb22ba607
commit d54ead7fb9
10 changed files with 118 additions and 40 deletions

View File

@@ -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;