11 #define EREAD ((int)100) /* a read pipe operation failed */
12 #define EREADPIPE ((int)101) /* the pipe used to read from the stdout of the command is broken */
13 #define ETIMEOUT ((int)102) /* the command is timeouted */
14 #define EWRITE ((int)103) /* a write operation failed */
15 #define EWRITEPIPE ((int)104) /* the pipe used to write to the stdin of the command is broken */
16 #define EEXEC ((int)105) /* can't execute the command */
17 #define EWAIT ((int)106) /* the wait function failed */
18 #define ECMDNOTFOUND ((int)107) /* the command is not found */
19 #define EEXITCODENOTMATCH ((int)108) /* the exit codes don't match */
20 #define EOUTPUTNOTMATCH ((int)109) /* the outputs don't match */
21 #define ESIGNOTMATCH ((int)110) /* the signals don't match */
22 #define EUNEXPECTEDSIG ((int)111) /* unexpected signal caught */
23 #define ESIGNOTRECEIPT ((int)112) /* the expected signal is not receipt */
24 #define EFILENOTFOUND ((int)113) /* the specified tesh file is not found */
25 #define EGETCWD ((int)114) /* this is a system error : the getcwd() function failed (impossible) */
26 #define EDIRNOTFOUND ((int)115) /* the specified directory is not found */
27 #define ECHDIR ((int)116) /* this is a system error : the chdir() function failed (impossible) */
28 #define EPROCCMDLINE ((int)117) /* this is an internal error : the process_command_line() function failed */
29 #define ENOARG ((int)118) /* a none optional argument is not specified in the command line */
30 #define ENOTPOSITIVENUM ((int)119) /* the argument of the option is not strictly positive */
31 #define ESYNTAX ((int)120) /* syntax error */
32 #define EINVALIDTIMEOUT ((int)121) /* the timeout value specified by the metacommand is invalid */
33 #define EINVALIDEXITCODE ((int)122) /* the expected exit code value specified by the metacommand is invalid */
34 #define ESIGNOTSUPP ((int)123) /* the signal specified by the metacommand is not supported */
35 #define ELEADTIME ((int)124) /* global timeout */
36 #define EREADMENOTFOUND ((int)125) /* unable to locate the README.txt file */
37 #define EINCLUDENOTFOUND ((int)126) /* the include file specified by a metacommand is not found */
38 #define ESUFFIXTOOLONG ((int)127) /* the suffix is too long */
39 #define EFILENOTINSPECDIR ((int)128) /* file not found in the specified directories */
40 #define EFILENOTINCURDIR ((int)129) /* file not found in the current directory */
44 error_get_at(int pos, int* code);
47 error_to_string(int errcode);
54 #endif /* !__ERROR_H */