platform/upstream/coreutils.git
24 years ago(struct quoting_options): Simplify quote_these_too dimension.
Jim Meyering [Thu, 6 Jul 2000 04:31:59 +0000 (04:31 +0000)]
(struct quoting_options): Simplify quote_these_too dimension.

24 years ago. SH-UTILS-2_0j
Jim Meyering [Tue, 4 Jul 2000 20:32:51 +0000 (20:32 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jul 2000 17:37:47 +0000 (17:37 +0000)]
*** empty log message ***

24 years ago[!HAVE_DECL_STRNLEN]: Declare strnlen.
Jim Meyering [Tue, 4 Jul 2000 17:37:43 +0000 (17:37 +0000)]
[!HAVE_DECL_STRNLEN]: Declare strnlen.

24 years ago.
Jim Meyering [Tue, 4 Jul 2000 17:35:01 +0000 (17:35 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jul 2000 17:32:00 +0000 (17:32 +0000)]
*** empty log message ***

24 years agoMake inclusion of <wchar.h> independent of whether
Jim Meyering [Tue, 4 Jul 2000 17:31:56 +0000 (17:31 +0000)]
Make inclusion of <wchar.h> independent of whether
HAVE_MBRTOWC is set.  Required at least for irix-5.6, which lacks mbrtowc.

24 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jul 2000 17:19:27 +0000 (17:19 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jul 2000 17:17:30 +0000 (17:17 +0000)]
*** empty log message ***

24 years ago(jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead of deprecated AC_CHECKING.
Jim Meyering [Tue, 4 Jul 2000 17:15:45 +0000 (17:15 +0000)]
(jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead of deprecated AC_CHECKING.

24 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jul 2000 13:07:25 +0000 (13:07 +0000)]
*** empty log message ***

24 years ago(test_vector): Disable test #2 for all systems,
Jim Meyering [Tue, 4 Jul 2000 13:07:21 +0000 (13:07 +0000)]
(test_vector): Disable test #2 for all systems,
even though it fails only on SunOS4.

24 years ago(AC_CHECK_DECLS): Add strnlen.
Jim Meyering [Tue, 4 Jul 2000 09:03:26 +0000 (09:03 +0000)]
(AC_CHECK_DECLS): Add strnlen.

24 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jul 2000 09:03:09 +0000 (09:03 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jul 2000 08:44:35 +0000 (08:44 +0000)]
*** empty log message ***

24 years ago[HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
Jim Meyering [Tue, 4 Jul 2000 08:44:28 +0000 (08:44 +0000)]
[HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
From Bob Proulx.

24 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jul 2000 07:11:55 +0000 (07:11 +0000)]
*** empty log message ***

24 years ago(AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
Jim Meyering [Tue, 4 Jul 2000 07:11:28 +0000 (07:11 +0000)]
(AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.

24 years ago*** empty log message ***
Jim Meyering [Tue, 4 Jul 2000 07:03:26 +0000 (07:03 +0000)]
*** empty log message ***

24 years ago(mbrtowc): Assign to *pwc, and return 1 only if result is nonzero.
Jim Meyering [Tue, 4 Jul 2000 07:03:16 +0000 (07:03 +0000)]
(mbrtowc): Assign to *pwc, and return 1 only if result is nonzero.
(iswprint): Use ISPRINT when substituting our own mbrtowc.

24 years ago. TEXTUTILS-2_0f
Jim Meyering [Sun, 2 Jul 2000 20:25:43 +0000 (20:25 +0000)]
.

24 years ago.
Jim Meyering [Sun, 2 Jul 2000 20:21:44 +0000 (20:21 +0000)]
.

24 years agoAlso define mbstate_t, if necessary.
Jim Meyering [Sun, 2 Jul 2000 20:21:30 +0000 (20:21 +0000)]
Also define mbstate_t, if necessary.

24 years ago(mbstate_t): Don't define here.
Jim Meyering [Sun, 2 Jul 2000 18:32:05 +0000 (18:32 +0000)]
(mbstate_t): Don't define here.

24 years ago*** empty log message ***
Jim Meyering [Sun, 2 Jul 2000 18:23:56 +0000 (18:23 +0000)]
*** empty log message ***

24 years ago(SIGCONT): Define if not already defined.
Jim Meyering [Sun, 2 Jul 2000 18:23:51 +0000 (18:23 +0000)]
(SIGCONT): Define if not already defined.

24 years ago*** empty log message ***
Jim Meyering [Sun, 2 Jul 2000 16:05:29 +0000 (16:05 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 2 Jul 2000 15:43:22 +0000 (15:43 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 2 Jul 2000 15:27:08 +0000 (15:27 +0000)]
*** empty log message ***

24 years agofix typo in last change
Jim Meyering [Sun, 2 Jul 2000 15:14:04 +0000 (15:14 +0000)]
fix typo in last change

24 years ago*** empty log message ***
Jim Meyering [Sun, 2 Jul 2000 12:59:32 +0000 (12:59 +0000)]
*** empty log message ***

24 years agoReplace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with AC_LIBOBJ([function_name]).
Jim Meyering [Sun, 2 Jul 2000 12:58:27 +0000 (12:58 +0000)]
Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with AC_LIBOBJ([function_name]).

24 years ago*** empty log message ***
Jim Meyering [Sun, 2 Jul 2000 11:58:18 +0000 (11:58 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 2 Jul 2000 11:57:40 +0000 (11:57 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 2 Jul 2000 11:49:20 +0000 (11:49 +0000)]
*** empty log message ***

24 years agoremove extra space
Jim Meyering [Sat, 1 Jul 2000 16:45:31 +0000 (16:45 +0000)]
remove extra space

24 years ago*** empty log message ***
Jim Meyering [Sat, 1 Jul 2000 15:41:06 +0000 (15:41 +0000)]
*** empty log message ***

24 years agoChange type of global, field_1_bufsize, from int to size_t.
Jim Meyering [Sat, 1 Jul 2000 15:41:01 +0000 (15:41 +0000)]
Change type of global, field_1_bufsize, from int to size_t.

24 years ago*** empty log message *** FILEUTILS-4_0w
Jim Meyering [Sat, 1 Jul 2000 15:36:44 +0000 (15:36 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 1 Jul 2000 14:06:55 +0000 (14:06 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Sat, 1 Jul 2000 14:03:02 +0000 (14:03 +0000)]
.

24 years ago.
Jim Meyering [Sat, 1 Jul 2000 13:58:19 +0000 (13:58 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sat, 1 Jul 2000 13:43:51 +0000 (13:43 +0000)]
*** empty log message ***

24 years agoRemove a `FIXME' comment and fix the associated problem.
Jim Meyering [Sat, 1 Jul 2000 13:43:46 +0000 (13:43 +0000)]
Remove a `FIXME' comment and fix the associated problem.

24 years ago.
Jim Meyering [Sat, 1 Jul 2000 13:35:52 +0000 (13:35 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sat, 1 Jul 2000 13:35:33 +0000 (13:35 +0000)]
*** empty log message ***

24 years agoUse MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
Jim Meyering [Sat, 1 Jul 2000 13:35:28 +0000 (13:35 +0000)]
Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
per change in ../m4/ls-mntd-fs.m4.
(read_filesystem_list): Ignore symbolic links.

24 years ago(jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
Jim Meyering [Sat, 1 Jul 2000 13:31:20 +0000 (13:31 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.

24 years ago*** empty log message ***
Jim Meyering [Sat, 1 Jul 2000 11:01:18 +0000 (11:01 +0000)]
*** empty log message ***

24 years ago(TESTS_ENVIRONMENT): Define host_triplet for use in the dangling-symlink test.
Jim Meyering [Sat, 1 Jul 2000 11:01:14 +0000 (11:01 +0000)]
(TESTS_ENVIRONMENT): Define host_triplet for use in the dangling-symlink test.

24 years ago*** empty log message ***
Jim Meyering [Sat, 1 Jul 2000 11:00:10 +0000 (11:00 +0000)]
*** empty log message ***

24 years agoWarn about the problem, rather
Jim Meyering [Sat, 1 Jul 2000 10:59:56 +0000 (10:59 +0000)]
Warn about the problem, rather
than failing on some very recent (at least 2.3.99) versions of
the Linux kernel.  Suggestion from Ulrich Drepper.

24 years ago*** empty log message ***
Jim Meyering [Sat, 1 Jul 2000 09:09:37 +0000 (09:09 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 1 Jul 2000 09:05:13 +0000 (09:05 +0000)]
*** empty log message ***

24 years agoPut double quotes around use of $cross_compiling.
Jim Meyering [Sat, 1 Jul 2000 09:04:56 +0000 (09:04 +0000)]
Put double quotes around use of $cross_compiling.

24 years ago.
Jim Meyering [Sat, 1 Jul 2000 07:13:53 +0000 (07:13 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Fri, 30 Jun 2000 13:25:12 +0000 (13:25 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Fri, 30 Jun 2000 13:25:04 +0000 (13:25 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Thu, 29 Jun 2000 11:30:16 +0000 (11:30 +0000)]
*** empty log message ***

24 years agoInclude <string.h> or <strings.h>, as appropriate, for declaration of strcmp.
Jim Meyering [Thu, 29 Jun 2000 11:29:55 +0000 (11:29 +0000)]
Include <string.h> or <strings.h>, as appropriate, for declaration of strcmp.

24 years ago*** empty log message ***
Jim Meyering [Thu, 29 Jun 2000 11:24:14 +0000 (11:24 +0000)]
*** empty log message ***

24 years agoInclude <stdlib.h>, for declaration of exit.
Jim Meyering [Thu, 29 Jun 2000 11:24:09 +0000 (11:24 +0000)]
Include <stdlib.h>, for declaration of exit.

24 years ago*** empty log message ***
Jim Meyering [Thu, 29 Jun 2000 11:16:29 +0000 (11:16 +0000)]
*** empty log message ***

24 years ago(find_bracketed_repeat): Add a cast to suppress a warning.
Jim Meyering [Thu, 29 Jun 2000 11:15:52 +0000 (11:15 +0000)]
(find_bracketed_repeat): Add a cast to suppress a warning.

24 years ago*** empty log message ***
Jim Meyering [Thu, 29 Jun 2000 10:39:57 +0000 (10:39 +0000)]
*** empty log message ***

24 years ago(enum): Remove comma from end of enumerator list.
Jim Meyering [Thu, 29 Jun 2000 10:39:41 +0000 (10:39 +0000)]
(enum): Remove comma from end of enumerator list.
From Gerhard Poul <gpoul@gnu.org

24 years ago*** empty log message ***
Jim Meyering [Thu, 29 Jun 2000 10:39:00 +0000 (10:39 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Thu, 29 Jun 2000 08:37:00 +0000 (08:37 +0000)]
*** empty log message ***

24 years ago(fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
Jim Meyering [Thu, 29 Jun 2000 08:30:03 +0000 (08:30 +0000)]
(fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
Avoid warning by casting result to `char *' to remove `const'.

24 years ago*** empty log message ***
Jim Meyering [Wed, 28 Jun 2000 20:30:59 +0000 (20:30 +0000)]
*** empty log message ***

24 years agoUse stdlib.h, not stdio.h. The latter is not included
Jim Meyering [Wed, 28 Jun 2000 20:29:27 +0000 (20:29 +0000)]
Use stdlib.h, not stdio.h.  The latter is not included
by quotearg.c, for which we perform this test.  From Bruno Haible.

24 years ago*** empty log message ***
Jim Meyering [Wed, 28 Jun 2000 14:06:34 +0000 (14:06 +0000)]
*** empty log message ***

24 years agoDon't copy `out' into /tmp.
Jim Meyering [Wed, 28 Jun 2000 14:06:30 +0000 (14:06 +0000)]
Don't copy `out' into /tmp.

24 years ago.
Jim Meyering [Tue, 27 Jun 2000 13:23:13 +0000 (13:23 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 13:13:13 +0000 (13:13 +0000)]
*** empty log message ***

24 years ago(count_entry): Don't set errno before
Jim Meyering [Tue, 27 Jun 2000 13:12:12 +0000 (13:12 +0000)]
(count_entry): Don't set errno before
invoking savedir, and assume that errno is nonzero if savedir fails.

24 years ago(copy_dir): Don't set errno before
Jim Meyering [Tue, 27 Jun 2000 13:11:36 +0000 (13:11 +0000)]
(copy_dir): Don't set errno before
invoking savedir, and assume that errno is nonzero if savedir fails.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 13:11:00 +0000 (13:11 +0000)]
*** empty log message ***

24 years ago(change_dir_mode): Don't set errno before
Jim Meyering [Tue, 27 Jun 2000 13:10:50 +0000 (13:10 +0000)]
(change_dir_mode): Don't set errno before
invoking savedir, and assume that errno is nonzero if savedir fails.

24 years ago(change_dir_owner): Don't set errno before
Jim Meyering [Tue, 27 Jun 2000 13:10:24 +0000 (13:10 +0000)]
(change_dir_owner): Don't set errno before
invoking savedir, and assume that errno is nonzero if savedir fails.

24 years ago(change_dir_group): Don't set errno before
Jim Meyering [Tue, 27 Jun 2000 13:09:57 +0000 (13:09 +0000)]
(change_dir_group): Don't set errno before
invoking savedir, and assume that errno is nonzero if savedir fails.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 11:21:03 +0000 (11:21 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Tue, 27 Jun 2000 10:10:13 +0000 (10:10 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 10:09:54 +0000 (10:09 +0000)]
*** empty log message ***

24 years ago(libfetish_a_SOURCES): Remove readutmp.c.
Jim Meyering [Tue, 27 Jun 2000 10:09:49 +0000 (10:09 +0000)]
(libfetish_a_SOURCES): Remove readutmp.c.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 10:08:15 +0000 (10:08 +0000)]
*** empty log message ***

24 years ago(jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
Jim Meyering [Tue, 27 Jun 2000 10:08:09 +0000 (10:08 +0000)]
(jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
<utmpx.h> exists, put readutmp.o into LIBOBJS.

24 years ago(_jm_DECL_HEADERS): Check for utmp.h as well.
Jim Meyering [Tue, 27 Jun 2000 10:01:30 +0000 (10:01 +0000)]
(_jm_DECL_HEADERS): Check for utmp.h as well.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 07:08:52 +0000 (07:08 +0000)]
*** empty log message ***

24 years agosavedir now sets errno on failure and invokes xmalloc to get memory.
Jim Meyering [Tue, 27 Jun 2000 07:08:48 +0000 (07:08 +0000)]
savedir now sets errno on failure and invokes xmalloc to get memory.
Fix a couple of other minor bugs while we're at it.

(<unistd.h>): Do not include; there's no need.
(NAMLEN): Remove macro.
(malloc, realloc): Remove decls.
(stpcpy): Likewise.
("xalloc.h"): Include.
(NAME_SIZE_DEFAULT): New macro.
(savedir): Use xmalloc / xrealloc to allocate memory.
Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
Skip "" directory entries.
Use strlen to calculate directory entry length, since the old method
is rarely used these days and isn't worth supporting.
Don't use a pointer after freeing it.
Check for integer overflow when calculating allocation size.
Use memcpy to copy entries, instead of stpcpy.
Set errno properly when returning NULL.
Check for readdir error.

24 years ago*** empty log message ***
Jim Meyering [Tue, 27 Jun 2000 06:33:35 +0000 (06:33 +0000)]
*** empty log message ***

24 years ago(show_dev): Round disk usage percentage up, not to nearest value.
Jim Meyering [Tue, 27 Jun 2000 06:33:31 +0000 (06:33 +0000)]
(show_dev): Round disk usage percentage up, not to nearest value.
Use integer arithmetic if it's easy.
Fix bug when converting twos-complement negative values to floating point.

24 years ago*** empty log message ***
Jim Meyering [Mon, 26 Jun 2000 13:48:40 +0000 (13:48 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 26 Jun 2000 13:30:59 +0000 (13:30 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Mon, 26 Jun 2000 10:55:57 +0000 (10:55 +0000)]
*** empty log message ***

24 years ago[HAVE_STDLIB_H]: Include stdlib.h.
Jim Meyering [Mon, 26 Jun 2000 10:55:18 +0000 (10:55 +0000)]
[HAVE_STDLIB_H]: Include stdlib.h.

24 years ago*** empty log message ***
Jim Meyering [Mon, 26 Jun 2000 06:33:22 +0000 (06:33 +0000)]
*** empty log message ***

24 years ago`id -Gn' (invoked by groups) would fail without giving a diagnostic
Jim Meyering [Mon, 26 Jun 2000 06:32:58 +0000 (06:32 +0000)]
`id -Gn' (invoked by groups) would fail without giving a diagnostic
on malconfigured systems.
(print_user): Give a diagnostic if number->name lookup fails.
(print_group): Likewise.

24 years ago*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 21:19:41 +0000 (21:19 +0000)]
*** empty log message ***

24 years ago(xmalloc, xrealloc): Remove functions.
Jim Meyering [Sun, 25 Jun 2000 21:17:32 +0000 (21:17 +0000)]
(xmalloc, xrealloc): Remove functions.
Include xalloc.h.
Don't include <stdlib.h>.  Don't declare malloc, realloc.