X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1c10206dfec917be0f5b3f4964f82b0c959436e2..50c07172efbd6c3b73c787c2c200048d3205b640:/include/xbt/win32_ucontext.h diff --git a/include/xbt/win32_ucontext.h b/include/xbt/win32_ucontext.h index af3c78c775..0cc53b69bc 100644 --- a/include/xbt/win32_ucontext.h +++ b/include/xbt/win32_ucontext.h @@ -15,37 +15,32 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with QueueUserAPCEx in the file COPYING.LIB; + * License along with SimGrid in the file LICENSE-LGPL-2.1; * if not, write to the Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA - */ - + */ + #ifndef UCONTEXT_H #define UCONTEXT_H - + #include - -typedef struct __stack { - void *ss_sp; - size_t ss_size; - int ss_flags; + typedef struct __stack { + void *ss_sp; + size_t ss_size; + int ss_flags; } stack_t; - typedef CONTEXT mcontext_t; typedef unsigned long __sigset_t; - typedef struct __ucontext { - unsigned long int uc_flags; - struct __ucontext *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - __sigset_t uc_sigmask; + unsigned long int uc_flags; + struct __ucontext *uc_link; + stack_t uc_stack; + mcontext_t uc_mcontext; + __sigset_t uc_sigmask; } ucontext_t; - - -int getcontext(ucontext_t *ucp); -int setcontext(const ucontext_t *ucp); +int getcontext(ucontext_t * ucp); +int setcontext(const ucontext_t * ucp); int makecontext(ucontext_t *, void (*)(), int, ...); int swapcontext(ucontext_t *, const ucontext_t *); -#endif /* UCONTEXT_H */ +#endif /* UCONTEXT_H */