irrespective of which kernel version coreutils is built against,
reinstating that behaviour from coreutils-9.0.
- od will now exit immediately upon receiving a write error, which is
+ od and uniq will now exit immediately upon receiving a write error, which is
significant when reading large / unbounded inputs.
split now uses more tuned access patterns for its potentially large input.
if (countmode == count_occurrences)
printf ("%7" PRIuMAX " ", linecount + 1);
- fwrite (line->buffer, sizeof (char), line->length, stdout);
+ if (fwrite (line->buffer, sizeof (char), line->length, stdout)
+ != line->length)
+ write_error ();
}
/* Process input file INFILE with output to OUTFILE.
if (new_group || grouping != GM_NONE)
{
- fwrite (thisline->buffer, sizeof (char),
- thisline->length, stdout);
+ if (fwrite (thisline->buffer, sizeof (char), thisline->length,
+ stdout) != thisline->length)
+ write_error ();
SWAP_LINES (prevline, thisline);
prevfield = thisfield;