Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Indent the rest of the code (examples, buildtools, doc...) except for examples/SMPI...
[simgrid.git] / tools / tesh2 / include / xsignal.h
index d4d42da..2a562e1 100644 (file)
 \r
 #include <signal.h>\r
 #include <com.h>\r
-\r
+    \r
 #ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
+extern "C" {
+  \r
+#endif  /* \r */
+  \r
 #ifdef _XBT_WIN32\r
-\r
+  \r
 /* terminal line hangup                                                        */ \r
 #ifndef SIGHUP\r
 #define SIGHUP         1\r
-#endif \r
-\r
-/* interrupt program                                                   */\r
+#endif  /* \r */
+  \r
+/* interrupt program                                                   */ \r
 #ifndef        SIGINT\r
 #define SIGINT         2\r
-#endif\r
-\r
-/* quit program                                                                        */\r
+#endif  /* \r */
+  \r
+/* quit program                                                                        */ \r
 #ifndef SIGQUIT\r
 #define SIGQUIT                3\r
-#endif\r
-\r
-/* illegal instruction                                                 */\r
+#endif  /* \r */
+  \r
+/* illegal instruction                                                 */ \r
 #ifndef        SIGILL\r
 #define SIGILL         4\r
-#endif\r
-\r
-/* trace trap                                                                  */\r
+#endif  /* \r */
+  \r
+/* trace trap                                                                  */ \r
 #ifndef        SIGTRAP\r
 #define SIGTRAP                5\r
-#endif\r
-\r
-/* abnormal termination triggered by abort call        */\r
+#endif  /* \r */
+  \r
+/* abnormal termination triggered by abort call        */ \r
 #ifndef        SIGABRT\r
 #define SIGABRT                6\r
-#endif\r
-\r
-/* floating point exception                                            */\r
+#endif  /* \r */
+  \r
+/* floating point exception                                            */ \r
 #ifndef        SIGFPE\r
 #define SIGFPE         8\r
-#endif\r
-\r
-/* kill program                                                                        */\r
+#endif  /* \r */
+  \r
+/* kill program                                                                        */ \r
 #ifndef        SIGKILL\r
 #define SIGKILL                9\r
-#endif\r
-\r
-/* bus error                                                                   */\r
+#endif  /* \r */
+  \r
+/* bus error                                                                   */ \r
 #ifndef SIGBUS\r
 #define SIGBUS         10\r
-#endif\r
-\r
-/* segment violation                                                   */\r
+#endif  /* \r */
+  \r
+/* segment violation                                                   */ \r
 #ifndef        SIGSEGV\r
 #define SIGSEGV                11\r
-#endif\r
-\r
-/* non-existent system call invoked                            */\r
+#endif  /* \r */
+  \r
+/* non-existent system call invoked                            */ \r
 #ifndef SIGSYS\r
 #define SIGSYS         12\r
-#endif\r
-\r
+#endif  /* \r */
+  \r
 /* write on a pipe with no reader                              */ \r
 #ifndef SIGPIPE\r
 #define SIGPIPE                13\r
-#endif\r
-\r
-/* real-time timer expired                                             */\r
+#endif  /* \r */
+  \r
+/* real-time timer expired                                             */ \r
 #ifndef SIGALRM\r
 #define SIGALRM                14\r
-#endif\r
-\r
-/* software termination signal from kill                       */\r
+#endif  /* \r */
+  \r
+/* software termination signal from kill                       */ \r
 #ifdef SIGTERM\r
 #define SIGTERM                15\r
-#endif\r
-\r
-/* urgent condition present on socket                          */\r
+#endif  /* \r */
+  \r
+/* urgent condition present on socket                          */ \r
 #ifndef SIGURG\r
 #define SIGURG         16\r
-#endif\r
-\r
-/* stop (cannot be caught orignored)                           */\r
+#endif  /* \r */
+  \r
+/* stop (cannot be caught orignored)                           */ \r
 #ifndef SIGSTOP\r
 #define SIGSTOP                17\r
-#endif\r
-\r
-/* stop signal generated from keyboard                         */\r
+#endif  /* \r */
+  \r
+/* stop signal generated from keyboard                         */ \r
 #ifndef SIGTSTP\r
 #define SIGTSTP                18\r
-#endif\r
-\r
-/* continue after stop                                                         */\r
+#endif  /* \r */
+  \r
+/* continue after stop                                                         */ \r
 #ifndef SIGCONT\r
 #define SIGCONT                19\r
-#endif\r
-\r
+#endif  /* \r */
+  \r
 /* child status has changed                                                    */ \r
 #ifndef SIGCHLD\r
 #define SIGCHLD                20\r
-#endif\r
-\r
-/* background read attempted from control terminal     */\r
+#endif  /* \r */
+  \r
+/* background read attempted from control terminal     */ \r
 #ifndef SIGTTIN\r
 #define SIGTTIN                21\r
-#endif\r
-\r
-/* background write attempted to control terminal      */\r
+#endif  /* \r */
+  \r
+/* background write attempted to control terminal      */ \r
 #ifndef SIGTTOU\r
 #define SIGTTOU                22\r
-#endif\r
-\r
-/* I/O is possible on a descriptor see fcntl(2))       */\r
+#endif  /* \r */
+  \r
+/* I/O is possible on a descriptor see fcntl(2))       */ \r
 #ifndef SIGIO\r
 #define SIGIO          23\r
-#endif\r
-\r
-/* cpu time limit exceeded (see setrlimit(2))          */\r
+#endif  /* \r */
+  \r
+/* cpu time limit exceeded (see setrlimit(2))          */ \r
 #ifndef SIGXCPU\r
 #define SIGXCPU                24\r
-#endif\r
-\r
-/* file size limit exceeded (see setrlimit(2))         */\r
+#endif  /* \r */
+  \r
+/* file size limit exceeded (see setrlimit(2))         */ \r
 #ifndef SIGXFSZ\r
 #define SIGXFSZ                25\r
-#endif\r
-\r
-/* virtual time alarm (see setitimer(2))                       */\r
+#endif  /* \r */
+  \r
+/* virtual time alarm (see setitimer(2))                       */ \r
 #ifndef SIGVTALRM\r
 #define SIGVTALRM      26\r
-#endif\r
-\r
-/* profiling timer alarm (see setitimer(2))                    */\r
+#endif  /* \r */
+  \r
+/* profiling timer alarm (see setitimer(2))                    */ \r
 #ifndef SIGPROF\r
 #define SIGPROF                27\r
-#endif\r
-\r
-/*  window size change                                                         */\r
+#endif  /* \r */
+  \r
+/*  window size change                                                         */ \r
 #ifndef SIGWINCH\r
 #define SIGWINCH       28\r
-#endif\r
-\r
-/* user defined signal 1                                                       */\r
+#endif  /* \r */
+  \r
+/* user defined signal 1                                                       */ \r
 #ifndef SIGUSR1\r
 #define SIGUSR1                30\r
-#endif\r
-\r
-/* user defined signal 2                                                       */\r
+#endif  /* \r */
+  \r
+/* user defined signal 2                                                       */ \r
 #ifndef SIGUSR2\r
 #define SIGUSR2                31\r
-#endif\r
-\r
-\r
-int\r
-is_an_unhandled_exception(DWORD exit_code);\r
-\r
+#endif  /* \r */
+  \r \r int \r is_an_unhandled_exception(DWORD exit_code);
+  \r \r
 /*  \r
  *return a non-zero value if status was returned for a child process that terminated normally. \r
- */\r
+ */ \r
 #define WIFEXITED(__status)            !is_an_unhandled_exception((__status))\r
-\r
+  \r
 /* if the value of WIFEXITED(__status) is non-zero, this macro evaluates the value the child \r
  * process returned from main().\r
- */\r
+ */ \r
 #define WEXITSTATUS(__status)  (__status)\r
-\r
+  \r
 /* return a non-zero value if status was returned for a child process that terminated due to the \r
  * receipt of a signal that was not caught \r
- */\r
+ */ \r
 #define WIFSIGNALED(__status)  is_an_unhandled_exception((__status))\r
-\r
+  \r
 /* if the value of WIFSIGNALED(__status) is non-zero, this macro evaluates to the number of the \r
  * signal that caused the termination of the child process.\r
- */\r
+ */ \r
 #define WTERMSIG(__status)             (__status)\r
-\r
-#endif /* _XBT_WIN32 */\r
-\r
-\r
+  \r
+#endif  /* _XBT_WIN32 */\r
+  \r \r
 #ifdef _XBT_WIN32\r
-const char* \r
-signal_name(DWORD got, const char* expected);\r
-#else\r
-const char* \r
-signal_name(unsigned int got, char *expected);\r
-#endif\r
-\r
-\r
-int\r
-sig_exists(const char* sig_name);\r
-\r
+  const char *\r signal_name(DWORD got, const char *expected);
+  \r
+#else   /* \r */
+  const char *\r signal_name(unsigned int got, char *expected);
+  \r
+#endif  /* \r */
+  \r\rint \r sig_exists(const char *sig_name);
+  \r\r
 #ifdef __cplusplus\r
-}\r
-#endif\r
+} \r
+#endif  /* \r */
 \r
-#endif /* !__XSIGNAL_H */\r
+#endif  /* !__XSIGNAL_H */\r