| 1737 | |
| 1738 | |
| 1739 | static void xnet_error(rem_port* port, ISC_STATUS operation, int status) |
| 1740 | { |
| 1741 | /************************************** |
| 1742 | * |
| 1743 | * x n e t _ e r r o r |
| 1744 | * |
| 1745 | ************************************** |
| 1746 | * |
| 1747 | * Functional description |
| 1748 | * An I/O error has occurred. If a status vector is present, |
| 1749 | * generate an error return. In any case, return NULL, which |
| 1750 | * is used to indicate and error. |
| 1751 | * |
| 1752 | **************************************/ |
| 1753 | if (status) |
| 1754 | { |
| 1755 | if (port->port_state == rem_port::PENDING) |
| 1756 | { |
| 1757 | gds__log("XNET/xnet_error: errno = %d", status); |
| 1758 | } |
| 1759 | |
| 1760 | xnet_gen_error(port, Arg::Gds(operation) << SYS_ERR(status)); |
| 1761 | } |
| 1762 | else |
| 1763 | { |
| 1764 | xnet_gen_error(port, Arg::Gds(operation)); |
| 1765 | } |
| 1766 | } |
| 1767 | |
| 1768 | |
| 1769 | bool_t XnetXdr::x_getbytes(SCHAR* buff, unsigned bytecount) |
no test coverage detected