RTEMS  5.1
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 {
185 
189 #define RTEMS_STATUS_CODES_FIRST RTEMS_SUCCESSFUL
190 
194 #define RTEMS_STATUS_CODES_LAST RTEMS_PROXY_BLOCKING
195 
204 )
205 {
206  return (code == RTEMS_SUCCESSFUL);
207 }
208 
216  rtems_status_code code1,
217  rtems_status_code code2
218 )
219 {
220  return (code1 == code2);
221 }
222 
247 
259 
262 #ifdef __cplusplus
263 }
264 #endif
265 
266 #endif
267 /* 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:202
Definition: status.h:125
Definition: status.h:154
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:215
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:52
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:183
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:60
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
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
Definition: status.h:77
Definition: status.h:174
Definition: status.h:134
Definition: status.h:102