Jim Meyering [Sun, 2 Jul 2000 12:59:32 +0000 (12:59 +0000)]
*** empty log message ***
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]).
Jim Meyering [Sat, 1 Jul 2000 13:58:19 +0000 (13:58 +0000)]
.
Jim Meyering [Sat, 1 Jul 2000 13:43:51 +0000 (13:43 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 Jul 2000 13:43:46 +0000 (13:43 +0000)]
Remove a `FIXME' comment and fix the associated problem.
Jim Meyering [Sat, 1 Jul 2000 13:35:52 +0000 (13:35 +0000)]
.
Jim Meyering [Sat, 1 Jul 2000 13:35:33 +0000 (13:35 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Sat, 1 Jul 2000 09:05:13 +0000 (09:05 +0000)]
*** empty log message ***
Jim Meyering [Sat, 1 Jul 2000 09:04:56 +0000 (09:04 +0000)]
Put double quotes around use of $cross_compiling.
Jim Meyering [Sat, 1 Jul 2000 07:13:53 +0000 (07:13 +0000)]
.
Jim Meyering [Thu, 29 Jun 2000 11:30:16 +0000 (11:30 +0000)]
*** empty log message ***
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.
Jim Meyering [Thu, 29 Jun 2000 11:24:14 +0000 (11:24 +0000)]
*** empty log message ***
Jim Meyering [Thu, 29 Jun 2000 11:24:09 +0000 (11:24 +0000)]
Include <stdlib.h>, for declaration of exit.
Jim Meyering [Thu, 29 Jun 2000 08:37:00 +0000 (08:37 +0000)]
*** empty log message ***
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'.
Jim Meyering [Wed, 28 Jun 2000 20:30:59 +0000 (20:30 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 27 Jun 2000 10:10:13 +0000 (10:10 +0000)]
.
Jim Meyering [Tue, 27 Jun 2000 10:09:49 +0000 (10:09 +0000)]
(libfetish_a_SOURCES): Remove readutmp.c.
Jim Meyering [Tue, 27 Jun 2000 10:08:15 +0000 (10:08 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 27 Jun 2000 10:01:30 +0000 (10:01 +0000)]
(_jm_DECL_HEADERS): Check for utmp.h as well.
Jim Meyering [Tue, 27 Jun 2000 07:08:52 +0000 (07:08 +0000)]
*** empty log message ***
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.
Jim Meyering [Mon, 26 Jun 2000 10:55:57 +0000 (10:55 +0000)]
*** empty log message ***
Jim Meyering [Mon, 26 Jun 2000 10:55:18 +0000 (10:55 +0000)]
[HAVE_STDLIB_H]: Include stdlib.h.
Jim Meyering [Sun, 25 Jun 2000 21:19:41 +0000 (21:19 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 25 Jun 2000 08:49:02 +0000 (08:49 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 08:48:58 +0000 (08:48 +0000)]
Include stdio.h before wchar.h to work around
Linux header bug when _XOPEN_SOURCE is defined to 500.
Jim Meyering [Sun, 25 Jun 2000 06:54:36 +0000 (06:54 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Jun 2000 06:54:32 +0000 (06:54 +0000)]
(print_unicode_char): Work around ansi2knr deficiency.
Jim Meyering [Sat, 24 Jun 2000 21:05:11 +0000 (21:05 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 21:04:44 +0000 (21:04 +0000)]
If the compile-test says
strerror_r doesn't work, then resort to a `run'-test that works on
BeOS and segfaults on DEC Unix.
Jim Meyering [Sat, 24 Jun 2000 14:03:10 +0000 (14:03 +0000)]
check for decl unconditionally
Jim Meyering [Sat, 24 Jun 2000 12:21:52 +0000 (12:21 +0000)]
.
Jim Meyering [Sat, 24 Jun 2000 12:05:08 +0000 (12:05 +0000)]
Revive this file -- to try out an experimental
version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
for which strerror does return char*, but which lacks a conveniently
accessible declaration of the function.
Jim Meyering [Sat, 24 Jun 2000 12:01:29 +0000 (12:01 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Jun 2000 12:01:03 +0000 (12:01 +0000)]
[!HAVE_DECL_STRERROR_R]: Declare strerror_r.
Jim Meyering [Fri, 23 Jun 2000 21:09:12 +0000 (21:09 +0000)]
.
Jim Meyering [Fri, 23 Jun 2000 21:05:50 +0000 (21:05 +0000)]
Include <wctype.h> after <wchar.h>,
for Solaris 2.5.
(mbrtowc, mbstate_t): Define substitutes if
HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
(iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
Jim Meyering [Fri, 23 Jun 2000 21:03:06 +0000 (21:03 +0000)]
*** empty log message ***
Jim Meyering [Fri, 23 Jun 2000 21:02:23 +0000 (21:02 +0000)]
*** empty log message ***
Jim Meyering [Fri, 23 Jun 2000 21:02:15 +0000 (21:02 +0000)]
(jm_PREREQ_QUOTEARG): Use AC_MBSTATE_T_OBJECT. Add check for iswprint.
Jim Meyering [Fri, 23 Jun 2000 21:00:53 +0000 (21:00 +0000)]
New file, defining AC_MBSTATE_T_OBJECT.
Jim Meyering [Fri, 23 Jun 2000 14:03:02 +0000 (14:03 +0000)]
*** empty log message ***
Jim Meyering [Fri, 23 Jun 2000 13:50:42 +0000 (13:50 +0000)]
*** empty log message ***
Jim Meyering [Fri, 23 Jun 2000 13:49:17 +0000 (13:49 +0000)]
Add missing AC_MSG_RESULT.
Reported by Bruno Haible.
Jim Meyering [Fri, 23 Jun 2000 13:43:41 +0000 (13:43 +0000)]
s/AC_MSG_CHECKING/AC_CHECKING/.
Suggestion from Bruno Haible.
Jim Meyering [Wed, 21 Jun 2000 20:23:21 +0000 (20:23 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 20:23:14 +0000 (20:23 +0000)]
(AC_REPLACE_FUNCS): Add getpass.
Jim Meyering [Wed, 21 Jun 2000 20:21:03 +0000 (20:21 +0000)]
ansideclify
Jim Meyering [Wed, 21 Jun 2000 20:20:27 +0000 (20:20 +0000)]
New file, from Bruno Haible. Required for BeOS.
Jim Meyering [Wed, 21 Jun 2000 20:16:10 +0000 (20:16 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 20:16:03 +0000 (20:16 +0000)]
(xgetcwd): If the required pathname length is smaller
than 1024, return a memory chunk of least possible size, instead
of size PATH_MAX + 2. In the loop, increment the size proportionally.
Use free/xmalloc instead of xrealloc to avoid copying for very long paths.
Jim Meyering [Wed, 21 Jun 2000 13:00:54 +0000 (13:00 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 13:00:49 +0000 (13:00 +0000)]
(canon_host): Use malloc and memcpy to copy an
address, not strdup. Include <stdlib.h> and don't declare free().
Jim Meyering [Wed, 21 Jun 2000 12:56:40 +0000 (12:56 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 12:56:33 +0000 (12:56 +0000)]
(path_concat): Don't access dir[-1] if dir is the empty string.
Jim Meyering [Wed, 21 Jun 2000 09:56:42 +0000 (09:56 +0000)]
include getstr.h
Jim Meyering [Wed, 21 Jun 2000 09:21:52 +0000 (09:21 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 09:21:22 +0000 (09:21 +0000)]
(libfetish_a_SOURCES): Add getstr.c.
(noinst_HEADERS): Add getstr.h.
Jim Meyering [Wed, 21 Jun 2000 09:12:30 +0000 (09:12 +0000)]
(getstr): Move into a separate file.
Jim Meyering [Wed, 21 Jun 2000 09:10:32 +0000 (09:10 +0000)]
copyright date
Jim Meyering [Wed, 21 Jun 2000 09:09:57 +0000 (09:09 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jun 2000 09:09:22 +0000 (09:09 +0000)]
New file, extracted from getline.c, with the following
changes: new parameter, delim2; both delim[12] parameters have type
`int', not `char'. The latter would lose with 8-bit delimiters.
Stefan Monnier [Tue, 20 Jun 2000 16:48:05 +0000 (16:48 +0000)]
(re_match, re_match_2): Protect calls to alloca (0).
(re_comp): Cast gettext return value to avoid complaints when
!HAVE_LIBINTL.
Dave Love [Mon, 19 Jun 2000 21:59:46 +0000 (21:59 +0000)]
Test PROTOTYPES as well as __STDC__.
Jim Meyering [Mon, 19 Jun 2000 09:50:25 +0000 (09:50 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Jun 2000 09:50:20 +0000 (09:50 +0000)]
(AC_REPLACE_FUNCS): Remove mkdir.
Jim Meyering [Mon, 19 Jun 2000 09:48:54 +0000 (09:48 +0000)]
.
Jim Meyering [Mon, 19 Jun 2000 07:25:01 +0000 (07:25 +0000)]
[HAVE_NLIST_H] (NLIST_STRUCT): Define.
Jim Meyering [Mon, 19 Jun 2000 07:19:41 +0000 (07:19 +0000)]
revert last change
Jim Meyering [Mon, 19 Jun 2000 06:55:11 +0000 (06:55 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Jun 2000 06:51:58 +0000 (06:51 +0000)]
.
Jim Meyering [Sun, 18 Jun 2000 18:17:03 +0000 (18:17 +0000)]
*** empty log message ***
Jim Meyering [Sun, 18 Jun 2000 18:16:54 +0000 (18:16 +0000)]
Include memory.h, string.h, and/or strings.h as needed.
(this snippet comes from src/system.h).
Jim Meyering [Sun, 18 Jun 2000 18:08:15 +0000 (18:08 +0000)]
*** empty log message ***
Jim Meyering [Sun, 18 Jun 2000 18:07:51 +0000 (18:07 +0000)]
(jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
`checking whether...' message to be consistent with that of the
lstat test.
Jim Meyering [Sun, 18 Jun 2000 17:47:50 +0000 (17:47 +0000)]
.
Jim Meyering [Sun, 18 Jun 2000 06:17:54 +0000 (06:17 +0000)]
s/NLIST_STRUCT/HAVE_NLIST_H/. Remove big
multi-platform `#ifndef NLIST_STRUCT' block.
Jim Meyering [Sat, 17 Jun 2000 18:46:16 +0000 (18:46 +0000)]
.
Jim Meyering [Sat, 17 Jun 2000 18:35:44 +0000 (18:35 +0000)]
*** empty log message ***
Jim Meyering [Sat, 17 Jun 2000 18:34:33 +0000 (18:34 +0000)]
s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/
Jim Meyering [Sat, 17 Jun 2000 18:33:50 +0000 (18:33 +0000)]
(AM_FUNC_GETLOADAVG): Replace with AC_FUNC_GETLOADAVG
from autoconf, and tweak the latter to accept an optional argument.
Jim Meyering [Sat, 17 Jun 2000 18:31:59 +0000 (18:31 +0000)]
*** empty log message ***
Jim Meyering [Sat, 17 Jun 2000 18:31:51 +0000 (18:31 +0000)]
(jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
Jim Meyering [Fri, 16 Jun 2000 12:51:33 +0000 (12:51 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Jun 2000 12:51:28 +0000 (12:51 +0000)]
(adjust_value): New function.
(human_readable_inexact): Apply rounding style even when
printing approximate values.
Jim Meyering [Thu, 15 Jun 2000 12:47:56 +0000 (12:47 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Jun 2000 12:21:20 +0000 (12:21 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Jun 2000 12:21:10 +0000 (12:21 +0000)]
(human_readable_inexact): Allow an input block
size that is not a multiple of the output block size, and vice versa.
Jim Meyering [Thu, 15 Jun 2000 07:58:06 +0000 (07:58 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Jun 2000 07:57:58 +0000 (07:57 +0000)]
(get_date): Apply relative times after time zone indicator, not before.
Jim Meyering [Tue, 13 Jun 2000 09:19:08 +0000 (09:19 +0000)]
.
Jim Meyering [Tue, 13 Jun 2000 09:18:30 +0000 (09:18 +0000)]
(all-local): Depend on lstat.c and stat.c.
Jim Meyering [Tue, 13 Jun 2000 09:08:50 +0000 (09:08 +0000)]
*** empty log message ***