set RFNOTEG when we can

This commit is contained in:
rsc
2006-06-04 16:06:49 +00:00
parent 14695b90ac
commit 17558fbe2d
3 changed files with 14 additions and 1 deletions

View File

@@ -46,6 +46,14 @@ extern void makecontext(ucontext_t*, void(*)(), int, ...);
extern pid_t rfork_thread(int, void*, int(*)(void*), void*);
#endif
#if defined(__sun__)
# define mcontext libthread_mcontext
# define mcontext_t libthread_mcontext_t
# define ucontext libthread_ucontext
# define ucontext_t libthread_ucontext_t
# include "sparc-ucontext.h"
#endif
#if defined(__arm__)
int getmcontext(mcontext_t*);
void setmcontext(const mcontext_t*);
@@ -53,6 +61,7 @@ void setmcontext(const mcontext_t*);
#define getcontext(u) getmcontext(&(u)->uc_mcontext)
#endif
typedef struct Context Context;
typedef struct Execjob Execjob;
typedef struct Proc Proc;