Jim Meyering
f03f8dcc44
(mergefps) [lint]: Initialize SAVEALLOC to avoid spurious
...
compiler warning. From Ulrich Drepper.
1995-08-08 04:58:46 +00:00
Jim Meyering
a5656326f0
(read_line) [lint]: Initialize CHARS to avoid spurious
...
compiler warning. From Ulrich Drepper.
1995-08-08 04:58:23 +00:00
Jim Meyering
f0556f3517
Annotate localizable strings with _(...). From Franc,ois.
1995-08-08 04:37:34 +00:00
Jim Meyering
6b853ebe01
.
1995-08-08 04:31:02 +00:00
Jim Meyering
d0e2b9c466
Declare xmalloc, xrealloc rather than including xalloc.h.
SH-UTILS-1_12a
1995-08-07 22:21:03 +00:00
Jim Meyering
a94a8dd402
.
1995-08-07 16:09:10 +00:00
Jim Meyering
7c342fe2a1
Add FIXME comments.
1995-08-07 16:07:28 +00:00
Jim Meyering
9c3f1711e2
(is_number): Rename from isnumber.
1995-08-07 16:06:43 +00:00
Jim Meyering
0347634ad3
.
1995-08-07 14:57:56 +00:00
Jim Meyering
92c50e7f52
Annotate localizable strings with _(...). From Franc,ois.
1995-08-07 14:57:29 +00:00
Jim Meyering
22ebf9c6ac
Sort examples.
textutils-1_12_1
1995-08-06 20:02:27 +00:00
Jim Meyering
5fa76547cf
.
1995-08-06 04:54:08 +00:00
Jim Meyering
e29f6ae24d
.
1995-08-06 04:52:09 +00:00
Jim Meyering
00dadad79c
(validate): Remove const attribute from formal #1 .
...
It may be modified.
1995-08-05 05:09:21 +00:00
Jim Meyering
767768457c
(__P): No longer define this. It's not used.
1995-08-05 04:58:31 +00:00
Jim Meyering
a468aa55b6
.
1995-08-05 04:22:16 +00:00
Jim Meyering
cbc82e5cc3
Protoize.
1995-08-05 03:36:29 +00:00
Jim Meyering
b0aa8e6985
Protoize.
1995-08-05 03:19:56 +00:00
Jim Meyering
c3f2e69471
(isnumber): Rename to is_number.
...
(parse_user_spec): Rename uses, too.
1995-08-05 03:13:16 +00:00
Jim Meyering
86c9719f0a
.
1995-08-05 03:11:30 +00:00
Jim Meyering
be22aff966
(save_cwd, restore_cwd, free_cwd): Remove functions.
...
New versions have been broken out into save-cwd.c.
(du_files): Adapt to handle status code returned by new versions
of save_cwd and restore_cwd.
(count_entry): Likewise.
1995-08-05 03:10:27 +00:00
Jim Meyering
0159470d3d
(decode_switches): Set SORT_TYPE. Before, ls -c was sorting
...
by name, rather than change time. Reported by Ken Estes
(m-ke0082@sparky.cs.nyu.edu ).
1995-08-05 03:09:41 +00:00
Jim Meyering
2adeb32b35
(SOURCES, OBJECTS, DISTFILES): Update for new files, save-cwd.[ch].
1995-08-05 03:08:09 +00:00
Jim Meyering
351cf87351
(isnumber): Rename to is_number to avoid conflict with
...
FreeBSD 2.0.5 macro definition. Reported by David O'Brien
(obrien@sea.legent.com ).
1995-08-05 03:06:41 +00:00
Jim Meyering
3139de9726
.
1995-08-04 15:23:25 +00:00
Jim Meyering
b4a47508d4
(SOURCES, OBJECTS, DISTFILES): Update for new files.
1995-08-04 15:15:24 +00:00
Jim Meyering
f7860d6172
.
1995-08-04 15:09:12 +00:00
Jim Meyering
f6b3413fcc
(_getopt_internal) [lint]: Initialize INDFOUND to
...
avoid warning from gcc.
1995-08-04 14:30:19 +00:00
Jim Meyering
e799d19df8
.
1995-08-03 16:44:17 +00:00
Jim Meyering
b1ab76f3e4
.
1995-08-02 04:26:31 +00:00
Jim Meyering
ccb00b7ef9
.
1995-07-30 23:58:28 +00:00
Jim Meyering
ac37278a41
.
1995-07-30 23:58:06 +00:00
Jim Meyering
fc88df7458
(md5_check): Use getline instead of fgets.
1995-07-30 23:57:03 +00:00
Jim Meyering
11ec25d3ce
New version -- now derived from the line in libc.
1995-07-30 18:42:09 +00:00
Jim Meyering
4aa1e2f2e8
Get new copy from FSF.
1995-07-30 05:30:04 +00:00
Jim Meyering
ea4cda6907
[memcpy]: Define to bcopy if needed.
...
(md5_buffer): Explicitely cast SWAP expressions to unsigned
to avoid warning.
1995-07-30 05:12:30 +00:00
Jim Meyering
ba477b681a
Add parens to clarify ?: expression.
1995-07-30 05:03:26 +00:00
Jim Meyering
f2fc6e4cad
(check): Print `disorder on...' message on standard error, not stdout.
...
This is a minor concession to POSIX which says `no output shall be produced'.
(main): Fix -k so it works. -k 2,3 was being treated like -k 2.
Reported by Marcus Daniels <marcus@sysc.pdx.edu >.
1995-07-30 05:02:37 +00:00
Jim Meyering
6473e3638f
.
1995-07-27 20:22:29 +00:00
Jim Meyering
7e93c0f64b
Initial revision
1995-07-27 14:43:01 +00:00
Jim Meyering
1126d3b93e
remove trailing blanks
1995-07-27 14:15:09 +00:00
Jim Meyering
c02e97e2c5
.
1995-07-27 04:04:18 +00:00
Jim Meyering
f7ccdd300d
.
1995-07-27 03:57:20 +00:00
Jim Meyering
8904d4a45c
Remove spurious space.
1995-07-27 03:57:10 +00:00
Jim Meyering
8c17f50aea
(tail_bytes) [from_start]: For regular files, seek
...
relative to the initial input file pointer position, not
necessarily from the beginning of the file.
[!from_start]: Don't back up past the initial position of the
input file pointer.
(tail_lines): Call file_lines only if FD refers to a regular file
with its file pointer positioned at beginning of file. Otherwise,
call pipe_lines. This is a kludge. Once there's a decent test
suite, fix this properly.
Before, (echo 1; echo 2) > k; sh -c 'read x; tail' < k
would output both lines of the input file even though the first had
already been read. Reported by John Roll (john@panic.harvard.edu ).
1995-07-27 03:56:35 +00:00
Jim Meyering
28e28e6d74
(have_read_stdin): New global variable.
...
(md5_file, md5_check): Set it.
(main): Use it.
[OPENOPTS]: Depend explicitly on BINARY.
(md5_file): Take a new parameter, MD5_RESULT, and no longer
generate output.
(md5_check): Invoke md5_file instead of calling fopen directly.
When giving a diagnostic for a line with invalid format, also report
the line number.
(main): Generate output after a successful md5_file call.
[in many places]: Upon detection of an error, rather than exiting
immediately, issue a diagnostic, note that an error occurred and
exit later.
1995-07-27 03:45:11 +00:00
Jim Meyering
7732d5d7cf
(main): When too few arguments are given, don't just
...
issue the usage message; also report why.
1995-07-25 04:50:04 +00:00
Jim Meyering
5f33b78417
[_LIBC || STDC_HEADERS] (TOLOWER): Define to tolower.
1995-07-25 02:48:00 +00:00
Jim Meyering
6abd6fdd72
(md5_check): New function -- extracted from main.
1995-07-22 05:16:40 +00:00
Jim Meyering
0e7bce124f
reformat comment
1995-07-21 06:27:39 +00:00