OpenBSD/power support.

This commit is contained in:
rsc
2005-05-01 18:38:12 +00:00
parent e9ad899486
commit cea10000c5
9 changed files with 567 additions and 369 deletions

View File

@@ -5,7 +5,9 @@
#include <sys/wait.h>
#include <sched.h>
#include <signal.h>
#include <ucontext.h>
#if !defined(_OpenBSD__)
# include <ucontext.h>
#endif
#include <sys/utsname.h>
#include "libc.h"
#include "thread.h"
@@ -22,7 +24,12 @@ extern void makecontext(ucontext_t*, void(*)(), int, ...);
# define mcontext_t libthread_mcontext_t
# define ucontext libthread_ucontext
# define ucontext_t libthread_ucontext_t
# include "Darwin-ucontext.h"
# include "power-ucontext.h"
#endif
#if defined(__OpenBSD__)
# include "power-ucontext.h"
extern pid_t rfork_thread(int, void*, int(*)(void*), void*);
#endif
typedef struct Context Context;