Flushes any buffer to target device if applicable. Returns 1 on success * and 0 on failures. */
| 350 | /* Flushes any buffer to target device if applicable. Returns 1 on success |
| 351 | * and 0 on failures. */ |
| 352 | static int rioFdFlush(rio *r) { |
| 353 | /* Our flush is implemented by the write method, that recognizes a |
| 354 | * buffer set to NULL with a count of zero as a flush request. */ |
| 355 | return rioFdWrite(r,NULL,0); |
| 356 | } |
| 357 | |
| 358 | static const rio rioFdIO = { |
| 359 | rioFdRead, |
nothing calls this directly
no test coverage detected