summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-04-08Document that while the --backup option takes anJim Meyering
optional argument, the -b option accepts none. (main): Use `backup type' in call to xget_version, not the now-deprecated `--version-control'.
2000-04-08Document that while the --backup option takes anJim Meyering
optional argument, the -b option accepts none. (main): Use `backup type' in call to xget_version, not the now-deprecated `--version-control'.
2000-04-03Include <langinfo.h> if it exists.Jim Meyering
(DATE_FMT_LANGINFO): New macro. (show_date): Use it to get the locale-specific default format for "date" if it exists.
2000-03-18(print_uptime): Use `buf' only if fgets succeeds.Jim Meyering
2000-03-12Merge from textutils.Jim Meyering
(O_BINARY, O_TEXT): Define if necessary. (SET_BINARY, SET_BINARY2): Define. (DEV_BSIZE): Define to BBSIZE if appropriate.
2000-03-12(usage): Correct --help output.Jim Meyering
2000-03-06(struct buffer.newline_free): New member.Jim Meyering
(initbuf, findlines): Set it. (fillbuf): Do not double the size of a full buffer to append a newline unless the buffer is known to be newline free.
2000-03-04Once we encounter a file that is not of IS_TAILABLE_FILE_TYPE,Jim Meyering
marke it as such and ignore it forever after. (struct File_spec): New member. (recheck): Initialize new member. (tail_file): Likewise. (tail_forever): Skip the file if it's marked as ignorable.
2000-03-04Don't get failed assertion for `tail -f directory'.Jim Meyering
Revert most of 1999-10-20 change. Instead, ... (IS_TAILABLE_FILE_TYPE): Define to produce similar result. (recheck): Use it here. (tail_file): Use it here.
2000-03-04Include "unicodeio.h".Jim Meyering
(usage): Mention \u and \U directives. \x outputs a byte, not a character. (print_esc): Implement \u and \U.
2000-03-04copyrightJim Meyering
2000-03-03Make it so stty's rprnt attribute works on HPUX 10.20.Jim Meyering
[CREPRINT && !CRPRNT] (CRPRNT): Define. (control_info): Recognize HPUX's CREPRINT.
2000-03-03(fillbuf): Move declaration of local, cc, into scope ofJim Meyering
`while' loop where it's used.
2000-03-03Big performance improvement when sorting many small files,Jim Meyering
building on a suggestion by Charles Randall. (fillbuf): Skip memmove if it would be a no-op, as many memmove implementations are slow in that case. Don't examine leftover bytes for eolchar, since they may be left over from a previous file, and we want to read from this file. (sort): At end of file, if there is more input and buffer room, concatenate the next input file.
2000-03-02(getlogin, ttyname, geteuid): Declare them here, if needed.Jim Meyering
2000-03-02(show_point): Ignore shortcuts based on pathJim Meyering
prefixes that are loop file system mount points, since they yield undesirable output.
2000-03-01(get_width_format): Fix portability problem with `-0' vs. `0'.Jim Meyering
2000-02-29(decode_switches): Remove `e' from getopt_long's list ofJim Meyering
option characters. Reported by John Summerfield.
2000-02-29(make_blank): Add an explicit cast to `unsigned char *'Jim Meyering
to placate HPUX's C compiler. Reported by Bob Proulx.
2000-02-29split a long lineJim Meyering
2000-02-27Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.Jim Meyering
2000-02-27Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL...'Jim Meyering
now that autoconf always defines the HAVE_DECL_ symbols.
2000-02-27(install_file_to_path): Always use install_file_in_file.Jim Meyering
Based on a patch from Adam Klein via Michael Stone.
2000-02-15(pop_dir): New function.Jim Meyering
(count_entry): Factor out common code (pop_dir), and call the new function instead. Move declaration of global, `stat_buf' into this function. (du_files): Don't stat `.' or call save_cwd, since count_entry never returns with a changed working directory.
2000-02-12(usage): Mention only `:', and not `.' as the separator.Jim Meyering
2000-02-11(main): Count the stat'able arguments.Jim Meyering
Print the header line only if there is at least one valid argument. Reported by Andy Longton <alongton@metamark.com>
2000-02-09(correct_password): Correct HAVE_STRUCT_* name in #if guardJim Meyering
to go along with corrected autoconf test: Reported by G Queri.
2000-02-05Use UT_USER in place of hard-coded `->ut_name' here, too.Jim Meyering
2000-02-05(copy_internal): Don't allow mv to move a directory ontoJim Meyering
a non-directory. Reported by Brian Kimball via Michael Stone.
2000-02-03(O_NDELAY): Define to 0 if not defined.Jim Meyering
(O_NONBLOCK): Define to O_NDELAY if not defined. (touch): Open with O_NONBLOCK, so one can touch a fifo without hanging. Reported by Eric G. Miller via Michael Stone.
2000-01-31Use UT_USER in place of hard-coded `->ut_name' here, too.Jim Meyering
2000-01-30(correct_password): Guard with `HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP',Jim Meyering
rather than just `#ifdef HAVE_SHADOW_H'.
2000-01-30(ST_NBLOCKS): Use st_size only for regular files andJim Meyering
for directories. From H. J. Lu.
2000-01-30(main): Exit with nonzero status if ftruncate fails.Jim Meyering
2000-01-29Back out most of the 2000-01-21 and 01-22 changes.Jim Meyering
[Instead, merely give examples showing how to accomplish the same task with fewer limitations using existing tools. ] Suggestion from Bruno Haible. (valid_format): Rename from check_format.
2000-01-29(screen_columns): Change #if-0 (test code, mistakenly committed in last delta)Jim Meyering
back to #ifdef TIOCGWINSZ.
2000-01-28(wrapf): Emit a newline only if 0 < current_col.Jim Meyering
(screen_columns): Use xstrtol, not atoi. If get_win_size fails and $COLUMNS == 0, then return 80, not `0'.
2000-01-26(detect_loop): Update incomplete comment.Jim Meyering
From Mark Kettenis.
2000-01-25tsort now works more like the traditional UNIX tsort. Before it wouldJim Meyering
exit when it found a loop. Now it continues and outputs all items. (exit_status): New variable. (loop): New varibale. (count_items, scan_zeroes): Change return type to int. (detect_loop): Complete rewrite to correctly implement detection of loops. Also change return type to int. (recurse_tree): Stop if ACTION returns non-zero. This involves changing the return type of this function and ACTION to int. (walk_tree): Change return type of ACTION to int. (tsort): Continue sort after a loop has been detected (and broken). Set exit_status to 1 if a loop was detected. (main): Use exit_status to determine exit code.
2000-01-24(usage): Describe behavior when LINK_NAME is omitted.Jim Meyering
From Michael Stone.
2000-01-24(main): Don't expect array index `n_files - 1' to evaluateJim Meyering
to `-1' for unsigned int n_files == 0. Doing so lead to a segfault on alpha. From Michael Stone.
2000-01-22(keycompare): Use global, hard_LC_COLLATE in place ofJim Meyering
local that is sometimes undeclared.
2000-01-22[! HAVE_DECL_STRTOUL]: Declare strtoul.Jim Meyering
[! HAVE_DECL_STRTOULL]: Declare strtoull. Required for some AIX systems. Reported by Christian Krackowizer.
2000-01-22Topologically sort the functions and remove fwd declarations.Jim Meyering
2000-01-22(enum Format_type): Declare.Jim Meyering
(format_type): New global to take place of intconv. (DO_printf): New macro. (main): Use it.
2000-01-22Add support for octal and hexadecimal output.Jim Meyering
(intconv): New variable. (usage): Update. (main): Call scan_arg instead of scan_double_arg. Call check_format before scan_arg. (scan_int_arg, scan_arg): New functions. (check_format): Add intconv argument. Accept %d, %u, %o, %x, %X. (print_numbers): If intconv is true, pass an int argument to printf.
2000-01-22("xstrtol.h"): Include.Jim Meyering
(Filter): Rename from PFL. (non_neg_strtol): Remove function. (find_bracketed_repeat): Use xstrtoul instead of non_neg_strtol. (squeeze_filter, set_initialize, main): Use size_t and ssize_t in place of long and int in several decls. (read_and_delete, read_and_xlate): Likewise, and remove assertion.
2000-01-21Correct copying notice to use GPL, per author's request.Jim Meyering
(AUTHORS): Add djm.
2000-01-21Correct copying notice to use GPL, per author's request.Jim Meyering
2000-01-21(PFI): Return `long', not `int'.Jim Meyering
(PFL): Rename from PFI now that it returns long. (squeeze_filter): Declare as `long': i, nr, out_len.