plan9port

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

commit a81eb4ca631be00b828e306331aff50b91180557
parent 33a102fc287a36969db773a4c55f182081a291e1
Author: rsc <devnull@localhost>
Date:   Fri,  4 Nov 2005 18:10:30 +0000

try again

Diffstat:
Msrc/libthread/threadimpl.h | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h @@ -43,8 +43,10 @@ extern pid_t rfork_thread(int, void*, int(*)(void*), void*); #endif #if defined(__arm__) -int _getmcontext(mcontext_t*); -void _setmcontext(mcontext_t*); +int getmcontext(mcontext_t*); +void setmcontext(mcontext_t*); +#define setcontext(u) setmcontext(&(u)->uc_mcontext) +#define getcontext(u) getmcontext(&(u)->uc_mcontext) #endif typedef struct Context Context;