2 * win32-ucontext: Unix ucontext_t operations on Windows platforms
\r
3 * Copyright(C) 2007 Panagiotis E. Hadjidoukas
\r
5 * Contact Email: phadjido@cs.uoi.gr, xdoukas@ceid.upatras.gr
\r
7 * win32-ucontext is free software; you can redistribute it and/or
\r
8 * modify it under the terms of the GNU Lesser General Public
\r
9 * License as published by the Free Software Foundation; either
\r
10 * version 2 of the License, or (at your option) any later version.
\r
12 * win32-ucontext is distributed in the hope that it will be useful,
\r
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
15 * Lesser General Public License for more details.
\r
17 * You should have received a copy of the GNU Lesser General Public
\r
18 * License along with QueueUserAPCEx in the file COPYING.LIB;
\r
19 * if not, write to the Free Software Foundation, Inc.,
\r
20 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
\r
26 #include <windows.h>
\r
27 \rtypedef struct __stack {
32 \r\rtypedef CONTEXT mcontext_t;
33 \rtypedef unsigned long __sigset_t;
34 \r\rtypedef struct __ucontext {
35 \runsigned long int uc_flags;
36 \rstruct __ucontext *uc_link;
38 \rmcontext_t uc_mcontext;
39 \r__sigset_t uc_sigmask;
41 \r\r\rint getcontext(ucontext_t * ucp);
42 \rint setcontext(const ucontext_t * ucp);
43 \rint makecontext(ucontext_t *, void (*)(), int, ...);
44 \rint swapcontext(ucontext_t *, const ucontext_t *);
46 #endif /* UCONTEXT_H */
\r