Flushes any buffer to target device if applicable. Returns 1 on success * and 0 on failures. */
| 391 | /* Flushes any buffer to target device if applicable. Returns 1 on success |
| 392 | * and 0 on failures. */ |
| 393 | static int rioFdFlush(rio *r) { |
| 394 | /* Our flush is implemented by the write method, that recognizes a |
| 395 | * buffer set to NULL with a count of zero as a flush request. */ |
| 396 | return rioFdWrite(r,NULL,0); |
| 397 | } |
| 398 | |
| 399 | static const rio rioFdIO = { |
| 400 | rioFdRead, |
nothing calls this directly
no test coverage detected