Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some more debug output to understand the gras/empty_main bug
[simgrid.git] / tools / tesh2 / include / com.h
1 #ifndef __COM_H\r
2 #define __COM_H\r
3 \r
4 /*\r
5  * include/com.h - contains all common declarations of types and definitions\r
6  * and global variables of tesh.\r
7  *\r
8  * Copyright 2008,2009 Martin Quinson, Malek Cherier All right reserved. \r
9  *\r
10  * This program is free software; you can redistribute it and/or modify it \r
11  * under the terms of the license (GNU LGPL) which comes with this package.\r
12  *\r
13  * Purpose:\r
14  *              This file contains all the declarations common declarations and definitions\r
15  *              and global variables of tesh.\r
16  *\r
17  */\r
18 \r
19 #include <types.h>\r
20 #include <ctype.h>\r
21 \r
22 #ifdef __cplusplus\r
23 extern "C" {\r
24 #endif\r
25 \r
26 /* \r
27  * the semaphore used by the runner to wait the end of all the units \r
28  */\r
29 extern xbt_os_sem_t\r
30 units_sem;\r
31 \r
32 /* \r
33  * the semaphore used to synchronize the jobs \r
34  */\r
35 extern xbt_os_sem_t\r
36 jobs_sem;\r
37 \r
38 /*\r
39  * the mutex to synchronize the access to the list\r
40  * of the errors producted by a run.\r
41  */\r
42 extern xbt_os_mutex_t\r
43 err_mutex;\r
44 \r
45 /* the list of tesh include directories */\r
46 extern xbt_dynar_t\r
47 include_dirs;\r
48 \r
49 /*\r
50  * if 1, an interruption was requested by a command or a\r
51  * unit.\r
52  */\r
53 extern int\r
54 interrupted;\r
55 \r
56 /*\r
57  * if 1, tesh doesn't display the commands launched.\r
58  */\r
59 extern int\r
60 silent_flag;\r
61 \r
62 /*\r
63  * if 1, tesh simulates the run.\r
64  */\r
65 extern int\r
66 dry_run_flag;\r
67 \r
68 /* ? */\r
69 extern int \r
70 just_print_flag;\r
71 \r
72 /* if 1, tesh diplay the current directory.\r
73 */\r
74 extern int\r
75 print_directory_flag;\r
76 \r
77 /*\r
78  * this directory object represents the root directory.\r
79  */\r
80 extern directory_t\r
81 root_directory;\r
82 \r
83 /*\r
84  * if 1, the summary is detailed.\r
85  */\r
86 extern int\r
87 detail_summary_flag;\r
88 \r
89 /* \r
90  * the tesh exit code.\r
91  */\r
92 extern int\r
93 exit_code;\r
94 \r
95 /*\r
96  * the list of the errors of the run.\r
97  */\r
98 extern xbt_dynar_t\r
99 errors;\r
100 \r
101 /*\r
102  * if 1, it's the tesh root (the parent of all tesh processes).\r
103  */\r
104 extern int\r
105 is_tesh_root;\r
106 \r
107 /* \r
108  * if 1, keep going when some commands can't be founded \r
109  */\r
110 extern int \r
111 keep_going_flag;\r
112 \r
113 /* \r
114  * if 1, ignore failures of units or commands.                                  \r
115  */\r
116 extern int\r
117 keep_going_unit_flag;\r
118 \r
119 \r
120 #ifdef __cplusplus\r
121 }\r
122 #endif\r
123 \r
124 #endif /* !__COM_H */\r