Age | Commit message (Collapse) | Author |
|
|
|
|
|
Use primitives from inttostr.h, not
human.h, to print large numbers simply.
(human_output_opts): New var.
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes. All uses changed.
(file_output_block_size): New var, to distinguish
file sizes from other sizes.
(decode_switches): Set it.
|
|
|
|
Change \xhhh to \xhh.
|
|
|
|
thousands-separators) and for explicit size suffixes on output.
(Block size): Say that:
This affects display format as well as block size.
Fractional block counts are rounded up.
ls file size blocksize defaults to 1.
A block size spec preceded by ' generates thousands separators.
A suffix without a preceding integer generates suffixes.
(tail invocation): 32k -> 32 KiB.
(What information is listed): ls -h is now equivalent to
ls --block-size=human, and ls -H is now equivalent to
ls --block-size=si. Displayed file size is now always affected by
--block-size.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
as part of the \x escape sequence.
|
|
at most two hex. digits, not three.
|
|
|
|
to print large numbers simply.
|
|
Use primitives from inttostr.h, not human.h, to print large numbers simply.
|
|
Use primitives from inttostr.h, not human.h, to print large numbers simply.
|
|
Use primitives from inttostr.h, not human.h, to print large numbers simply.
|
|
Use primitives from inttostr.h, not human.h, to print large numbers simply.
(OUTPUT_BLOCK_SIZE): remove.
(dopass): When printing progress, use floor for what has been done
so far (since we should be conservative there), and ceiling for
what needs to be done (since that's what other programs use).
|
|
Use primitives from inttostr.h, not human.h, to print large numbers simply.
|
|
Use primitives from inttostr.h, not human.h, to print large numbers simply.
|
|
Use primitives from inttostr.h, not human.h, to print large numbers simply.
|
|
human.h, to print large numbers simply.
|
|
|
|
Remove now-useless cast.
(stdread): Remove function.
(bytes_split): Use size_t instead of int.
Use safe_read, not stdread.
(lines_split): Likewise.
Use memchr rather than a `while' loop.
(line_bytes_split): Use size_t instead of int.
Use safe_read, not stdread.
(main): Add some FIXME comments to remind me to remove casts.
|
|
|
|
notations like thousands separators.
Specify what includer of include.h must include beforehand.
(human_group_digits, human_suppress_point_zero, human_autoscale,
human_base_1024, human_SI, human_B): New enum values.
(human_readable): Rename from human_readable_inexact; put the
options before the sizes. All uses changed. The old human_readable
function has been removed; use inttostr.h instead.
(human_options): Renamed from human_block_size, with new signature
that allows block sizes up to UINTMAX_MAX. All callers changed.
|
|
|
|
|
|
(EXTRA_DIST): Add inttostr.c.
|
|
|
|
|
|
|
|
|
|
|
|
reproduce HPUX-11 cat failure.
|
|
|
|
|
|
give invalid (unreasonably large) values for stat.st_blksize.
(ST_BLKSIZE): Ensure that the result is in [1..4MB].
|
|
|
|
|
|
|
|
|
|
could cause nl to segfault.
(build_print_fmt): Don't include separator string
in the printf format; it might contain `%'.
Use a better bound on the length of the print_fmt buffer.
(print_lineno): Print the separator here instead.
|
|
|
|
|
|
|