Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
6b0eb84f28d3bd3cfa37034910d24dc112bd46a1
[simgrid.git] / tools / tesh2 / include / error.h
1 #ifndef __ERROR_H
2 #define __ERROR_H
3
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 #include <errno.h>
10
11 #define EREAD                           ((int)2000)     /* a read pipe operation failed                                                                                         */
12 #define EREADPIPE                       ((int)2001)     /* the pipe used to read from the stdout of the command is broken                       */
13 #define ETIMEOUT                        ((int)2002)     /* the command is timeouted                                                                                                     */
14 #define EWRITE                          ((int)2003)     /* a write operation failed                                                                                                     */
15 #define EWRITEPIPE                      ((int)2004)     /* the pipe used to write to the stdin of the command is broken                         */
16 #define EEXEC                           ((int)2005)     /* can't execute the command                                                                                            */
17 #define EWAIT                           ((int)2006)     /* the wait function failed                                                                                                     */
18 #define ECMDNOTFOUND            ((int)2007)     /* the command is not found                                                                                                     */
19 #define EEXITCODENOTMATCH       ((int)2008)     /* the exit codes don't match                                                                                           */
20 #define EOUTPUTNOTMATCH         ((int)2009)     /* the outputs don't match                                                                                                      */
21 #define ESIGNOTMATCH            ((int)2010)     /* the signals don't match                                                                                                      */
22 #define EUNEXPECTEDSIG          ((int)2011)     /* unexpected signal caught                                                                                                     */
23 #define ESIGNOTRECEIPT          ((int)2012)     /* the expected signal is not receipt                                                                           */
24 #define EFILENOTFOUND           ((int)2013)     /* the specified tesh file is not found                                                                         */
25 #define EGETCWD                         ((int)2014)     /* this is a system error : the getcwd() function failed (impossible)           */
26 #define EDIRNOTFOUND            ((int)2015)     /* the specified directory is not found                                                                         */
27 #define ECHDIR                          ((int)2016)     /* this is a system error : the chdir() function failed (impossible)            */
28 #define EPROCESSCMDLINE         ((int)2017)     /* this is an internal error : the process_command_line() function failed       */
29 #define EARGNOTSPEC                     ((int)2018)     /* a none optional argument is not specified in the command line                        */
30 #define ENOTPOSITIVENUM         ((int)2019)     /* the argument of the option is not strictly positive                                          */
31 #define ESYNTAX                         ((int)2020)     /* syntax error                                                                                                                         */
32 #define EINVALIDTIMEOUT         ((int)2021)     /* the timeout value specified by the metacommand is invalid                            */
33 #define EINVALIDEXITCODE        ((int)2022)     /* the expected exit code value specified by the metacommand is invalid         */
34 #define ESIGNOTSUPP                     ((int)2023)     /* the signal specified by the metacommand is not supported                                     */
35 #define ELEADTIME                       ((int)2024)     /* global timeout                                                                                                                       */
36 #define EREADMENOTFOUND         ((int)2025)     /* unable to locate the README.txt file                                                                         */
37 #define EINCLUDENOTFOUND        ((int)2026)     /* the include file specified by a metacommand is not found                                     */
38 #define ESUFFIXTOOLONG          ((int)2027)     /* the suffix is too long                                                                                                       */
39 #define EFILENOTINSPECDIR       ((int)2028) /* file not found in the specified directories                                                              */
40 #define EFILENOTINCURDIR        ((int)2029) /* file not found in the current directory                                                                  */
41
42 const char*
43 error_to_string(int error);
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49
50 #endif /* !__ERROR_H */
51