RTEMS
|
This group contains the Classic API status codes and support functions. More...
Files | |
file | status.h |
This header file defines the status codes and support functions of the Classic API. | |
Macros | |
#define | RTEMS_STATUS_CODES_FIRST RTEMS_SUCCESSFUL |
This constant represents the lowest valid value for a Classic API status code. | |
#define | RTEMS_STATUS_CODES_LAST RTEMS_PROXY_BLOCKING |
This constant represents the highest valid value for a Classic API status code. | |
Enumerations | |
enum | rtems_status_code { RTEMS_SUCCESSFUL = 0, RTEMS_TASK_EXITTED = 1, RTEMS_MP_NOT_CONFIGURED = 2, RTEMS_INVALID_NAME = 3, RTEMS_INVALID_ID = 4, RTEMS_TOO_MANY = 5, RTEMS_TIMEOUT = 6, RTEMS_OBJECT_WAS_DELETED = 7, RTEMS_INVALID_SIZE = 8, RTEMS_INVALID_ADDRESS = 9, RTEMS_INVALID_NUMBER = 10, RTEMS_NOT_DEFINED = 11, RTEMS_RESOURCE_IN_USE = 12, RTEMS_UNSATISFIED = 13, RTEMS_INCORRECT_STATE = 14, RTEMS_ALREADY_SUSPENDED = 15, RTEMS_ILLEGAL_ON_SELF = 16, RTEMS_ILLEGAL_ON_REMOTE_OBJECT = 17, RTEMS_CALLED_FROM_ISR = 18, RTEMS_INVALID_PRIORITY = 19, RTEMS_INVALID_CLOCK = 20, RTEMS_INVALID_NODE = 21, RTEMS_NOT_CONFIGURED = 22, RTEMS_NOT_OWNER_OF_RESOURCE = 23, RTEMS_NOT_IMPLEMENTED = 24, RTEMS_INTERNAL_ERROR = 25, RTEMS_NO_MEMORY = 26, RTEMS_IO_ERROR = 27, RTEMS_INTERRUPTED = 28, RTEMS_PROXY_BLOCKING = 29 } |
This enumeration provides status codes for directives of the Classic API. More... | |
Functions | |
int | rtems_status_code_to_errno (rtems_status_code status_code) |
Maps the specified RTEMS status code to a POSIX error number. More... | |
static bool | rtems_are_statuses_equal (rtems_status_code left_status_code, rtems_status_code right_status_code) |
Returns true, if the left hand side status code is equal to the right hand side status code, otherwise returns false. More... | |
static bool | rtems_is_status_successful (rtems_status_code status_code) |
Returns true, if the status code is equal to RTEMS_SUCCESSFUL, otherwise returns false. More... | |
const char * | rtems_status_text (rtems_status_code status_code) |
Returns a text describing the specified status code. More... | |
This group contains the Classic API status codes and support functions.
enum rtems_status_code |
This enumeration provides status codes for directives of the Classic API.
|
inlinestatic |
|
inlinestatic |
Returns true, if the status code is equal to RTEMS_SUCCESSFUL, otherwise returns false.
status_code | is the status code. |
int rtems_status_code_to_errno | ( | rtems_status_code | status_code | ) |
Maps the specified RTEMS status code to a POSIX error number.
status_code | is the status code to map. |
0 | The status code was RTEMS_SUCCESSFUL. |
EBADF | The status code was RTEMS_INVALID_NUMBER. |
EBUSY | The status code was RTEMS_RESOURCE_IN_USE. |
EINTR | The status code was RTEMS_INTERRUPTED. |
EINVAL | The status code was RTEMS_INVALID_CLOCK, RTEMS_INVALID_NAME, or RTEMS_INVALID_NODE. |
EIO | The status code was RTEMS_ALREADY_SUSPENDED, RTEMS_CALLED_FROM_ISR, RTEMS_ILLEGAL_ON_REMOTE_OBJECT, RTEMS_ILLEGAL_ON_SELF, RTEMS_INCORRECT_STATE, RTEMS_INTERNAL_ERROR, RTEMS_INVALID_ADDRESS, RTEMS_INVALID_ID, RTEMS_INVALID_PRIORITY, RTEMS_INVALID_SIZE, RTEMS_IO_ERROR, RTEMS_MP_NOT_CONFIGURED, RTEMS_NOT_DEFINED, RTEMS_OBJECT_WAS_DELETED, RTEMS_PROXY_BLOCKING, RTEMS_TASK_EXITTED, or RTEMS_TOO_MANY. |
ENODEV | The status code was RTEMS_UNSATISFIED. |
ENOMEM | The status code was RTEMS_NO_MEMORY. |
ENOSYS | The status code was RTEMS_NOT_CONFIGURED or RTEMS_NOT_IMPLEMENTED. |
EPERM | The status code was RTEMS_NOT_OWNER_OF_RESOURCE. |
ETIMEDOUT | The status code was RTEMS_TIMEOUT. |
const char* rtems_status_text | ( | rtems_status_code | status_code | ) |
Returns a text describing the specified status code.
The text for each status code is the enumerator constant.
status_code | is the status code. |
? | The specified status code is invalid. |
Definition at line 60 of file statustext.c.