summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
1994-12-27Include "error.h" rather than simply declaring `void error ();'.Jim Meyering-22/+36
1994-12-27 * dd.c (skip): Use safe_read instead of read.Jim Meyering-10/+14
(copy): Use full_write instead of write. From Bruno Haible.
1994-12-27 * sync.c (main): Make error message accurate.Jim Meyering-1/+1
1994-12-27[member]: Use strchr instead of index.Jim Meyering-1/+1
1994-12-27* test.c (term): Running `./test \( a -o b' got a seg fault.Jim Meyering-8/+11
From Klaus.Reichl@aut.alcatel.at.
1994-12-22(main): Update xstrtol calls to be consistent with new decl.Jim Meyering-2/+2
1994-12-20* src/*.c: Include "error.h" instead of simply declaringJim Meyering-25/+20
`void error ();'.
1994-12-20Begin overhaul.Jim Meyering-7/+71
1994-12-20(test_stat, binary_operator): Use safe_stat instead of SAFE_STAT.Jim Meyering-4/+4
(unary_operator): Use safe_lstat instead of SAFE_LSTAT.
1994-12-20(print_entry): Use safe_stat instead of SAFE_STAT.Jim Meyering-1/+1
1994-12-20(dir_ok): Use safe_stat instead of SAFE_STAT.Jim Meyering-1/+1
1994-12-20(numerous functions): Give char* filename arguments the const attribute.Jim Meyering-30/+28
1994-12-20(main): Use safe_stat, not SAFE_STAT.Jim Meyering-2/+2
1994-12-16Include "error.h" instead of simply declaring `void error ();'.Jim Meyering-6/+5
(main): Don't advance optarg past leading sign -- otherwise, we'd be making tail accept invalid options like `-+1'. (tail_file): Fix call to error with %s in format, but no corresponding argument.
1994-12-16Include "error.h" instead of simply declaring `void error ();'.Jim Meyering-15/+14
1994-12-16Include "error.h" instead of simply declaring `void error ();'.Jim Meyering-14/+7
1994-12-16(main): Use %lu, not %d for unsigned long.Jim Meyering-105/+26
(my_strtoul, uint_fatal_error): Remove functions. Use xstrtoul and STRTOL_FATAL_ERROR instead.
1994-12-13(main): Move to end.Jim Meyering-24/+23
(factor, do_stdin): Declare static.
1994-12-13(docolon): Zero out re_buffer and re_regs before using them.Jim Meyering-0/+2
From H.J. Lu <hjl@nynexst.com>.
1994-12-12.Jim Meyering-0/+821
1994-12-12sort.c (main): Fix interpretation of field offsets when specifiedJim Meyering-1/+7
via -k option. They were being interpreted as zero-indexed. POSIX says they are 1-based indices. (keycompare): Don't ignore characters at the end of words when otherwise they compare equal. Both from Rik Faith <faith@cs.unc.edu>.
1994-12-11* (<most functions>): Change the type of n_units/n_lines/n_bytesJim Meyering-150/+116
to off_t because n_bytes is used as the option to fseek and off_t may be long long (e.g. on BSD4.4). The only place where a 32-bit limit is imposed is in the string-to-integer converstion of xstrtol. (main): Use xstrtol instead of manual string to integer conversion.
1994-12-11(get_format_width, get_format_prec): Use ISDIGIT instead ofJim Meyering-2/+3
comparisons against '0' and '9'.
1994-12-11[ULONGMAX]: Define it.Jim Meyering-1/+5
[LONGMAX]: Define in terms of ULONGMAX instead of as a 32-bit constant.
1994-12-10No longer include <ctype.h>.Jim Meyering-8/+0
[isascii, ISDIGIT]: Remove definitions.
1994-12-10No longer include <ctype.h>.Jim Meyering-8/+0
Remove IS* macros.
1994-12-10No longer include <ctype.h>.Jim Meyering-1/+0
1994-12-10(copy, make_path_private): Use strr?chr instead of r?index.Jim Meyering-3/+3
1994-12-10(parse_conversion, scan_args): Use strr?chr instead of r?index.Jim Meyering-12/+2
1994-12-10(remove_parents): Use strr?chr instead of r?index.Jim Meyering-1/+1
1994-12-10* [!HAVE_STRING_H]: Define strchr to index and strrchr toJim Meyering-21/+51
rindex instead of the other way around. * Include <ctype.h> and define IS* macros.
1994-12-10No longer include <ctype.h>.Jim Meyering-1/+0
1994-12-04Use strr?chr instead of r?index.Jim Meyering-9/+9
1994-12-03(du_files): Handle very low-probability fchdir failure (when errno != 0Jim Meyering-4/+11
&& errno != EINVAL).
1994-12-03(du_files): Variable name changes.Jim Meyering-16/+16
1994-12-03(du_files): Work around SunOS restriction that fchdir doesn't work whenJim Meyering-17/+28
accounting is enabled -- modelled after djm's find.c mods.
1994-12-02(checkfp): Initialize keybeg and keylim fields.Jim Meyering-5/+8
Before, this command perl -e 'print join ("\n", (1..513)), "\n";'|sort -cs -n failed on SunOS 4 systems. From Robert H. de Vries <robert@and.nl>.
1994-12-02(xfclose): Report failed fflush. Otherwise, failed write to stdoutJim Meyering-6/+14
could be missed because of subsequent clearerr. (main): Include filename in a couple error messages. Add missing %s in an error format string.
1994-11-30name changes: number->n_lines|n_bytesJim Meyering-60/+60
1994-11-28Make some globals `static' and/or `const'.Jim Meyering-24/+35
(LEN_STR_PAIR): New macro. (decode_switches): Only ignore invalid TABSET value instead of dying. (parse_ls_color): Use error, not fprintf. (print_type_indicator): Remove dcls of two unused variables.
1994-11-28indentJim Meyering-391/+390
1994-11-28(indent): Use TABs only when doing so replaces at least two spaces.Jim Meyering-8/+9
1994-11-28`colorize' patch from Drepper.Jim Meyering-12/+456
1994-11-18(list_entries): Delete. Split in two actually...Jim Meyering-206/+266
(list_entries_users, list_entries_who, userid_compare): New functions. (list_entries_users): Sort the user names. Reported by Michael I Bushnell. Topologically sort the functions and remove fwd declarations.
1994-11-17(output): Use STDOUT_FILENO instead of `1' in xwrite call.Jim Meyering-2/+2
1994-11-17(dump_remainder): Flush standard output just beforeJim Meyering-8/+12
sleeping so that `tail -f' will output partial lines sooner. This applies only when following the end of a single file. From Leonard N. Zubkoff <lnz@dandelion.com>. (file_lines, pipe_lines, pipe_bytes, start_bytes, start_lines, dump_remainder): Use STDOUT_FILENO instead of `1' in XWRITE calls.
1994-11-16Include <getopt.h> instead of "getopt.h".Jim Meyering-1/+2
1994-11-16(tempname): Merge two very similar sprintf stmts into one.Jim Meyering-4/+5
1994-11-16Use BUFSIZ instead of BUFSIZE.Jim Meyering-22/+22
1994-11-16Rewriting to help it pass a reasonable suite of tests.Jim Meyering-29/+65