MCPcopy Create free account
hub / github.com/coreutils/coreutils / write_pending

Function write_pending

src/cat.c:205–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 Then set *BPOUT to OUTPUT if it's not already that value. */
204
205static inline void
206write_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,

Callers 1

catFunction · 0.85

Calls 1

write_errorFunction · 0.85

Tested by

no test coverage detected