This commit is contained in:
rsc 2005-11-09 12:23:53 +00:00
parent 3bc4abf41e
commit 93eb0e23c0
2 changed files with 2 additions and 15 deletions

View file

@ -15,19 +15,6 @@ makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
va_end(arg);
}
int
getcontext(ucontext_t *uc)
{
return _getmcontext(&uc->mc);
}
int
setcontext(ucontext_t *uc)
{
_setmcontext(&uc->mc);
return 0;
}
int
swapcontext(ucontext_t *oucp, ucontext_t *ucp)
{

View file

@ -1,5 +1,5 @@
#define setcontext(u) _setmcontext(&(u)->uc_mcontext)
#define getcontext(u) _getmcontext(&(u)->uc_mcontext)
#define setcontext(u) _setmcontext(&(u)->mc)
#define getcontext(u) _getmcontext(&(u)->mc)
typedef struct mcontext mcontext_t;
typedef struct ucontext ucontext_t;
struct mcontext