comparison packages/error/current/cdl/error.cdl @ 115:6ed91473a1cd ecos-sw-2000-08-21

Merge from eCos master repository on 2000-08-21-22:40:54-BST
author jlarmour
date Fri, 25 Aug 2000 17:32:38 +0000
parents 435cced73e2f
children e0c0827131d1
comparison
equal deleted inserted replaced
114:5ad2b71d525e 115:6ed91473a1cd
29 # 29 #
30 #####COPYRIGHTEND#### 30 #####COPYRIGHTEND####
31 # ==================================================================== 31 # ====================================================================
32 ######DESCRIPTIONBEGIN#### 32 ######DESCRIPTIONBEGIN####
33 # 33 #
34 # Author(s): bartv 34 # Author(s): bartv,jlarmour
35 # Original data: jlarmour 35 # Original data: jlarmour
36 # Contributors: 36 # Contributors:
37 # Date: 1999-06-13 37 # Date: 2000-04-14
38 # 38 #
39 #####DESCRIPTIONEND#### 39 #####DESCRIPTIONEND####
40 # 40 #
41 # ==================================================================== 41 # ====================================================================
42 42
43 cdl_package CYGPKG_ERROR { 43 cdl_package CYGPKG_ERROR {
44 display "Common error code support" 44 display "Common error code support"
45 compile strerror.cxx 45 compile strerror.cxx errno.cxx
46 include_dir cyg/error 46 include_dir cyg/error
47 implements CYGINT_ISO_ERRNO_CODES
48 requires { CYGBLD_ISO_ERRNO_CODES_HEADER == "<cyg/error/codes.h>" }
47 description " 49 description "
48 This package contains the common list of error and 50 This package contains the common list of error and
49 status codes. It is held centrally to allow 51 status codes. It is held centrally to allow
50 packages to interchange error codes and status 52 packages to interchange error codes and status
51 codes in a common way, rather than each package 53 codes in a common way, rather than each package
52 having its own conventions for error/status 54 having its own conventions for error/status
53 reporting. The error codes are modelled on the 55 reporting. The error codes are modelled on the
54 POSIX style naming e.g. EINVAL etc. This package 56 POSIX style naming e.g. EINVAL etc. This package
55 also provides the standard strerror() function to 57 also provides the standard strerror() function to
56 convert error codes to textual representation." 58 convert error codes to textual representation, as
59 well as an implementation of the errno idiom."
60
61 # ====================================================================
62 # ERRNO OPTIONS
57 63
58 define_proc { 64 cdl_component CYGPKG_ERROR_ERRNO {
59 puts $::cdl_header "/***** proc output start *****/" 65 display "errno variable"
60 puts $::cdl_header "#include <pkgconf/system.h>" 66 flavor bool
61 puts $::cdl_header "/***** proc output end *****/" 67 implements CYGINT_ISO_ERRNO
68 requires { CYGBLD_ISO_ERRNO_HEADER == "<cyg/error/errno.h>" }
69 default_value 1
70 description "
71 This package controls the behaviour of the
72 errno variable (or more strictly, expression)
73 from <errno.h>."
74
75 cdl_option CYGSEM_ERROR_PER_THREAD_ERRNO {
76 display "Per-thread errno"
77 requires CYGVAR_KERNEL_THREADS_DATA
78 default_value 1
79 description "
80 This option controls whether the standard error
81 code reporting variable errno is a per-thread
82 variable, rather than global."
83 }
84
85 cdl_option CYGNUM_ERROR_ERRNO_TRACE_LEVEL {
86 display "Tracing level"
87 flavor data
88 legal_values 0 to 1
89 default_value 0
90 description "
91 Trace verbosity level for debugging the errno
92 retrieval mechanism in errno.cxx. Increase this
93 value to get additional trace output."
94 }
95 }
96
97 # ====================================================================
98 # STRERROR OPTIONS
99
100 cdl_option CYGPKG_ERROR_STRERROR {
101 display "strerror function"
102 flavor bool
103 implements CYGINT_ISO_STRERROR
104 requires { CYGBLD_ISO_STRERROR_HEADER == "<cyg/error/strerror.h>" }
105 default_value 1
106 description "
107 This package controls the presence and behaviour of the
108 strerror() function from <string.h>"
109 }
110
111 # ====================================================================
112 # BUILD OPTIONS
113 cdl_component CYGPKG_ERROR_OPTIONS {
114 display "Error package build options"
115 flavor none
116 no_define
117 description "
118 Package specific build options including control over
119 compiler flags used only in building this package,
120 and details of which tests are built."
121
122
123 cdl_option CYGPKG_ERROR_CFLAGS_ADD {
124 display "Additional compiler flags"
125 flavor data
126 no_define
127 default_value { "" }
128 description "
129 This option modifies the set of compiler flags for
130 building the error package. These flags are used in addition
131 to the set of global flags."
132 }
133
134 cdl_option CYGPKG_ERROR_CFLAGS_REMOVE {
135 display "Suppressed compiler flags"
136 flavor data
137 no_define
138 default_value { "" }
139 description "
140 This option modifies the set of compiler flags for
141 building the error package. These flags are removed from
142 the set of global flags if present."
143 }
62 } 144 }
63 } 145 }
146
147 # ====================================================================
148 # EOF error.cdl