Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
not needed
[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 list of tesh include directories */\r
40 extern xbt_dynar_t\r
41 include_dirs;\r
42 \r
43 /*\r
44  * if 1, an interruption was requested by a command or a\r
45  * unit.\r
46  */\r
47 extern int\r
48 interrupted;\r
49 \r
50 /*\r
51  * if 1, tesh doesn't display the commands launched.\r
52  */\r
53 extern int\r
54 silent_flag;\r
55 \r
56 /*\r
57  * if 1, tesh simulates the run.\r
58  */\r
59 extern int\r
60 dry_run_flag;\r
61 \r
62 /* ? */\r
63 extern int \r
64 just_print_flag;\r
65 \r
66 /* if 1, tesh diplay the current directory.\r
67 */\r
68 extern int\r
69 print_directory_flag;\r
70 \r
71 /*\r
72  * this directory object represents the root directory.\r
73  */\r
74 extern directory_t\r
75 root_directory;\r
76 \r
77 /*\r
78  * if 1, the summary is detailed.\r
79  */\r
80 extern int\r
81 detail_summary_flag;\r
82 \r
83 /* \r
84  * the tesh exit code.\r
85  */\r
86 extern int\r
87 exit_code;\r
88 \r
89 extern int\r
90 err_kind;\r
91 \r
92 /*\r
93  * the list of the errors of the run.\r
94  */\r
95 extern xbt_dynar_t\r
96 errors;\r
97 \r
98 /*\r
99  * if 1, it's the tesh root (the parent of all tesh processes).\r
100  */\r
101 extern int\r
102 is_tesh_root;\r
103 \r
104 /* \r
105  * if 1, keep going when some commands can't be founded \r
106  */\r
107 extern int \r
108 keep_going_flag;\r
109 \r
110 /* \r
111  * if 1, ignore failures of units or commands.                                  \r
112  */\r
113 extern int\r
114 keep_going_unit_flag;\r
115 \r
116 \r
117 \r
118 #ifdef __cplusplus\r
119 }\r
120 #endif\r
121 \r
122 #endif /* !__COM_H */\r