1 /* $Id: ucontext.h,v 1.2 2002/02/20 09:17:55 hyperion Exp $
6 * user context. Conforming to the Single UNIX(r) Specification Version 2,
7 * System Interface & Headers Issue 5
9 * This file is part of the ReactOS Operating System.
12 * Created by KJK::Hyperion <noog@libero.it>
14 * THIS SOFTWARE IS NOT COPYRIGHTED
16 * This source code is offered for use in the public domain. You may
17 * use, modify or distribute it freely.
19 * This code is distributed in the hope that it will be useful but
20 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
21 * DISCLAMED. This includes but is not limited to warranties of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25 #ifndef __UCONTEXT_H_INCLUDED__
26 #define __UCONTEXT_H_INCLUDED__
34 typedef void * mcontext_t
;
36 typedef struct __tagucontext_t ucontext_t
;
38 struct __tagucontext_t
40 ucontext_t
*uc_link
; /* pointer to the context that will be resumed
41 when this context returns */
42 sigset_t uc_sigmask
; /* the set of signals that are blocked when this
44 stack_t uc_stack
; /* the stack used by this context */
45 mcontext_t uc_mcontext
; /* a machine-specific representation of the saved
52 int getcontext(ucontext_t
*);
53 int setcontext(const ucontext_t
*);
54 void makecontext(ucontext_t
*, (void *)(), int, ...);
55 int swapcontext(ucontext_t
*, const ucontext_t
*);
59 #endif /* __UCONTEXT_H_INCLUDED__ */