plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 93eb0e23c0a56d10c232998f305892689188c61a
parent 3bc4abf41ea1ea1a3bf4b7517926310f1700a79b
Author: rsc <devnull@localhost>
Date:   Wed,  9 Nov 2005 12:23:53 +0000

mac

Diffstat:
Msrc/libthread/Darwin-power.c | 13-------------
Msrc/libthread/power-ucontext.h | 4++--
2 files changed, 2 insertions(+), 15 deletions(-)

diff --git a/src/libthread/Darwin-power.c b/src/libthread/Darwin-power.c @@ -16,19 +16,6 @@ makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...) } 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) { if(getcontext(oucp) == 0) diff --git a/src/libthread/power-ucontext.h b/src/libthread/power-ucontext.h @@ -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