HomeFreeBSD

wc(1): Restore regular file char count fast path

Description

wc(1): Restore regular file char count fast path

fstat(2) is going to be a lot faster than reading all of the bytes in a
file, if we just need a character count for a regular file. This fast path
was accidentally broken in r326736.

PR: 224160
Reported by: bde
Sponsored by: Dell EMC Isilon

Details

Provenance
cemAuthored on
Parents
rS326748: Document the existence and precision of the remaining long double
Branches
Unknown
Tags
Unknown