40 #ifndef __RW_STATUS_H__ 41 #define __RW_STATUS_H__ 62 #define make_status_int(STATE, REASON, ERRNO) \ 63 ( ((((unsigned int)(STATE)) & 0xff) <<24) \ 64 | ((((unsigned int)(REASON)) & 0xff) <<16) \ 65 | ((((unsigned int)(ERRNO)) & 0xffff) <<00) \ 68 #define make_read_status(STATE, REASON, ERRNO)\ 69 ((EST_read_status)(make_status_int(STATE, REASON, ERRNO))) 71 #define make_write_status(STATE, REASON, ERRNO) \ 72 ((EST_write_status)(make_status_int(REASON, STATE, ERRNO))) 78 #define get_rw_state(STATUS) \ 79 ((EST_rw_state)((((unsigned int)(STATUS)) >> 24) & 0xff)) 80 #define get_rw_reason(STATUS) \ 81 ((EST_rw_reason)((((unsigned int)(STATUS)) >> 16) & 0xff)) 82 #define get_rw_errno(STATUS) \ 83 ((int)((((unsigned int)(STATUS)) >> 0) & 0xff)) 159 #define format_ok read_ok 160 #define wrong_format read_format_error 161 #define misc_read_error read_error 162 #define misc_write_error write_error
The file was read in successfully.
An error occurred while reading.
The file was not written successfully.
The file was written successfully.
The file was not written successfully.
A valid file was created, but only some of the requested data is in there.
The file exists but is not in the format specified.
#define make_status_int(STATE, REASON, ERRNO)
System failure of some kind.
The file was not written successfully.