| 131 | //------------------------------------------------------------------------- |
| 132 | |
| 133 | int |
| 134 | RecFileWrite(RecHandle h_file, char *buf, int size, int *bytes_written) |
| 135 | { |
| 136 | if ((*bytes_written = ::write(h_file, buf, size)) < 0) { |
| 137 | *bytes_written = 0; |
| 138 | return REC_ERR_FAIL; |
| 139 | } |
| 140 | return REC_ERR_OKAY; |
| 141 | } |
| 142 | |
| 143 | //------------------------------------------------------------------------- |
| 144 | // RecFileGetSize |