Jim Meyering
1f4c0ed890
cpp-indent #error line
1999-01-18 00:44:57 +00:00
Jim Meyering
9a6aae1ed7
.
1999-01-18 00:44:18 +00:00
Jim Meyering
ea020acdd2
(same_name): Use SAME_INODE rather than open coding it.
1999-01-17 18:12:19 +00:00
Jim Meyering
d34ec08816
compress copyright
1999-01-17 04:15:12 +00:00
Jim Meyering
cf00554f8f
Don't declare base_name.
1999-01-16 16:22:00 +00:00
Jim Meyering
1b9f58551d
Don't declare base_name.
...
Use function-style XARGMATCH once again.
1999-01-16 16:21:46 +00:00
Jim Meyering
4e83f9789c
(usage): Remove `static'.
...
Use function-style XARGMATCH.
1999-01-16 16:20:02 +00:00
Jim Meyering
29064b5f4f
Remove declarations of base_name and get_version.
...
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it.
Use xget_version and function-style XARGMATCH.
1999-01-16 16:18:26 +00:00
Jim Meyering
fadedac410
Remove declarations of base_name and get_version.
...
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it.
Use xget_version and function-style XARGMATCH.
1999-01-16 16:14:56 +00:00
Jim Meyering
06f14ae760
Remove declarations of base_name and get_version.
...
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it.
Use xget_version and function-style XARGMATCH.
1999-01-16 16:14:31 +00:00
Jim Meyering
1592f752f6
Don't declare base_name.
...
(usage): Don't make it static so that it can be
called from libfu.a by xargmatch.
1999-01-16 16:13:31 +00:00
Jim Meyering
84b4618b26
Remove declarations of base_name and get_version.
...
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it.
Use xget_version and function-style XARGMATCH.
1999-01-16 16:12:05 +00:00
Jim Meyering
ff5b4df30b
Add prototype for base_name.
1999-01-16 15:37:25 +00:00
Jim Meyering
20bc02752b
(usage): Don't make it static so that it can be called from libfu.a by xargmatch.
1999-01-16 15:34:59 +00:00
Jim Meyering
410a3c94e8
(usage): Don't make it static so that it can be called from libfu.a by xargmatch.
1999-01-16 15:33:16 +00:00
Jim Meyering
9fec9172be
Don't prototype usage as static.
1999-01-14 18:25:16 +00:00
Jim Meyering
da25811932
Include closeout.h. (main): Use close_stdout.
1999-01-14 15:37:04 +00:00
Jim Meyering
dc4fd4c43b
Include closeout.h. (main): Use close_stdout_status.
1999-01-14 15:36:50 +00:00
Jim Meyering
b0c149e78f
new version from automake
1999-01-13 05:40:42 +00:00
Jim Meyering
c970990a0a
All of the following new code is protected by `#if DONT_UNLINK_WHILE_OPEN'
...
(file_to_remove): New global.
(fp_to_close): New global.
(unlink_tempfile): New function.
(record_tempfile): New function.
(save_stdin): Call record_tempfile.
Use SET_BINARY.
(main): Use SET_BINARY and SET_BINARY2.
From Eli Zaretskii.
1999-01-11 04:52:44 +00:00
Jim Meyering
0e777744cb
(copy_internal): Handle two more values of errno from
...
failed rename of a directory into a subdirectory of itself.
1999-01-11 03:22:50 +00:00
Jim Meyering
75e5479220
(decode_switches): Now that escape_quoting_style no longer
...
escapes the SPACE character, arrange for SPACEs to be quoted here.
1999-01-11 03:10:59 +00:00
Jim Meyering
fd008ba80b
declare `match'
1999-01-09 16:21:40 +00:00
Jim Meyering
1eb017af63
New option: --all-repeated (-D).
...
(output_all_repeated) [output_mode]: New enum value.
(usage): Describe it.
(writeline): Test for new mode.
(check_file): Likewise.
Based on patches from Jochen Hein and Florin Iucha.
(main): Diagnose `too many arguments'.
1999-01-09 16:16:18 +00:00
Jim Meyering
df9cb5d5c0
s/max_n_consecutive_size_changes/max_n_consecutive_size_changes_between_opens/
1999-01-09 14:21:32 +00:00
Jim Meyering
375b687738
(parse_obsolescent_option): Interpret `number' as decimal.
...
(parse_options): Likewise.
Reported by Kamal Paul Nigam.
New option: --max-unchanged-stats=N.
New option: --max-n-consecutive-size-changes=N.
1999-01-09 14:19:40 +00:00
Jim Meyering
5118d57563
(main): remove unused `i'
1999-01-04 20:16:31 +00:00
Jim Meyering
944dc00d0c
(usage): Remove third program_name argument -- there
...
were only two `%s' in the format string.
1999-01-03 15:47:38 +00:00
Jim Meyering
731688ecd5
(tsort): Use a single call to error instead of two to fprintf.
...
(main): Remove `%s: ' prefix on format string.
1999-01-02 19:37:56 +00:00
Jim Meyering
7004c53ab4
(parse_options): Use XARGMATCH in place of argmatch.
1999-01-02 19:35:46 +00:00
Jim Meyering
501ee2ebd6
(format_vals): New array.
...
(main): Use XARGMATCH in place of argmatch.
1999-01-02 19:35:18 +00:00
Jim Meyering
1e25b6e3d3
Adapt to use new interface to XARGMATCH.
1999-01-02 19:29:47 +00:00
Jim Meyering
041b69340d
use XARGMATCH, not XARGCASEMATCH
1999-01-02 16:35:55 +00:00
Jim Meyering
2bb9d3c528
Move inclusion of assert.h to follow that of stdio.h.
...
Some losing systems require this.
Use STREQ macro instead of strcmp in a few places.
1999-01-02 05:54:07 +00:00
Jim Meyering
977e79ed76
Include readtokens.h.
...
(zeros): Rename global from `rr'.
(getstr): Remove function.
(tsort) Use readtoken instead of getstr.
1999-01-02 02:34:11 +00:00
Jim Meyering
2da1b2088f
fix typo in comment
1999-01-01 22:55:53 +00:00
Jim Meyering
b99ab6e97d
(PATH_MAX_IN_DIR) [HAVE_UNISTD_H]: New macro, for max
...
file name characters in a given directory.
(tempname): Make sure the temp file name is unique even if long
file names aren't supported.
1999-01-01 22:51:58 +00:00
Jim Meyering
13e5d17494
(cwrite) [O_BINARY]: Write output in binary mode.
...
(main) [O_BINARY]: Read input in binary mode.
1999-01-01 22:49:44 +00:00
Jim Meyering
f92719d4dc
(bsd_sum_file, sysv_sum_file) [O_BINARY]: Read input in binary mode.
1999-01-01 22:48:51 +00:00
Jim Meyering
e60b747ade
(tail_lines, tail_bytes) [O_BINARY]: Use binary I/O when appropriate.
1999-01-01 22:48:03 +00:00
Jim Meyering
f3ade72018
(wc): Use binary mode for input.
1999-01-01 22:42:36 +00:00
Jim Meyering
59998135d0
(unexpand): Use binary I/O where appropriate.
1999-01-01 22:41:58 +00:00
Jim Meyering
87f9e231c3
(main) [O_BINARY]: Use binary I/O when appropriate.
1999-01-01 22:40:48 +00:00
Jim Meyering
8e7da4a47c
(skip, read_char, read_block) [O_BINARY]: Switch input
...
stream to binary mode.
1999-01-01 22:33:15 +00:00
Jim Meyering
f54c8f6d80
(OPENOPTS) [O_BINARY]: Use binary I/O when non-zero argument.
...
(md5_file) [O_BINARY]: Switch redirected stdin to binary mode.
(main) [O_BINARY]: Use binary reads by default on those systems
which care about the difference.
1999-01-01 22:29:32 +00:00
Jim Meyering
9eedfd2482
(head_bytes, head_lines) [O_BINARY]: Use binary I/O.
1999-01-01 22:28:40 +00:00
Jim Meyering
a498f54f37
(expand): Use binary I/O where appropriate.
1999-01-01 22:27:36 +00:00
Jim Meyering
4394c38352
(cksum) [O_BINARY]: Read redirected stdin in binary mode.
1999-01-01 22:22:02 +00:00
Jim Meyering
7914fb4069
(usage) [O_BINARY]: Describe -B,--binary option.
...
(main) [O_BINARY]: binary_files, binary_output, file_open_mode:
new variables. Add --binary to long_options[]. Switch stdin and
stdout to binary mode unless file contents are not important
anyway. Open files in binary mode when required.
1999-01-01 22:20:23 +00:00
Jim Meyering
3972420f3b
(parse_options): Use XARGCASEMATCH in place of argmatch.
1999-01-01 21:47:08 +00:00