summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1994-12-16Include "error.h" instead of simply declaring `void error ();'.Jim Meyering
1994-12-16Include "error.h" instead of simply declaring `void error ();'.Jim Meyering
1994-12-16(main): Use %lu, not %d for unsigned long.Jim Meyering
(my_strtoul, uint_fatal_error): Remove functions. Use xstrtoul and STRTOL_FATAL_ERROR instead.
1994-12-13(main): Move to end.Jim Meyering
(factor, do_stdin): Declare static.
1994-12-13(docolon): Zero out re_buffer and re_regs before using them.Jim Meyering
From H.J. Lu <hjl@nynexst.com>.
1994-12-12.Jim Meyering
1994-12-12sort.c (main): Fix interpretation of field offsets when specifiedJim Meyering
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
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
comparisons against '0' and '9'.
1994-12-11[ULONGMAX]: Define it.Jim Meyering
[LONGMAX]: Define in terms of ULONGMAX instead of as a 32-bit constant.
1994-12-10No longer include <ctype.h>.Jim Meyering
[isascii, ISDIGIT]: Remove definitions.
1994-12-10No longer include <ctype.h>.Jim Meyering
Remove IS* macros.
1994-12-10No longer include <ctype.h>.Jim Meyering
1994-12-10(copy, make_path_private): Use strr?chr instead of r?index.Jim Meyering
1994-12-10(parse_conversion, scan_args): Use strr?chr instead of r?index.Jim Meyering
1994-12-10(remove_parents): Use strr?chr instead of r?index.Jim Meyering
1994-12-10* [!HAVE_STRING_H]: Define strchr to index and strrchr toJim Meyering
rindex instead of the other way around. * Include <ctype.h> and define IS* macros.
1994-12-10No longer include <ctype.h>.Jim Meyering
1994-12-04Use strr?chr instead of r?index.Jim Meyering
1994-12-03(du_files): Handle very low-probability fchdir failure (when errno != 0Jim Meyering
&& errno != EINVAL).
1994-12-03(du_files): Variable name changes.Jim Meyering
1994-12-03(du_files): Work around SunOS restriction that fchdir doesn't work whenJim Meyering
accounting is enabled -- modelled after djm's find.c mods.
1994-12-02(checkfp): Initialize keybeg and keylim fields.Jim Meyering
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
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
1994-11-28Make some globals `static' and/or `const'.Jim Meyering
(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
1994-11-28(indent): Use TABs only when doing so replaces at least two spaces.Jim Meyering
1994-11-28`colorize' patch from Drepper.Jim Meyering
1994-11-18(list_entries): Delete. Split in two actually...Jim Meyering
(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
1994-11-17(dump_remainder): Flush standard output just beforeJim Meyering
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
1994-11-16(tempname): Merge two very similar sprintf stmts into one.Jim Meyering
1994-11-16Use BUFSIZ instead of BUFSIZE.Jim Meyering
1994-11-16Rewriting to help it pass a reasonable suite of tests.Jim Meyering
1994-11-16Declare DELIM to be `int' rather than unsigned char.Jim Meyering
1994-11-16.Jim Meyering
1994-11-16.Jim Meyering
1994-11-11(my_strtol): New function.Jim Meyering
(main): Use it instead of atoi to convert argument strings to major and minor device numbers. Now, mknod diagnoses invalid device numbers and accepts octal and hexadecimal as well as decimal string arguments. Ralf Lammers <rlammers@physik.uni-osnabrueck.de> suggested that mknod accept hex device numbers for compatibility with HPUX's mknod program.
1994-11-04Include <limits.h> before system.h because limits.h onJim Meyering
some systems undefines PATH_MAX, whereas system.h includes pathmax.h which sets PATH_MAX. From Kaveh Ghazi.
1994-11-04(make_path_private): Rename function from make_path to avoid confusion.Jim Meyering
(do_copy): Update caller.
1994-11-04Update calls to make_path.Jim Meyering
1994-11-03merge with 1.9.1j2Jim Meyering
1994-11-03merge with 1.10x1Jim Meyering
1994-11-02.Jim Meyering
1994-11-02(cat): Conditionalize test for errno == ENOSYS. It's notJim Meyering
defined on some Next and Alliant systems. From Kaveh Ghazi.
1994-11-02(cut_bytes): Print at least a newline for every line of input.Jim Meyering
(cut_fields): Print a newline even for lines whose only selected field is empty. But print nothing when using -s without -f1. And print nothing for empty input. Reported by Richard_Sharman@software.mitel.com.
1994-11-01(XWRITE): Guard against calling xwrite with n_bytes == 0.Jim Meyering
1994-11-01(XWRITE): Allow n_bytes to be zero in assertion. Otherwise `tail /dev/null'Jim Meyering
gets failed assertion.