Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add the new integrated files version (use xbt data structures instead my own data...
[simgrid.git] / tools / tesh2 / include / xerrno.h
1 #ifndef __XERRNO_H\r
2 #define __XERRNO_H\r
3 \r
4 #include <com.h>\r
5 #include <errno.h>\r
6 \r
7 #ifdef __cplusplus\r
8 extern "C" {\r
9 #endif\r
10 \r
11 #define ECMDTIMEDOUT            ((int)102)      /* Command timed out                                                                                                            */\r
12 #define EEXEC                           ((int)105)      /* can't execute the command                                                                                            */\r
13 #define EWAIT                           ((int)106)      /* the wait function failed                                                                                                     */\r
14 #define ECMDNOTFOUND            ((int)107)      /* the command is not found                                                                                                     */\r
15 #define EEXITCODENOTMATCH       ((int)108)      /* the exit codes don't match                                                                                           */\r
16 #define EOUTPUTNOTMATCH         ((int)109)      /* the outputs don't match                                                                                                      */\r
17 #define ESIGNOTMATCH            ((int)110)      /* the signals don't match                                                                                                      */\r
18 #define EUNXPSIG                        ((int)111)      /* Unexpected signal caught                                                                                                     */\r
19 #define ESIGNOTRECEIPT          ((int)112)      /* the expected signal is not receipt                                                                           */\r
20 #define EFILENOTFOUND           ((int)113)      /* the specified tesh file is not found                                                                         */\r
21 #define EGETCWD                         ((int)114)      /* this is a system error : the getcwd() function failed (impossible)           */\r
22 #define EDIRNOTFOUND            ((int)115)      /* the specified directory is not found                                                                         */\r
23 #define EPROCCMDLINE            ((int)116)      /* this is an internal error : the process_command_line() function failed       */\r
24 #define ENOARG                          ((int)117)      /* a none optional argument is not specified in the command line                        */\r
25 #define ENOTPOSITIVENUM         ((int)118)      /* the argument of the option is not strictly positive                                          */\r
26 #define ESYNTAX                         ((int)119)      /* syntax error                                                                                                                         */\r
27 #define EINVALIDTIMEOUT         ((int)120)      /* the timeout value specified by the metacommand is invalid                            */\r
28 #define EINVALIDEXITCODE        ((int)121)      /* the expected exit code value specified by the metacommand is invalid         */\r
29 #define ESIGNOTSUPP                     ((int)122)      /* the signal specified by the metacommand is not supported                                     */\r
30 #define ELEADTIME                       ((int)123)      /* global timeout                                                                                                                       */\r
31 #define EREADMENOTFOUND         ((int)124)      /* unable to locate the README.txt file                                                                         */\r
32 #define EINCLUDENOTFOUND        ((int)125)      /* the include file specified by a metacommand is not found                                     */\r
33 #define ESUFFIXTOOLONG          ((int)126)      /* the suffix is too long                                                                                                       */\r
34 #define EFILENOTINSPECDIR       ((int)127) /* file not found in the specified directories                                                               */\r
35 #define EFILENOTINCURDIR        ((int)128) /* file not found in the current directory                                                                   */\r
36 #define EINVCMDLINE                     ((int)139) /* invalid command line                                                                                                              */\r
37 \r
38 #ifndef EALREADY\r
39 #define EALREADY                        ((int)131)\r
40 #endif\r
41 \r
42 const char*\r
43 error_get_at(int pos, int* code);\r
44 \r
45 const char*\r
46 error_to_string(int errcode);\r
47 \r
48 void\r
49 error_register(const char* reason, int errcode, const char* command, const char* unit);\r
50 \r
51 #ifdef __cplusplus\r
52 }\r
53 #endif\r
54 \r
55 \r
56 #endif /* !__XERRNO_H */\r
57 \r