mac
This commit is contained in:
parent
3bc4abf41e
commit
93eb0e23c0
@ -15,19 +15,6 @@ makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
|||||||
va_end(arg);
|
va_end(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
getcontext(ucontext_t *uc)
|
|
||||||
{
|
|
||||||
return _getmcontext(&uc->mc);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
|
||||||
setcontext(ucontext_t *uc)
|
|
||||||
{
|
|
||||||
_setmcontext(&uc->mc);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
swapcontext(ucontext_t *oucp, ucontext_t *ucp)
|
swapcontext(ucontext_t *oucp, ucontext_t *ucp)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#define setcontext(u) _setmcontext(&(u)->uc_mcontext)
|
#define setcontext(u) _setmcontext(&(u)->mc)
|
||||||
#define getcontext(u) _getmcontext(&(u)->uc_mcontext)
|
#define getcontext(u) _getmcontext(&(u)->mc)
|
||||||
typedef struct mcontext mcontext_t;
|
typedef struct mcontext mcontext_t;
|
||||||
typedef struct ucontext ucontext_t;
|
typedef struct ucontext ucontext_t;
|
||||||
struct mcontext
|
struct mcontext
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user