Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert svn logs into ChangeLog (up to r7858 for now)
[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" {
24   \r
25 #endif  /* \r */
26   \r
27 /* \r
28  * the semaphore used by the runner to wait the end of all the units \r
29  */ \r
30   extern xbt_os_sem_t \r units_sem;
31   \r \r
32 /* \r
33  * the semaphore used to synchronize the jobs \r
34  */ \r
35   extern xbt_os_sem_t \r jobs_sem;
36   \r \r \r
37 /* the list of tesh include directories */ \r
38   extern xbt_dynar_t \r include_dirs;
39   \r \r
40 /*\r
41  * if 1, an interruption was requested by a command or a\r
42  * unit.\r
43  */ \r
44   extern int \r interrupted;
45   \r \r
46 /*\r
47  * if 1, tesh doesn't display the commands launched.\r
48  */ \r
49   extern int \r silent_flag;
50   \r \r
51 /*\r
52  * if 1, tesh simulates the run.\r
53  */ \r
54   extern int \r dry_run_flag;
55   \r \r
56 /* ? */ \r
57   extern int \r just_print_flag;
58   \r \r
59 /* if 1, tesh diplay the current directory.\r
60 */ \r
61   extern int \r print_directory_flag;
62   \r \r
63 /*\r
64  * this directory object represents the root directory.\r
65  */ \r
66   extern directory_t \r root_directory;
67   \r \r
68 /*\r
69  * if 1, the summary is detailed.\r
70  */ \r
71   extern int \r detail_summary_flag;
72   \r \r
73 /* \r
74  * the tesh exit code.\r
75  */ \r
76   extern int \r exit_code;
77   \r \r extern int \r err_kind;
78   \r \r extern char *\r err_line;
79   \r \r
80 /*\r
81  * the list of the errors of the run.\r
82  */ \r
83   extern xbt_dynar_t \r errors;
84   \r \r
85 /*\r
86  * if 1, it's the tesh root (the parent of all tesh processes).\r
87  */ \r
88   extern int \r is_tesh_root;
89   \r \r
90 /* \r
91  * if 1, keep going when some commands can't be founded \r
92  */ \r
93   extern int \r keep_going_flag;
94   \r \r
95 /* \r
96  * if 1, ignore failures of units or commands.                                  \r
97  */ \r
98   extern int \r keep_going_unit_flag;
99   \r \r \r \r
100 #ifdef __cplusplus\r
101\r
102 #endif  /* \r */
103 \r
104 #endif  /* !__COM_H */\r