platform/upstream/coreutils.git
21 years ago(struct Src_to_dest) [name]: Remove const attribute.
Jim Meyering [Tue, 13 May 2003 14:40:50 +0000 (14:40 +0000)]
(struct Src_to_dest) [name]: Remove const attribute.
(src_to_dest_free): Don't apply cast to argument of free.

21 years ago(OLD): Don't apply cast to argument of free.
Jim Meyering [Tue, 13 May 2003 14:38:40 +0000 (14:38 +0000)]
(OLD): Don't apply cast to argument of free.

21 years ago(delseq, freeline): Don't apply cast to argument of free.
Jim Meyering [Tue, 13 May 2003 14:38:18 +0000 (14:38 +0000)]
(delseq, freeline): Don't apply cast to argument of free.

21 years agoshorten long line
Jim Meyering [Tue, 13 May 2003 14:37:45 +0000 (14:37 +0000)]
shorten long line

21 years ago(init_fps, init_store_cols): Don't apply cast to argument of free.
Jim Meyering [Tue, 13 May 2003 14:37:33 +0000 (14:37 +0000)]
(init_fps, init_store_cols): Don't apply cast to argument of free.

21 years ago(zaptemp): Don't apply cast to argument of free.
Jim Meyering [Tue, 13 May 2003 14:36:29 +0000 (14:36 +0000)]
(zaptemp): Don't apply cast to argument of free.

21 years agoRemove unnecessary cast of argument to free. twice more
Jim Meyering [Tue, 13 May 2003 14:32:10 +0000 (14:32 +0000)]
Remove unnecessary cast of argument to free.  twice more

21 years agoRemove unnecessary cast of argument to free.
Jim Meyering [Tue, 13 May 2003 14:31:39 +0000 (14:31 +0000)]
Remove unnecessary cast of argument to free.

21 years agoInclude "quote.h".
Jim Meyering [Tue, 13 May 2003 13:25:10 +0000 (13:25 +0000)]
Include "quote.h".
Use quote in diagnostics.  Change many error format strings
from just `%s' to e.g., `error reading %s'.
(pipe_lines): Change type of parameter, n_lines, to uintmax_t.
Rewrite newline-counting loop to use memchr.

