1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
#ifndef DK4APPI_C_INCLUDED
#define DK4APPI_C_INCLUDED 1
/** Errors found but not immediately reported.
*/
enum {
/** Failed to find language, region and encoding.
*/
E_LOCALE = 1,
/** Memory allocation failed.
*/
E_MEMORY ,
/** Failed to find name of executable file.
*/
E_EXEFILE ,
/** File or directory name of executable file path
name too long for buffer.
*/
E_EXECNAME_TOO_LONG ,
/** No directory part in executable file path.
*/
E_NO_DIR_IN_EXENAME ,
/** Empty option specification.
BUG!
*/
E_EMPTY_OPTION_SPEC ,
/** Long option specified multiple times.
BUG!
*/
E_OPTION_LONG_SPEC_MULT ,
/** Short option specified multiple times.
BUG!
*/
E_OPTION_SHORT_SPEC_MULT ,
/** Failed to find user name.
*/
E_USER_NAME_NOT_FOUND ,
/** Failed to find user home directory.
*/
E_USER_HOME_NOT_FOUND ,
/** Failed to find host name.
*/
E_HOST_NAME_NOT_FOUND ,
/** Failed to open a preferences file.
*/
E_PREF_FILE_OPEN ,
/** Number of command line arguments is NULL.
*/
E_ARGC ,
/** Option requires an argument.
*/
E_OPT_REQUIRES_ARG ,
/** Unexpected option found.
*/
E_UNEXPECTED_OPTION ,
/** Invalid argument to option.
*/
E_INVALID_OPTION_ARG ,
/** Option too long.
*/
E_OPTION_TOO_LONG ,
/** A required argument was not specified.
This is a program bug.
*/
E_BUG_ARGUMENTS ,
/** Failed to construct log file name.
*/
E_LOG_FILE_NAME ,
};
#endif
|