Jim Meyering
06f4d47a29
(remove_parents): Use strr?chr instead of r?index.
1994-12-10 05:39:59 +00:00
Jim Meyering
7f58bbba88
* [!HAVE_STRING_H]: Define strchr to index and strrchr to
...
rindex instead of the other way around.
* Include <ctype.h> and define IS* macros.
1994-12-10 05:25:15 +00:00
Jim Meyering
651ccf648d
No longer include <ctype.h>.
1994-12-10 05:21:29 +00:00
Jim Meyering
12042b2fa2
Use strr?chr instead of r?index.
1994-12-04 21:15:46 +00:00
Jim Meyering
1d6dc36be9
(du_files): Handle very low-probability fchdir failure (when errno != 0
...
&& errno != EINVAL).
1994-12-03 20:38:20 +00:00
Jim Meyering
9f715b2bdb
(du_files): Variable name changes.
1994-12-03 20:29:28 +00:00
Jim Meyering
103e83b65e
(du_files): Work around SunOS restriction that fchdir doesn't work when
...
accounting is enabled -- modelled after djm's find.c mods.
1994-12-03 20:26:33 +00:00
Jim Meyering
f55a29ab93
(checkfp): Initialize keybeg and keylim fields.
...
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 16:54:56 +00:00
Jim Meyering
97f9755aeb
(xfclose): Report failed fflush. Otherwise, failed write to stdout
...
could be missed because of subsequent clearerr.
(main): Include filename in a couple error messages.
Add missing %s in an error format string.
1994-12-02 16:49:47 +00:00
Jim Meyering
f2fc6e9054
name changes: number->n_lines|n_bytes
1994-11-30 20:54:21 +00:00
Jim Meyering
04b546bdb9
Make some globals static' and/or const'.
...
(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-28 06:00:56 +00:00
Jim Meyering
f214bd45dc
indent
1994-11-28 04:38:27 +00:00
Jim Meyering
f021d0ca05
(indent): Use TABs only when doing so replaces at least two spaces.
1994-11-28 04:32:07 +00:00
Jim Meyering
c65e1fe89f
`colorize' patch from Drepper.
1994-11-28 04:25:31 +00:00
Jim Meyering
5fce52076e
(list_entries): Delete. Split in two actually...
...
(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-18 05:15:04 +00:00
Jim Meyering
fdfd720ec4
(output): Use STDOUT_FILENO instead of `1' in xwrite call.
1994-11-17 12:49:38 +00:00
Jim Meyering
53c46c67ac
(dump_remainder): Flush standard output just before
...
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-17 12:49:10 +00:00
Jim Meyering
13e79f4f72
Include <getopt.h> instead of "getopt.h".
1994-11-16 13:19:25 +00:00
Jim Meyering
67af2936fa
(tempname): Merge two very similar sprintf stmts into one.
1994-11-16 13:16:53 +00:00
Jim Meyering
5d9de33889
Use BUFSIZ instead of BUFSIZE.
1994-11-16 13:13:07 +00:00
Jim Meyering
5356de1df7
Rewriting to help it pass a reasonable suite of tests.
1994-11-16 13:10:34 +00:00
Jim Meyering
c85cac33ab
Declare DELIM to be `int' rather than unsigned char.
1994-11-16 13:09:13 +00:00
Jim Meyering
b4a1e5cb83
.
1994-11-16 13:06:45 +00:00
Jim Meyering
c35f55124b
.
1994-11-16 13:05:38 +00:00
Jim Meyering
6b558ed117
(my_strtol): New function.
...
(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-11 16:14:19 +00:00
Jim Meyering
0ccaadc62c
Include <limits.h> before system.h because limits.h on
...
some systems undefines PATH_MAX, whereas system.h includes pathmax.h
which sets PATH_MAX. From Kaveh Ghazi.
1994-11-04 06:04:02 +00:00
Jim Meyering
aebff608dc
(make_path_private): Rename function from make_path to avoid confusion.
...
(do_copy): Update caller.
1994-11-04 06:03:25 +00:00
Jim Meyering
7cced49416
Update calls to make_path.
1994-11-04 06:00:41 +00:00
Jim Meyering
1423156a9c
merge with 1.9.1j2
1994-11-03 04:33:52 +00:00
Jim Meyering
4e253268e1
merge with 1.10x1
1994-11-03 00:58:25 +00:00
Jim Meyering
995c18ba28
.
1994-11-02 05:24:13 +00:00
Jim Meyering
c6411b91f5
(cat): Conditionalize test for errno == ENOSYS. It's not
...
defined on some Next and Alliant systems. From Kaveh Ghazi.
1994-11-02 05:21:37 +00:00
Jim Meyering
346a1b2351
(cut_bytes): Print at least a newline for every line of input.
...
(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-02 05:04:17 +00:00
Jim Meyering
32340b45e7
(XWRITE): Guard against calling xwrite with n_bytes == 0.
1994-11-01 22:38:11 +00:00
Jim Meyering
7a5462a0b7
(XWRITE): Allow n_bytes to be zero in assertion. Otherwise `tail /dev/null'
...
gets failed assertion.
1994-11-01 22:21:23 +00:00
Jim Meyering
a175b4affb
.
1994-10-31 14:03:58 +00:00
Jim Meyering
159929688d
.
1994-10-31 12:55:27 +00:00
Jim Meyering
1fd77b2ddf
.
1994-10-29 04:49:55 +00:00
Jim Meyering
2ef20008e8
.
1994-10-28 18:32:31 +00:00
Jim Meyering
c0119ac534
.
1994-10-28 17:03:06 +00:00
Jim Meyering
1cd8c36e4d
merge with 3.9t
1994-10-27 23:36:15 +00:00
Jim Meyering
2e9d555f8c
.
1994-10-27 13:45:55 +00:00
Jim Meyering
2ba9e70e52
merge with 3.9q
1994-10-27 05:02:28 +00:00
Jim Meyering
4c8adc4821
.
1994-10-27 04:18:00 +00:00
Jim Meyering
b902a4439e
merge with 1.10t
1994-10-21 05:25:03 +00:00
Jim Meyering
154bd660bb
merge with 3.9p
1994-10-20 16:16:39 +00:00
Jim Meyering
5868a8d57c
.
1994-10-20 14:57:33 +00:00
Jim Meyering
550968ec92
.
1994-10-20 14:48:51 +00:00
Jim Meyering
9f167c85b0
.
1994-10-20 04:42:43 +00:00
Jim Meyering
544baf5482
merge with 1.9.1h
1994-10-19 03:39:33 +00:00