RTEMS  5.0.0
status.h
Go to the documentation of this file.
1 
10 /* COPYRIGHT (c) 1989-2013.
11  * On-Line Applications Research Corporation (OAR).
12  *
13  * The license and distribution terms for this file may be
14  * found in the file LICENSE in this distribution or at
15  * http://www.rtems.org/license/LICENSE.
16  */
17 
18 #ifndef _RTEMS_RTEMS_STATUS_H
19 #define _RTEMS_RTEMS_STATUS_H
20 
21 #include <rtems/score/basedefs.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
43 typedef enum {
179 
183 #define RTEMS_STATUS_CODES_FIRST RTEMS_SUCCESSFUL
184 
188 #define RTEMS_STATUS_CODES_LAST RTEMS_PROXY_BLOCKING
189 
198 )
199 {
200  return (code == RTEMS_SUCCESSFUL);
201 }
202 
210  rtems_status_code code1,
211  rtems_status_code code2
212 )
213 {
214  return (code1 == code2);
215 }
216 
240 
252 
255 #ifdef __cplusplus
256 }
257 #endif
258 
259 #endif
260 /* end of include file */
Definition: status.h:72
Definition: status.h:89
Definition: status.h:47
Definition: status.h:138
Definition: status.h:164
Definition: status.h:68
RTEMS_INLINE_ROUTINE bool rtems_is_status_successful(rtems_status_code code)
Checks if the status code is equal to RTEMS_SUCCESSFUL.
Definition: status.h:196
Definition: status.h:125
Definition: status.h:154
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
RTEMS_INLINE_ROUTINE bool rtems_are_statuses_equal(rtems_status_code code1, rtems_status_code code2)
Checks if the status code1 is equal to code2.
Definition: status.h:209
Definition: status.h:93
Definition: status.h:120
Definition: status.h:51
int rtems_status_code_to_errno(rtems_status_code sc)
RTEMS Status Code to Errno Mapping Function.
Definition: statustoerrno.c:51
Definition: status.h:147
Definition: status.h:55
rtems_status_code
Classic API Status.
Definition: status.h:43
Definition: status.h:81
Definition: status.h:177
Definition: status.h:159
Definition: status.h:59
Definition: status.h:116
const char * rtems_status_text(rtems_status_code code)
Returns a text for a status code.
Definition: statustext.c:59
Definition: status.h:107
Definition: status.h:98
Definition: status.h:111
Definition: status.h:130
Definition: inftrees.h:24
Definition: status.h:142
Definition: status.h:63
Basic Definitions.
Definition: status.h:85
Definition: status.h:168
Definition: status.h:77
Definition: status.h:134
Definition: status.h:102