X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/20facf82f92baf2401e73847b694eea761622a4c..8d5e9d3ae9f7e007e1dfefc1a335d72623335e01:/include/xbt/win32_ucontext.h diff --git a/include/xbt/win32_ucontext.h b/include/xbt/win32_ucontext.h index eb4f8d250b..f58a6d9e98 100644 --- a/include/xbt/win32_ucontext.h +++ b/include/xbt/win32_ucontext.h @@ -1,3 +1,9 @@ +/* Copyright (c) 2010, 2014. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + /* * win32-ucontext: Unix ucontext_t operations on Windows platforms * Copyright(C) 2007 Panagiotis E. Hadjidoukas @@ -24,23 +30,23 @@ #define UCONTEXT_H #include - 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; - } ucontext_t; - int getcontext(ucontext_t * ucp); - int setcontext(const ucontext_t * ucp); - int makecontext(ucontext_t *, void (*)(), int, ...); - int swapcontext(ucontext_t *, const ucontext_t *); - + 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; +} ucontext_t; +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 */