Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
Include strftime.h instead.
|
|
This is necessary at least for Irix6.5 when using c89.
Reported by Nelson Beebe.
|
|
Remove now-redundant usage-specifying comment.
|
|
--preserve=mode,ownership.
(decode_preserve_arg): Advance `comma' to
point the character following the comma.
|
|
in case it's already defined.
|
|
Define to rpl_lstat, so that even on systems like Solaris 5.8,
du honors (per POSIX) the trailing slash on an argument referring
to a symlink-to-directory.
|
|
|
|
regular file and --indicator-style=classify (aka -F).
|
|
|
|
|
|
|
|
|
|
since this package no longer panders to K&R compilers.
|
|
That's already done via system.h.
|
|
That's already done via system.h.
|
|
entry on systems with valid dirent.d_type.
(print_dir): Add DT_LNK and DT_REG.
(main): Make --recursive set format_needs_type, not format_needs_stat.
(gobble_file): Remove a FIXME comment, now that this is fixed.
|
|
`ls --color -F symlink-to-dir' to list the files in
`symlink-to-dir/.'. Now, it prints `symlink-to-dir@',
(just like `ls -F symlink-to-dir') but with the addition
of highlighting.
|
|
|
|
Rewrite so that `/' is no longer represented internally as
the empty string.
(count_entry): When appending a file name component,
account for the fact that the current path may end in `/'.
François Pinard reported that `du symlink-to-dir/' was not
equivalent to `du symlink-to-dir/.'. Now it is.
|
|
|
|
decode the QUOTING_STYLE environment variable. This is more
consistent with the documentation, and with --quoting-style.
|
|
rather than `int' to avoid warnings from gcc.
|
|
When trying to set a high baud rate using stty, it says "invalid
argument". When the high rate is already configured, "stty -a"
returns 0 instead of the true baud rate.
(struct speeds): Add support for all baud rates defined
in linux-2.4.19.
|
|
|
|
|
|
Replace sole use with equivalent `#ifdef S_ISLNK'.
Inconsistency reported by Dmitry V. Levin.
|
|
so that help2man produces properly formatted man pages.
|
|
Based on suggestions from Solar Designer and Dmitry V. Levin.
Add comments.
|
|
(sighandler): New function, based on the one in sort.c.
(main): Use sigaction, if possible; otherwise signal.
Handle these signals:
SIGHUP, SIGINT, SIGPIPE, SIGQUIT, SIGTERM, SIGTSTP.
Don't register our handler if the signal is already being ignored.
|
|
|
|
(main): Declare `nsigs' to be unsigned, not int.
|
|
|
|
|
|
|
|
Include "full-write.h" and <signal.h>.
(restore_default_color, restore_default_color_handler): New functions.
(sigtstp_handler, put_indicator_direct): New functions.
(main) [print_with_color]: Register signal handlers.
Patch mostly by Solar Designer and Stanislav Ievlev.
|
|
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes. All uses changed.
|
|
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.
(print_header): In the header line, prefer SI to human
representation if it's shorter; if neither is shorter, try to
intuit what the user would prefer.
|
|
|
|
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.
|
|
|
|
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.
|