dj(1): statistics now track hard seeks

This commit is contained in:
dtb
2024-07-04 21:32:05 -06:00
parent 571796fe0d
commit 6ed7089b25
2 changed files with 18 additions and 29 deletions

View File

@@ -41,10 +41,6 @@ with a skip offset of 1 skips one byte into the input and reads from the second
byte onwards. A programmer may think of a file as a zero-indexed array of
bytes; in this analogy, the offset given is the index of the byte at which to
start reading or writing.
Seeks aren\(cqt counted in the output statistics because they\(cqre guaranteed
to succeed (or the utility will exit unsuccessfully, before it has written any
data).
.\"
.SH OPTIONS
@@ -195,9 +191,10 @@ and
.BR -S .
The lowercase option affects input and the capitalized option affects output.
The discarded but read bytes skipped while processing irregular files, such as
streams, are reported in the diagnostic output. Bytes skipped while processing
regular files are not reported, as the bytes weren\(cqt read.
The skipped or sought bytes while processing irregular files, such as streams,
are reported in the diagnostic output, because they were actually read or
written. This is as opposed to bytes skipped while processing regular files,
which are not reported.
.\"
.SH RATIONALE