| 203 | Then set *BPOUT to OUTPUT if it's not already that value. */ |
| 204 | |
| 205 | static inline void |
| 206 | write_pending (char *outbuf, char **bpout) |
| 207 | { |
| 208 | idx_t n_write = *bpout - outbuf; |
| 209 | if (0 < n_write) |
| 210 | { |
| 211 | if (full_write (STDOUT_FILENO, outbuf, n_write) != n_write) |
| 212 | write_error (); |
| 213 | *bpout = outbuf; |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | /* Copy the file behind 'input_desc' to STDOUT_FILENO. |
| 218 | Use INBUF and read INSIZE with each call, |