add a missing section header table index conversion
[tangerine.git] / compiler / clib / include / ucontext.h
blobc6272d5d00b07ab6514b77264db82a3165004ba3
1 #ifndef _UCONTEXT_H_
2 #define _UCONTEXT_H_
4 /*
5 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 $Id$
8 Define the portable version of the execution context.
9 */
11 #include <aros/cpu.h>
12 #include <sys/cdefs.h>
13 #include <signal.h>
15 /* XXX Need to include the CPU specific version. */
16 typedef struct __mcontext
18 void *mc;
19 } mcontext_t;
21 typedef struct __ucontext
23 mcontext_t uc_mcontext;
25 struct __ucontext *uc_link;
26 sigset_t uc_sigmask;
27 stack_t uc_stack;
28 } ucontext_t;
30 __BEGIN_DECLS
32 int getcontext(ucontext_t *ucp);
33 int setcontext(const ucontext_t *ucp);
34 void makecontext(ucontext_t *ucp, void (*function)(), int argc, ...);
35 int swapcontext(ucontext_t *oucp, const ucontext_t *nucp);
37 __END_DECLS
39 #endif /* _UCONTEXT_H_ */