set RFNOTEG when we can
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user