summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-11-15.Jim Meyering
2002-11-12(HAVE_SYMLINKS): Remove unnecessary macro definition.Jim Meyering
Replace sole use with equivalent `#ifdef S_ISLNK'. Inconsistency reported by Dmitry V. Levin.
2002-11-10(usage): Transform --help output via s/ - / /,Jim Meyering
so that help2man produces properly formatted man pages.
2002-11-10(sighandler): Handle SIGTSTP specially.Jim Meyering
Based on suggestions from Solar Designer and Dmitry V. Levin. Add comments.
2002-11-10(restore_default_color_handler, sigtstp_handler): Remove functions.Jim Meyering
(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.
2002-11-10(main): Also declare `i' to be unsigned, not int.Jim Meyering
2002-11-10(sighandler): Use raise, rather than kill+getpid.Jim Meyering
(main): Declare `nsigs' to be unsigned, not int.
2002-11-10(interrupt_handler): Use raise, rather than kill+getpid.Jim Meyering
2002-11-10(interrupt_handler): Use raise, rather than kill+getpid.Jim Meyering
2002-11-09correct indentationJim Meyering
2002-11-09ls --color: restore terminal state (color) upon signal.Jim Meyering
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.
2002-11-08(human_output_opts): New var.Jim Meyering
(output_block_size): Now uintmax_t, not int, to handle larger block sizes. All uses changed.
2002-11-08(print_header): Use primitives from inttostr.h, notJim Meyering
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.
2002-11-06.Jim Meyering
2002-11-06(print_long_format, print_file_name_and_frills):Jim Meyering
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.
2002-11-06(usage): Update description.Jim Meyering
2002-11-06(print_esc): Hexadecimal \xhh escapes may haveJim Meyering
at most two hex. digits, not three.
2002-11-05(inttostr): Remove; use new imaxtostr library function instead.Jim Meyering
2002-11-05(checkfp): Use primitives from inttostr.h, not human.h,Jim Meyering
to print large numbers simply.
2002-11-05(bsd_sum_file, sysv_sym_file):Jim Meyering
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05(xlseek):Jim Meyering
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05(write_counts, wc):Jim Meyering
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05(dopass):Jim Meyering
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).
2002-11-05(print_factors):Jim Meyering
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05(print_stats, main):Jim Meyering
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05(handle_line_error, parse_patterns):Jim Meyering
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05(cksum): Use primitives from inttostr.h, notJim Meyering
human.h, to print large numbers simply.
2002-10-19(cwrite): Change type of `bytes' parameter to size_tJim Meyering
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.
2002-10-19(print_heading): Align TTY and Name headings.Jim Meyering
2002-10-18(ST_BLKSIZE): Correct comment describing how toJim Meyering
reproduce HPUX-11 cat failure.
2002-10-17Fix a problem that could make cat misbehave on systems whichJim Meyering
give invalid (unreasonably large) values for stat.st_blksize. (ST_BLKSIZE): Ensure that the result is in [1..4MB].
2002-10-14Specifying a printf conversion specifer as nl's separator stringJim Meyering
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.
2002-10-13.Jim Meyering
2002-10-13(usage): Tweak description of --dereference-args/-D.Jim Meyering
2002-10-13(count_entry): Also save cwd when dereferencing (via --dereference-args, -D)Jim Meyering
a command-line argument. Reported by Michal Svec. Based on a patch by Andreas Schwab.
2002-10-13update commentJim Meyering
2002-10-13(../AUTHORS): Make it read-only.Jim Meyering
2002-10-13.Jim Meyering
2002-10-13(../AUTHORS): New target/rule.Jim Meyering
2002-10-12(paste_parallel): Declare local var, `delims_saved', to beJim Meyering
of type size_t, since that's the way it's used and avoids a warning.
2002-10-12(struct cstring) [len]: Declare to be unsigned int,Jim Meyering
since that's how it's always used and avoids a new warning from gcc. (read_input): Adapt to new safe_read ABI.
2002-10-12(cut_fields): Add a temporary size_t variable, n_bytes, to avoid warnings.Jim Meyering
2002-10-12(print_long_entry): fread returns size_t.Jim Meyering
Declare local `bytes' accordingly, to avoid warning.
2002-10-12tail -c +N would perform an extra read after encountering EOFJim Meyering
[this change is analogous (bytes vs. lines) to the one of 2002-01-27] (start_bytes): Detect EOF, inform caller. (tail_bytes): Upon EOF in start_bytes, return immediately. (file_lines): Reorganize to use memrchr rather than an explicit loop. Adapt to new safe_read ABI.
2002-10-09(wc): Adapt to new safe_read ABI.Jim Meyering
2002-10-09(.jar): Fix typo: s/01;3/01;31/.Jim Meyering
2002-10-08(main): Fix target_directory parsing when n_files == 1.Jim Meyering
Patch by Dmitry V. Levin.
2002-10-08(save_stdin, tac_stdin_to_mem): Adapt to new safe_read ABI.Jim Meyering
2002-10-08Rename local variable: chars_read -> bytes_readJim Meyering
2002-10-08(squeeze_filter, read_and_delete, read_and_xlate): Adapt to new safe_read ABI.Jim Meyering