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
Jim Meyering
b5c28b7097
Rename globals N and R so they don't shadow locals.
...
(tsort): Rename from `sort'.
1999-01-01 19:29:31 +00:00
Jim Meyering
06adce5358
remove trailing blanks
1999-01-01 19:05:47 +00:00
Jim Meyering
d9ce52992c
from Mark Kettenis
1999-01-01 19:05:05 +00:00
Jim Meyering
91dc8874b0
(main): Use XARGCASEMATCH in place of argmatch & co.
1998-12-31 21:59:42 +00:00
Jim Meyering
58d6acdfd3
(indicator_style_types): New variable.
...
(format_types): Rename from `formats'.
(color_args): Remove unnecessary `no' string.
(color_types): Remove corresponding `color_never' entry.
(main): Use ARGMATCH_TO_ARGUMENT.
(decode_switches): Use ARGCASEMATCH instead of argmatch code
in each of several cases.
From Akim Demaille.
1998-12-31 21:49:36 +00:00
Jim Meyering
431652a886
(main): Use XARGCASEMATCH in place of argmatch & co.
1998-12-31 21:41:04 +00:00
Jim Meyering
e68c81a48f
(copy_internal): Remove errnoeous `%s: ' prefix
...
from format string. From Michiel Bacchiani.
1998-12-18 14:22:50 +00:00
Jim Meyering
a3e473c522
(UID_T_MAX, GID_T_MAX): Define them here instead.
1998-12-18 14:09:29 +00:00
Jim Meyering
6408b52640
(UID_T_MAX, GID_T_MAX): Remove definitions.
1998-12-18 14:09:19 +00:00
Jim Meyering
e28821d5f8
(MAXGID): Define.
...
Use gid_t (not int) as the type for `group' variables.
(parse_group): Use MAXGID, not INT_MAX.
1998-12-18 14:07:58 +00:00
Jim Meyering
621691b296
New options for tail: --follow=name, --follow=descriptor, --allow-missing
...
(Follow_mode): New enum.
(n_live_files): New function.
(tail_forever): Avoid starvation with --follow=name and a
continually-growing unlinked or renamed file.
1998-12-17 13:56:25 +00:00
Jim Meyering
7dfd5ca1cd
add comment about opening exclusively
1998-12-13 19:26:35 +00:00
Jim Meyering
9507d3559a
In order to distinguish col(umn|or):
...
(init_column_info): Renamed from init_col_info.
(struct column_info): Renamed from struct col_info.
(struct color_ext_type): Renamed from struct col_ext_type.
From Akim Demaille.
1998-12-12 06:20:42 +00:00
Jim Meyering
876d24a3ed
* src/ls.c: Group DIRED's code together.
...
(full_time, inhibit_group, col_ext_type): Declare static.
(dired_dump_obstack): Apply sizeof to variable, instead of its type.
(parse_ls_color): Rename ext2 as e2. Move into the block where it is used.
From Akim Demaille.
1998-12-12 06:11:24 +00:00
Jim Meyering
a17cdb1173
(main): Arrange to exit unsuccessfully when stime fails.
...
From Andreas Schwab.
1998-12-11 13:37:52 +00:00
Jim Meyering
52dedbfebb
Use dir_name, not dirname. Include dirname.h.
1998-12-07 06:20:50 +00:00
Jim Meyering
7273e22923
declare base_name
1998-12-07 04:35:20 +00:00
Jim Meyering
6207f6f804
Fix `ls -R .' formatting bug that broke mktexlsr.
...
Include path-concat.h.
(basename_is_dot_or_dotdot): New function, derived from
is_not_dot_or_dotdot.
(is_not_dot_or_dotdot): Remove function.
(extract_dirs_from_files): Use `!basename_is_dot_or_dotdot'
instead of is_not_dot_or_dotdot and use path_concat instead of attach.
1998-12-06 23:08:55 +00:00
Jim Meyering
1e422ea7ec
(DOT_OR_DOTDOT): New definition (moved here from remove.c.).
1998-11-30 03:01:24 +00:00
Jim Meyering
9d7c18290e
(DOT_OR_DOTDOT): Move definition from this file...
1998-11-30 03:00:51 +00:00
Jim Meyering
90dbea92c4
(dd_copy): Rename function from `copy'.
1998-11-30 02:58:21 +00:00
Jim Meyering
d9878753d1
(do_copy): Rename local: s/unused/copy_into_self/
1998-11-30 02:57:43 +00:00
Jim Meyering
4dbf57ed78
(do_move): Don't arrange to remove DEST in the copied-into-self case.
1998-11-30 02:56:05 +00:00
Jim Meyering
32df3704e4
(copy_internal): Remove earlier (but less effective)
...
test for move/copy-into-self.
Instead, deduce the move-into-self condition from errno==EINVAL
after a failed rename.
1998-11-30 02:10:13 +00:00
Jim Meyering
75d5ed8b58
(movefile): Don't free new_dest.
...
Bob McCracken reported that mv couldn't handle certain combinations
of hard linked source files.
1998-11-30 02:01:18 +00:00
Jim Meyering
920680fe4f
[HAVE_LSTAT_EMPTY_STRING_BUG]: Define lstat to rpl_lstat and declare the latter.
1998-11-08 03:38:06 +00:00