![]() |
RTEMS 6.3
|
Files | |
| file | cpukit/include/rtems/seterr.h |
| This header file defines macros to set errno and return minus one. | |
Macros | |
| #define | rtems_set_errno_and_return_value(_error, _value) |
| #define | rtems_set_errno_and_return_minus_one(_error) |
| #define rtems_set_errno_and_return_minus_one | ( | _error | ) |
This is a helper macro which will set the variable errno and return -1 to the caller. This pattern is common to many POSIX methods.
| [in] | _error | is the error code |
| #define rtems_set_errno_and_return_value | ( | _error, | |
| _value ) |
This is a helper macro which will set the variable errno and return the specified value to the caller.
| [in] | _error | is the error code |
| [in] | _value | is the value to return |