21 years ago*** empty log message ***
Jim Meyering [Tue, 13 May 2003 12:42:16 +0000 (12:42 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 13 May 2003 12:42:13 +0000 (12:42 +0000)]
*** empty log message ***

21 years ago(true invocation): Mention that it is possible to
Jim Meyering [Tue, 13 May 2003 12:42:02 +0000 (12:42 +0000)]
(true invocation): Mention that it is possible to
make true --help or true --version (in non-POSIX mode) exit nonzero.

21 years ago*** empty log message ***
Jim Meyering [Tue, 13 May 2003 10:21:31 +0000 (10:21 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 13 May 2003 10:21:22 +0000 (10:21 +0000)]
*** empty log message ***

21 years ago(elide_tail_lines_pipe): Use `if', not an assert.
Jim Meyering [Tue, 13 May 2003 10:21:13 +0000 (10:21 +0000)]
(elide_tail_lines_pipe): Use `if', not an assert.
Now that assert is no longer used, don't include <assert.h>.

21 years ago*** empty log message ***
Jim Meyering [Mon, 12 May 2003 15:12:11 +0000 (15:12 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Mon, 12 May 2003 15:07:09 +0000 (15:07 +0000)]
*** empty log message ***

21 years ago(ftw_startup): Always call free_cwd after restore_cwd.
Jim Meyering [Mon, 12 May 2003 14:51:02 +0000 (14:51 +0000)]
(ftw_startup): Always call free_cwd after restore_cwd.

21 years ago*** empty log message ***
Jim Meyering [Mon, 12 May 2003 09:36:38 +0000 (09:36 +0000)]
*** empty log message ***

21 years agoInclude <assert.h>.
Jim Meyering [Mon, 12 May 2003 09:36:26 +0000 (09:36 +0000)]
Include <assert.h>.
(AUTHORS): Add my name.
(elide_tail_lines_pipe): New function.

21 years ago*** empty log message ***
Jim Meyering [Mon, 12 May 2003 08:23:00 +0000 (08:23 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Mon, 12 May 2003 08:19:14 +0000 (08:19 +0000)]
*** empty log message ***

21 years ago(my_strftime): Let the `-' (no-pad) flag affect
Jim Meyering [Mon, 12 May 2003 08:19:05 +0000 (08:19 +0000)]
(my_strftime): Let the `-' (no-pad) flag affect
the space-padded-by-default conversion specifiers, %e, %k, %l.

21 years ago.
Jim Meyering [Sun, 11 May 2003 13:20:15 +0000 (13:20 +0000)]
.

21 years ago.
Jim Meyering [Sun, 11 May 2003 09:18:44 +0000 (09:18 +0000)]
.

21 years ago.
Jim Meyering [Sun, 11 May 2003 06:35:10 +0000 (06:35 +0000)]
.

21 years ago(main): Handle argc < optind.
Jim Meyering [Sun, 11 May 2003 06:32:47 +0000 (06:32 +0000)]
(main): Handle argc < optind.

21 years ago(main): Handle argc < optind.
Jim Meyering [Sat, 10 May 2003 20:27:56 +0000 (20:27 +0000)]
(main): Handle argc < optind.

21 years ago(main): Handle argc == 0.
Jim Meyering [Sat, 10 May 2003 20:27:16 +0000 (20:27 +0000)]
(main): Handle argc == 0.

21 years ago(main): Handle argc < optind.
Jim Meyering [Sat, 10 May 2003 20:01:32 +0000 (20:01 +0000)]
(main): Handle argc < optind.

21 years ago*** empty log message ***
Jim Meyering [Sat, 10 May 2003 20:00:59 +0000 (20:00 +0000)]
*** empty log message ***

21 years ago(main): Handle argc == 0.
Jim Meyering [Sat, 10 May 2003 20:00:54 +0000 (20:00 +0000)]
(main): Handle argc == 0.

21 years agoHandle argc < optind.
Jim Meyering [Sat, 10 May 2003 19:58:04 +0000 (19:58 +0000)]
Handle argc < optind.

21 years ago(main): Handle argc == 0.
Jim Meyering [Sat, 10 May 2003 19:56:49 +0000 (19:56 +0000)]
(main): Handle argc == 0.

21 years agoHandle argc < optind.
Jim Meyering [Sat, 10 May 2003 19:56:10 +0000 (19:56 +0000)]
Handle argc < optind.

21 years ago(send_signals): Don't check command line arguments here.
Jim Meyering [Sat, 10 May 2003 15:45:00 +0000 (15:45 +0000)]
(send_signals): Don't check command line arguments here.
(main): Check them here instead.  Handle argc < optind.

21 years agoHandle argc < optind.
Jim Meyering [Sat, 10 May 2003 15:39:39 +0000 (15:39 +0000)]
Handle argc < optind.

21 years agoHandle argc < optind.
Jim Meyering [Sat, 10 May 2003 15:00:00 +0000 (15:00 +0000)]
Handle argc < optind.

21 years agoHandle argc < optind.
Jim Meyering [Sat, 10 May 2003 14:59:04 +0000 (14:59 +0000)]
Handle argc < optind.

21 years agoHandle argc < optind.
Jim Meyering [Sat, 10 May 2003 14:58:15 +0000 (14:58 +0000)]
Handle argc < optind.

21 years ago(main): Set program_name before first use.
Jim Meyering [Sat, 10 May 2003 14:54:23 +0000 (14:54 +0000)]
(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.

21 years ago*** empty log message ***
Jim Meyering [Sat, 10 May 2003 14:53:51 +0000 (14:53 +0000)]
*** empty log message ***

21 years ago(syntax-check): Check for `error (EXIT_SUCCESS,'.
Jim Meyering [Sat, 10 May 2003 14:53:47 +0000 (14:53 +0000)]
(syntax-check): Check for `error (EXIT_SUCCESS,'.

21 years ago(main): Handle argc < optind.
Jim Meyering [Sat, 10 May 2003 14:39:16 +0000 (14:39 +0000)]
(main): Handle argc < optind.

21 years ago(main): Handle argc < optind.
Jim Meyering [Sat, 10 May 2003 14:37:12 +0000 (14:37 +0000)]
(main): Handle argc < optind.

21 years ago*** empty log message ***
Jim Meyering [Sat, 10 May 2003 14:34:24 +0000 (14:34 +0000)]
*** empty log message ***

21 years ago(main): Handle argc < optind.
Jim Meyering [Sat, 10 May 2003 14:33:24 +0000 (14:33 +0000)]
(main): Handle argc < optind.

21 years agoadd semicolon
Jim Meyering [Sat, 10 May 2003 14:19:44 +0000 (14:19 +0000)]
add semicolon

21 years ago(main): When failing due to too few arguments, also say
Jim Meyering [Sat, 10 May 2003 14:17:46 +0000 (14:17 +0000)]
(main): When failing due to too few arguments, also say
that rather than just "Try `uname --help' for more information.".

21 years ago*** empty log message ***
Jim Meyering [Sat, 10 May 2003 14:14:51 +0000 (14:14 +0000)]
*** empty log message ***

21 years ago(main): When failing due to unaccepted arguments,
Jim Meyering [Sat, 10 May 2003 13:47:38 +0000 (13:47 +0000)]
(main): When failing due to unaccepted arguments,
also say `too many arguments' rather than just `Try `uname --help'
for more information.'.

21 years ago(main): Handle argc < optind.
Jim Meyering [Sat, 10 May 2003 13:42:48 +0000 (13:42 +0000)]
(main): Handle argc < optind.

21 years ago(main): Don't segfault when argc < optind.
Jim Meyering [Sat, 10 May 2003 13:39:05 +0000 (13:39 +0000)]
(main): Don't segfault when argc < optind.

21 years ago(main): Use error, rather than fprintf, for the sake of consistency.
Jim Meyering [Sat, 10 May 2003 13:36:50 +0000 (13:36 +0000)]
(main): Use error, rather than fprintf, for the sake of consistency.

21 years ago(main): Test for the case of no arguments before computing n_files.
Jim Meyering [Sat, 10 May 2003 13:30:26 +0000 (13:30 +0000)]
(main): Test for the case of no arguments before computing n_files.

21 years ago(main): Test for `missing argument' before computing n_files.
Jim Meyering [Sat, 10 May 2003 13:25:41 +0000 (13:25 +0000)]
(main): Test for `missing argument' before computing n_files.

21 years agoInclude error.h.
Jim Meyering [Sat, 10 May 2003 10:41:14 +0000 (10:41 +0000)]
Include error.h.

21 years ago(More details about version sort): Note that strverscmp, and hence
Jim Meyering [Sat, 10 May 2003 09:42:14 +0000 (09:42 +0000)]
(More details about version sort): Note that strverscmp, and hence
`ls -v', does not use LC_COLLATE.

21 years ago*** empty log message ***
Jim Meyering [Sat, 10 May 2003 09:41:50 +0000 (09:41 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sat, 10 May 2003 06:27:08 +0000 (06:27 +0000)]
*** empty log message ***

21 years ago(Exit status): Remove `uniq' from the list. It uses standard exit codes.
Jim Meyering [Sat, 10 May 2003 06:27:04 +0000 (06:27 +0000)]
(Exit status): Remove `uniq' from the list.  It uses standard exit codes.

21 years ago(main): Don't overrun array bound if argc is 0.
Jim Meyering [Fri, 9 May 2003 22:25:12 +0000 (22:25 +0000)]
(main): Don't overrun array bound if argc is 0.

21 years agofix off-by-one error in last change
Jim Meyering [Fri, 9 May 2003 22:16:22 +0000 (22:16 +0000)]
fix off-by-one error in last change

21 years ago*** empty log message ***
Jim Meyering [Fri, 9 May 2003 08:50:44 +0000 (08:50 +0000)]
*** empty log message ***

21 years ago(main): Don't overrun array bound if argc is 0.
Jim Meyering [Fri, 9 May 2003 08:50:37 +0000 (08:50 +0000)]
(main): Don't overrun array bound if argc is 0.
That would happen when invoked via: execl ("/usr/bin/sort", NULL);

21 years ago*** empty log message ***
Jim Meyering [Fri, 9 May 2003 08:49:46 +0000 (08:49 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Thu, 8 May 2003 09:26:42 +0000 (09:26 +0000)]
*** empty log message ***

21 years ago(timespec_subtract): Don't modify the 2nd arg.
Jim Meyering [Thu, 8 May 2003 09:26:34 +0000 (09:26 +0000)]
(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.

21 years ago(clock_get_realtime): Use gettime.c's gettime function,
Jim Meyering [Thu, 8 May 2003 06:26:00 +0000 (06:26 +0000)]
(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.

21 years ago*** empty log message ***
Jim Meyering [Wed, 7 May 2003 16:21:56 +0000 (16:21 +0000)]
*** empty log message ***

21 years agoImplement support so that `head --lines=-N' works on seekable files.
Jim Meyering [Wed, 7 May 2003 16:21:52 +0000 (16:21 +0000)]
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.

21 years ago*** empty log message ***
Jim Meyering [Wed, 7 May 2003 07:25:08 +0000 (07:25 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 6 May 2003 22:22:06 +0000 (22:22 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 6 May 2003 13:33:26 +0000 (13:33 +0000)]
*** empty log message ***

21 years ago(CHAR_BIT): Remove duplicate definition.
Jim Meyering [Tue, 6 May 2003 13:33:12 +0000 (13:33 +0000)]
(CHAR_BIT): Remove duplicate definition.

21 years ago*** empty log message ***
Jim Meyering [Tue, 6 May 2003 08:51:30 +0000 (08:51 +0000)]
*** empty log message ***

21 years ago(GL_FUNC_GETCWD_PATH_MAX): Check for the
Jim Meyering [Tue, 6 May 2003 08:51:26 +0000 (08:51 +0000)]
(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.

21 years ago*** empty log message ***
Jim Meyering [Mon, 5 May 2003 07:55:18 +0000 (07:55 +0000)]
*** empty log message ***

21 years ago(struct dummy): Ensure that at least the number of
Jim Meyering [Mon, 5 May 2003 07:54:19 +0000 (07:54 +0000)]
(struct dummy): Ensure that at least the number of
initializers matches the number of members in the corresponding enum.

21 years ago(enum Ftw_option): Name this previously-anonymous enum.
Jim Meyering [Mon, 5 May 2003 07:52:26 +0000 (07:52 +0000)]
(enum Ftw_option): Name this previously-anonymous enum.
(enum Ftw_option) [FTW_N_MEMBERS]: New member.

21 years agoAvoid array overrun.
Jim Meyering [Mon, 5 May 2003 07:31:49 +0000 (07:31 +0000)]
Avoid array overrun.
(nftw_arr): Update to reflect complete list of members.
(ftw_arr): Likewise

21 years ago*** empty log message ***
Jim Meyering [Mon, 5 May 2003 07:30:45 +0000 (07:30 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Sun, 4 May 2003 14:07:26 +0000 (14:07 +0000)]
.

21 years ago.
Jim Meyering [Sun, 4 May 2003 14:07:07 +0000 (14:07 +0000)]
.

21 years agoRemove tests of --bytes=-N; using that framework
Jim Meyering [Sun, 4 May 2003 14:06:52 +0000 (14:06 +0000)]
Remove tests of --bytes=-N; using that framework
caused the addition of thousands of small files to the tar archive.

21 years ago*** empty log message ***
Jim Meyering [Sun, 4 May 2003 14:01:02 +0000 (14:01 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 4 May 2003 13:56:47 +0000 (13:56 +0000)]
*** empty log message ***

21 years ago(TESTS): Add head-elide-tail.
Jim Meyering [Sun, 4 May 2003 13:56:43 +0000 (13:56 +0000)]
(TESTS): Add head-elide-tail.

21 years agoExercise head's --bytes=-N option.
Jim Meyering [Sun, 4 May 2003 13:46:52 +0000 (13:46 +0000)]
Exercise head's --bytes=-N option.

21 years ago.
Jim Meyering [Sun, 4 May 2003 08:45:17 +0000 (08:45 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sun, 4 May 2003 08:44:40 +0000 (08:44 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 4 May 2003 08:43:39 +0000 (08:43 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 4 May 2003 08:40:45 +0000 (08:40 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 4 May 2003 08:39:14 +0000 (08:39 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 4 May 2003 08:30:25 +0000 (08:30 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 4 May 2003 08:30:09 +0000 (08:30 +0000)]
*** empty log message ***

21 years ago(__set_errno, LOCK, UNLOCK): Define.
Jim Meyering [Sun, 4 May 2003 08:30:01 +0000 (08:30 +0000)]
(__set_errno, LOCK, UNLOCK): Define.
(unsetenv): Update from GNU libc.
Ifdef-out this function, since the only caller
is putenv.c and that file now has its own copy.

21 years ago*** empty log message ***
Jim Meyering [Sun, 4 May 2003 08:26:15 +0000 (08:26 +0000)]
*** empty log message ***

21 years agoThis avoids a core dump on systems without GNU putenv,
Jim Meyering [Sun, 4 May 2003 08:26:09 +0000 (08:26 +0000)]
This avoids a core dump on systems without GNU putenv,
when running `env -u SOME_ALREADY_UNSET_VARIABLE'.

(unsetenv): New static function, from libc.
(rpl_putenv): Use it.

21 years ago*** empty log message ***
Jim Meyering [Sun, 4 May 2003 07:10:25 +0000 (07:10 +0000)]
*** empty log message ***