#include <stdio.h>#include <errno.h>

Go to the source code of this file.
Macros | |
| #define | make_status_int(STATE, REASON, ERRNO) |
| #define | make_read_status(STATE, REASON, ERRNO) ((EST_read_status)(make_status_int(STATE, REASON, ERRNO))) |
| #define | make_write_status(STATE, REASON, ERRNO) ((EST_write_status)(make_status_int(REASON, STATE, ERRNO))) |
| #define | get_rw_state(STATUS) ((EST_rw_state)((((unsigned int)(STATUS)) >> 24) & 0xff)) |
| #define | get_rw_reason(STATUS) ((EST_rw_reason)((((unsigned int)(STATUS)) >> 16) & 0xff)) |
| #define | get_rw_errno(STATUS) ((int)((((unsigned int)(STATUS)) >> 0) & 0xff)) |
| #define | format_ok read_ok |
| #define | wrong_format read_format_error |
| #define | misc_read_error read_error |
| #define | misc_write_error write_error |
Enumerations | |
| enum | EST_rw_reason { rwr_none =0, rwr_format =1, rwr_existance =2, rwr_permission =3, rwr_system =4, rwr_unknown =0xff } |
| enum | EST_rw_state { rws_ok =0, rws_partial =1, rws_failed =0xff } |
| enum | EST_read_status { read_ok = make_status_int(rws_ok, rwr_none, 0), read_format_error = make_status_int(rws_failed, rwr_format, 0), read_not_found_error = make_status_int(rws_failed, rwr_existance, 0), read_error = make_status_int(rws_failed, rwr_unknown, 0) } |
| enum | EST_write_status { write_ok = make_status_int(rws_ok, rwr_none, 0), write_fail = make_status_int(rws_failed, rwr_unknown, 0), write_error = make_status_int(rws_failed, rwr_unknown, 0), write_partial = make_status_int(rws_partial, rwr_unknown, 0) } |
| enum | EST_connect_status { connect_ok = make_status_int(rws_ok, rwr_none, 0), connect_not_found_error = make_status_int(rws_failed, rwr_existance, 0), connect_not_allowed_error = make_status_int(rws_failed, rwr_permission, 0), connect_system_error = make_status_int(rws_failed, rwr_system, 0), connect_error = make_status_int(rws_failed, rwr_unknown, 0) } |
| #define make_status_int | ( | STATE, | |
| REASON, | |||
| ERRNO | |||
| ) |
Definition at line 62 of file EST_rw_status.h.
| #define make_read_status | ( | STATE, | |
| REASON, | |||
| ERRNO | |||
| ) | ((EST_read_status)(make_status_int(STATE, REASON, ERRNO))) |
Definition at line 68 of file EST_rw_status.h.
| #define make_write_status | ( | STATE, | |
| REASON, | |||
| ERRNO | |||
| ) | ((EST_write_status)(make_status_int(REASON, STATE, ERRNO))) |
Definition at line 71 of file EST_rw_status.h.
| #define get_rw_state | ( | STATUS | ) | ((EST_rw_state)((((unsigned int)(STATUS)) >> 24) & 0xff)) |
Definition at line 78 of file EST_rw_status.h.
| #define get_rw_reason | ( | STATUS | ) | ((EST_rw_reason)((((unsigned int)(STATUS)) >> 16) & 0xff)) |
Definition at line 80 of file EST_rw_status.h.
Definition at line 82 of file EST_rw_status.h.
| #define format_ok read_ok |
Definition at line 159 of file EST_rw_status.h.
| #define wrong_format read_format_error |
Definition at line 160 of file EST_rw_status.h.
| #define misc_read_error read_error |
Definition at line 161 of file EST_rw_status.h.
| #define misc_write_error write_error |
Definition at line 162 of file EST_rw_status.h.
| enum EST_rw_reason |
| Enumerator | |
|---|---|
| rwr_none | |
| rwr_format | |
| rwr_existance | |
| rwr_permission | |
| rwr_system | |
| rwr_unknown | |
Definition at line 90 of file EST_rw_status.h.
| enum EST_rw_state |
State of rw
| Enumerator | |
|---|---|
| rws_ok |
ok |
| rws_partial |
partial |
| rws_failed |
failed |
Definition at line 100 of file EST_rw_status.h.
| enum EST_read_status |
Possible outcomes of a file reading operation. More stuff
Definition at line 111 of file EST_rw_status.h.
| enum EST_write_status |
Possible outcomes of a file writing operation
Definition at line 124 of file EST_rw_status.h.
| enum EST_connect_status |
Possible outcomes of a network connection operation
Definition at line 136 of file EST_rw_status.h.