Jim Meyering
9b652d0790
Handle argc < optind.
2003-05-10 14:59:04 +00:00
Jim Meyering
8a7f744635
Handle argc < optind.
2003-05-10 14:58:15 +00:00
Jim Meyering
ddc5610b88
(main): Set program_name before first use.
...
Remove that (redundant) first use.
Don't exit successfully just because --verbose was specified.
Pass 0, not EXIT_SUCCESS, as first argument to error; when that
parameter is 0, error does not exit.
2003-05-10 14:54:23 +00:00
Jim Meyering
ea67851e7e
*** empty log message ***
2003-05-10 14:53:51 +00:00
Jim Meyering
cc43b4e784
(syntax-check): Check for `error (EXIT_SUCCESS,'.
2003-05-10 14:53:47 +00:00
Jim Meyering
f6d13ddf6d
(main): Handle argc < optind.
2003-05-10 14:39:16 +00:00
Jim Meyering
b037820eb4
(main): Handle argc < optind.
2003-05-10 14:37:12 +00:00
Jim Meyering
7afaa765d3
*** empty log message ***
2003-05-10 14:34:24 +00:00
Jim Meyering
8eb2464d3e
(main): Handle argc < optind.
2003-05-10 14:33:24 +00:00
Jim Meyering
007103be2e
add semicolon
2003-05-10 14:19:44 +00:00
Jim Meyering
dfd12de6b9
(main): When failing due to too few arguments, also say
...
that rather than just "Try `uname --help' for more information.".
2003-05-10 14:17:46 +00:00
Jim Meyering
13f9aa90fa
*** empty log message ***
2003-05-10 14:14:51 +00:00
Jim Meyering
49f700b61c
(main): When failing due to unaccepted arguments,
...
also say `too many arguments' rather than just `Try `uname --help'
for more information.'.
2003-05-10 13:47:38 +00:00
Jim Meyering
f4c0d12cb0
(main): Handle argc < optind.
2003-05-10 13:42:48 +00:00
Jim Meyering
6c1a29f06f
(main): Don't segfault when argc < optind.
2003-05-10 13:39:05 +00:00
Jim Meyering
2de1d40446
(main): Use error, rather than fprintf, for the sake of consistency.
2003-05-10 13:36:50 +00:00
Jim Meyering
0919600481
(main): Test for the case of no arguments before computing n_files.
2003-05-10 13:30:26 +00:00
Jim Meyering
3de521ebf9
(main): Test for `missing argument' before computing n_files.
2003-05-10 13:25:41 +00:00
Jim Meyering
9f763671c0
Include error.h.
2003-05-10 10:41:14 +00:00
Jim Meyering
06dacc0d6d
(More details about version sort): Note that strverscmp, and hence
...
`ls -v', does not use LC_COLLATE.
2003-05-10 09:42:14 +00:00
Jim Meyering
a228d68c33
*** empty log message ***
2003-05-10 09:41:50 +00:00
Jim Meyering
b99914ff5b
*** empty log message ***
2003-05-10 06:27:08 +00:00
Jim Meyering
4a389e1d0b
(Exit status): Remove `uniq' from the list. It uses standard exit codes.
2003-05-10 06:27:04 +00:00
Jim Meyering
0b65f598c8
(main): Don't overrun array bound if argc is 0.
2003-05-09 22:25:12 +00:00
Jim Meyering
12844e5674
fix off-by-one error in last change
2003-05-09 22:16:22 +00:00
Jim Meyering
0dedf7cad1
*** empty log message ***
2003-05-09 08:50:44 +00:00
Jim Meyering
6476197bcb
(main): Don't overrun array bound if argc is 0.
...
That would happen when invoked via: execl ("/usr/bin/sort", NULL);
2003-05-09 08:50:37 +00:00
Jim Meyering
883159c855
*** empty log message ***
2003-05-09 08:49:46 +00:00
Jim Meyering
8a3a1ce11f
*** empty log message ***
2003-05-08 09:26:42 +00:00
Jim Meyering
de261015e8
(timespec_subtract): Don't modify the 2nd arg.
...
Work even if X-Y overflows when subtracting. Make explicit the
assumption that tv_nsec must be in range.
(clock_get_realtime): Remove. All callers changed to invoke gettime,
for simplicity.
(xnanosleep): Check for gettime failure every time.
2003-05-08 09:26:34 +00:00
Jim Meyering
f197628cb2
(clock_get_realtime): Use gettime.c's gettime function,
...
rather than an inferior, open-coded version that would fail on
AIX systems due to clock_gettime failing with errno == ENOSYS.
2003-05-08 06:26:00 +00:00
Jim Meyering
96242be0c1
*** empty log message ***
2003-05-07 16:21:56 +00:00
Jim Meyering
61ba51a61e
Implement support so that `head --lines=-N' works on seekable files.
...
(enum Copy_fd_status): Define.
(COPY_FD_DIAGNOSE): New macro.
(elide_tail_lines_seekable): New funtion.
(elide_tail_lines_file): Call it here.
2003-05-07 16:21:52 +00:00
Jim Meyering
f8fdfad624
*** empty log message ***
2003-05-07 07:25:08 +00:00
Jim Meyering
b8dcf7b6e4
*** empty log message ***
2003-05-06 22:22:06 +00:00
Jim Meyering
d16d49b67a
*** empty log message ***
2003-05-06 13:33:26 +00:00
Jim Meyering
ad06bb9c5a
(CHAR_BIT): Remove duplicate definition.
2003-05-06 13:33:12 +00:00
Jim Meyering
ef4ee07f31
*** empty log message ***
2003-05-06 08:51:30 +00:00
Jim Meyering
00d70feed3
(GL_FUNC_GETCWD_PATH_MAX): Check for the
...
declaration of getcwd *before* checking for the getcwd kernel bug.
Otherwise, configure-time `checking ...' messages would be intermixed.
2003-05-06 08:51:26 +00:00
Jim Meyering
78986d419d
*** empty log message ***
2003-05-05 07:55:18 +00:00
Jim Meyering
a8916294ec
(struct dummy): Ensure that at least the number of
...
initializers matches the number of members in the corresponding enum.
2003-05-05 07:54:19 +00:00
Jim Meyering
95623ba86e
(enum Ftw_option): Name this previously-anonymous enum.
...
(enum Ftw_option) [FTW_N_MEMBERS]: New member.
2003-05-05 07:52:26 +00:00
Jim Meyering
75fa058191
Avoid array overrun.
...
(nftw_arr): Update to reflect complete list of members.
(ftw_arr): Likewise
2003-05-05 07:31:49 +00:00
Jim Meyering
8670b14045
*** empty log message ***
2003-05-05 07:30:45 +00:00
Jim Meyering
1048ef4240
.
2003-05-04 14:07:26 +00:00
Jim Meyering
f53eda1b81
.
2003-05-04 14:07:07 +00:00
Jim Meyering
8a79d3d630
Remove tests of --bytes=-N; using that framework
...
caused the addition of thousands of small files to the tar archive.
2003-05-04 14:06:52 +00:00
Jim Meyering
0a8019497e
*** empty log message ***
2003-05-04 14:01:02 +00:00
Jim Meyering
832fdc2a2e
*** empty log message ***
2003-05-04 13:56:47 +00:00
Jim Meyering
997f9e72d2
(TESTS): Add head-elide-tail.
2003-05-04 13:56:43 +00:00