Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix bug waiting to happen and destroy some simulations or their results randomly...
[simgrid.git] / include / xbt / win32_ucontext.h
index eb4f8d2..f58a6d9 100644 (file)
@@ -1,3 +1,9 @@
+/* Copyright (c) 2010, 2014. The SimGrid Team.\r
+ * All rights reserved.                                                     */\r
+\r
+/* This program is free software; you can redistribute it and/or modify it\r
+ * under the terms of the license (GNU LGPL) which comes with this package. */\r
+\r
 /*\r
  *      win32-ucontext: Unix ucontext_t operations on Windows platforms\r
  *      Copyright(C) 2007 Panagiotis E. Hadjidoukas\r
 #define UCONTEXT_H\r
     \r
 #include <windows.h>\r
-    \rtypedef struct __stack {\r
-  \rvoid *ss_sp;\r
-  \rsize_t ss_size;\r
-  \rint ss_flags;\r
-\r} stack_t;\r
-\r\rtypedef CONTEXT mcontext_t;\r
-\rtypedef unsigned long __sigset_t;\r
-\r\rtypedef struct __ucontext {\r
-  \runsigned long int uc_flags;\r
-  \rstruct __ucontext *uc_link;\r
-  \rstack_t uc_stack;\r
-  \rmcontext_t uc_mcontext;\r
-  \r__sigset_t uc_sigmask;\r
-\r} ucontext_t;\r
-\r\r\rint getcontext(ucontext_t * ucp);\r
-\rint setcontext(const ucontext_t * ucp);\r
-\rint makecontext(ucontext_t *, void (*)(), int, ...);\r
-\rint swapcontext(ucontext_t *, const ucontext_t *);\r
-\r\r
+    typedef struct __stack {\r
+  void *ss_sp;\r
+  size_t ss_size;\r
+  int ss_flags;\r
+} stack_t;\r
+typedef CONTEXT mcontext_t;\r
+typedef unsigned long __sigset_t;\r
+typedef struct __ucontext {\r
+  unsigned long int uc_flags;\r
+  struct __ucontext *uc_link;\r
+  stack_t uc_stack;\r
+  mcontext_t uc_mcontext;\r
+  __sigset_t uc_sigmask;\r
+} ucontext_t;\r
+int getcontext(ucontext_t * ucp);\r
+int setcontext(const ucontext_t * ucp);\r
+int makecontext(ucontext_t *, void (*)(), int, ...);\r
+int swapcontext(ucontext_t *, const ucontext_t *);\r
+\r
 #endif  /* UCONTEXT_H */\r