4 #include <sys/ucontext.h>
6 _PROTOTYPE( void makecontext
, (ucontext_t
*ucp
, void (*func
)(void),
8 _PROTOTYPE( int swapcontext
, (ucontext_t
*oucp
,
9 const ucontext_t
*ucp
) );
10 _PROTOTYPE( int getcontext
, (ucontext_t
*ucp
) );
11 _PROTOTYPE( int setcontext
, (const ucontext_t
*ucp
) );
13 _PROTOTYPE( void resumecontext
, (ucontext_t
*ucp
) );
15 /* These functions get and set ucontext structure through PM/kernel. They don't
16 * manipulate the stack. */
17 _PROTOTYPE( int getuctx
, (ucontext_t
*ucp
) );
18 _PROTOTYPE( int setuctx
, (const ucontext_t
*ucp
) );
20 #endif /* _UCONTEXT_H */