diff options
author | rsc <devnull@localhost> | 2005-11-09 12:23:53 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-11-09 12:23:53 +0000 |
commit | 93eb0e23c0a56d10c232998f305892689188c61a (patch) | |
tree | 8a5b22dec6dd8c34d4b677820bdf2bca3876ddd9 /src/libthread | |
parent | 3bc4abf41ea1ea1a3bf4b7517926310f1700a79b (diff) | |
download | plan9port-93eb0e23c0a56d10c232998f305892689188c61a.tar.gz plan9port-93eb0e23c0a56d10c232998f305892689188c61a.tar.bz2 plan9port-93eb0e23c0a56d10c232998f305892689188c61a.zip |
mac
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/Darwin-power.c | 13 | ||||
-rw-r--r-- | src/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 index e625626c..efcdb18c 100644 --- 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 index a25d480a..9e500822 100644 --- 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 |