ttry again - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit a81eb4ca631be00b828e306331aff50b91180557
(DIR) parent 33a102fc287a36969db773a4c55f182081a291e1
(HTM) Author: rsc <devnull@localhost>
Date: Fri, 4 Nov 2005 18:10:30 +0000
ttry again
Diffstat:
M src/libthread/threadimpl.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
t@@ -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;