OpenClovis Logo

clOsalErrors.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2012 OpenClovis Solutions Inc. All Rights Reserved.
3  *
4  * This file is available under a commercial license from the
5  * copyright holder or the GNU General Public License Version 2.0.
6  *
7  * The source code for this program is not published or otherwise
8  * divested of its trade secrets, irrespective of what has been
9  * deposited with the U.S. Copyright office.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * For more information, see the file COPYING provided with this
17  * material.
18  */
19 /*******************************************************************************
20  * ModuleName : osal
21  * File : clOsalErrors.h
22  *******************************************************************************/
23 
24 /*******************************************************************************
25  * Description :
26  *
27  * Error codes returned by Clovis OS Abstraction Layer
28  *
29  *
30  *****************************************************************************/
31 
43 #ifndef _CL_OSAL_ERRORS_H_
44 #define _CL_OSAL_ERRORS_H_
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 #include <clCommon.h>
51 #include <clCommonErrors.h>
52 
53 
54 #define CL_OSAL_AREA "OSA"
55 
56 
57 /*****************************************************************************
58  * ERROR CODES RETURNED BY OSAL LAYER
59  *****************************************************************************/
63 #define CL_OSAL_ERR_OS_ERROR 0x100
64 
68 #define CL_OSAL_ERR_CREATE_MUTEX 0x101
69 
73 #define CL_OSAL_ERR_TASK_ATTRIBUTE_INIT 0x102
74 
78 #define CL_OSAL_ERR_TASK_CREATE 0x103
79 
83 #define CL_OSAL_ERR_TASK_DELETE 0x104
84 
88 #define CL_OSAL_ERR_TASK_ATTRIBUTE_SET 0x105
89 
93 #define CL_OSAL_ERR_TASK_DELAY 0x106
94 
98 #define CL_OSAL_ERR_MUTEX_CREATE 0x107
99 
103 #define CL_OSAL_ERR_MUTEX_LOCK 0x108
104 
108 #define CL_OSAL_ERR_MUTEX_UNLOCK 0x109
109 
113 #define CL_OSAL_ERR_MUTEX_DELETE 0x10a
114 
118 #define CL_OSAL_ERR_CONDITION_CREATE 0x10b
119 
123 #define CL_OSAL_ERR_CONDITION_DELETE 0x10c
124 
128 #define CL_OSAL_ERR_CONDITION_WAIT 0x10d
129 
134 #define CL_OSAL_ERR_CONDITION_BROADCAST 0x10e
135 
140 #define CL_OSAL_ERR_CONDITION_SIGNAL 0x10f
141 
145 #define CL_OSAL_ERR_SCHEDULE_POLICY 0x110
146 
150 #define CL_OSAL_ERR_COS_CLEANUP 0x111
151 
155 #define CL_OSAL_ERR_TASK_ATTRIBUTE_GET 0x112
156 
160 #define CL_OSAL_ERR_NO_TASK_EXIST 0x113
161 
165 #define CL_OSAL_ERR_TASK_STACK_SIZE 0x114
166 
170 #define CL_OSAL_ERR_TIME_OF_DAY 0x115
171 
175 #define CL_OSAL_ERR_SEM_CREATE 0x116
176 
180 #define CL_OSAL_ERR_SEM_ID_GET 0x117
181 
185 #define CL_OSAL_ERR_SEM_LOCK 0x118
186 
190 #define CL_OSAL_ERR_SEM_UNLOCK 0x119
191 
195 #define CL_OSAL_ERR_SEM_GET_VALUE 0x11a
196 
200 #define CL_OSAL_ERR_SEM_DELETE 0x11b
201 
205 #define CL_OSAL_ERR_PROCESS_CREATE 0x11c
206 
210 #define CL_OSAL_ERR_PROCESS_DELETE 0x11d
211 
215 #define CL_OSAL_ERR_PROCESS_WAIT 0x11e
216 
220 #define CL_OSAL_ERR_SHM_CREATE 0x11f
221 
225 #define CL_OSAL_ERR_SHM_ID_GET 0x120
226 
230 #define CL_OSAL_ERR_SHM_DELETE 0x121
231 
235 #define CL_OSAL_ERR_SHM_ATTACH 0x122
236 
240 #define CL_OSAL_ERR_SHM_DETACH 0x123
241 
245 #define CL_OSAL_ERR_SHM_MODE_SET 0x124
246 
250 #define CL_OSAL_ERR_SHM_MODE_GET 0x125
251 
255 #define CL_OSAL_ERR_SHM_SIZE 0x126
256 
260 #define CL_OSAL_ERR_COS_INIT 0x127
261 
265 #define CL_OSAL_ERR_MEM_POOL_CREATE 0x128
266 
270 #define CL_OSAL_ERR_MEM_POOL_DETACH 0x129
271 
275 #define CL_OSAL_ERR_MEM_POOL_DELETE 0x130
276 
280 #define CL_OSAL_ERR_NAME_TOO_LONG 0x131
281 
286 #define CL_OSAL_ERR_CONDITION_TIMEDOUT 0x132
287 
288 
289 /******************************************************************************
290  * ERROR/RETURN CODE HANDLING MACROS
291  *****************************************************************************/
292 #define CL_OSAL_RC(ERROR_CODE) CL_RC(CL_CID_OSAL, (ERROR_CODE))
293 
294 
295 #ifdef __cplusplus
296 }
297 #endif
298 
299 #endif /* _CL_OSAL_ERRORS_H_ */
300 
301 

Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using Doxygen