Jim Meyering [Mon, 21 May 2001 06:46:52 +0000 (06:46 +0000)]
(jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
Jim Meyering [Mon, 21 May 2001 06:36:43 +0000 (06:36 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 May 2001 06:36:36 +0000 (06:36 +0000)]
(dir_name): Compute append_dot using path, not newpath
which is not yet declared.
Jim Meyering [Sun, 20 May 2001 21:09:06 +0000 (21:09 +0000)]
.
Jim Meyering [Sun, 20 May 2001 20:41:20 +0000 (20:41 +0000)]
(my_strftime):
Define to nstrftime if emacs, but only if my_strftime is not defined.
(extra_args, extra_args_spec, extra_args_spec_iso): Rename from
ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
Add one more extra argument: a nanoseconds value.
All uses changed.
(ns): New macro.
(my_strftime function): Add %N format.
(emacs_strftimeu): Renamed from emacs_strftime,
with extra ut argument.
Jim Meyering [Sun, 20 May 2001 20:39:28 +0000 (20:39 +0000)]
(libfetish_a_SOURCES):
Add strftime.c, since we now compile it on all hosts.
Jim Meyering [Sun, 20 May 2001 20:38:29 +0000 (20:38 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 May 2001 20:38:25 +0000 (20:38 +0000)]
(jm_FUNC_GNU_STRFTIME):
Don't bother to check library strftime, since
we'll be using our own my_strftime function anyway.
Define my_strftime instead of strftime.
Jim Meyering [Wed, 16 May 2001 07:33:31 +0000 (07:33 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 May 2001 07:33:22 +0000 (07:33 +0000)]
Use proper quoting so brackets appear in the test program.
Jim Meyering [Wed, 16 May 2001 07:30:54 +0000 (07:30 +0000)]
.
Jim Meyering [Tue, 15 May 2001 14:02:28 +0000 (14:02 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 May 2001 14:02:19 +0000 (14:02 +0000)]
Use proper quoting so brackets appear in the test program.
Jim Meyering [Sun, 13 May 2001 18:24:57 +0000 (18:24 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 18:24:44 +0000 (18:24 +0000)]
(major_t, minor_t): Define to unsigned int if undefined.
Jim Meyering [Sat, 12 May 2001 20:55:19 +0000 (20:55 +0000)]
.
Jim Meyering [Sat, 12 May 2001 15:50:50 +0000 (15:50 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 May 2001 15:50:27 +0000 (15:50 +0000)]
(ISSLASH): Remove; now in dirname.h.
(strip_trailing_slashes): Return nonzero if
a slash was stripped. Do not strip the last slash after a
file system prefix.
Jim Meyering [Sat, 12 May 2001 15:48:00 +0000 (15:48 +0000)]
(base_name): Remove; now in dirname.h.
(STREQ): Remove.
(same_name): Handle the case where the basename ends in trailing '/'.
Jim Meyering [Sat, 12 May 2001 15:46:36 +0000 (15:46 +0000)]
(DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN): New macros.
(base_name, base_len, dir_len, strip_trailing_slashes): New decls.
Jim Meyering [Sat, 12 May 2001 15:45:43 +0000 (15:45 +0000)]
(DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
(path_concat): Use base_len to compute
base length, not strlen; this means we cannot rely on memcpy
to null-terminate.
Jim Meyering [Sat, 12 May 2001 15:40:47 +0000 (15:40 +0000)]
Use "", not <> to include non-system header files.
Jim Meyering [Sat, 12 May 2001 15:39:45 +0000 (15:39 +0000)]
Use "", not <> to include dirname.h.
Jim Meyering [Sat, 12 May 2001 15:38:00 +0000 (15:38 +0000)]
(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
Include <string.h> instead of <stdlib.h>.
Do not include <assert.h>; no longer needed.
Include xalloc.h.
(memrchr): Remove decl.
(dir_name_r): Remove.
(dir_len): Renamed from dirlen. All callers changed.
Rewrite in terms of base_name, for simplicity and consistency.
(dir_name): Never return NULL. All callers changed.
Do not include <stdlib.h> in test program; no longer needed.
return 0; is fine for test program.
Jim Meyering [Sat, 12 May 2001 14:23:49 +0000 (14:23 +0000)]
(FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
Do not include <stdio.h>, <assert.h>; no longer needed.
Include <string.h>, <dirname.h>.
(base_name): Allow file names ending in slashes, other than names
that are all slashes. In this case, return the basename followed
by the slashes. This is more general, and can be used in places
where the original base_name purposely had an assertion failure.
(base_len): New function.
Jim Meyering [Sat, 12 May 2001 14:20:43 +0000 (14:20 +0000)]
(base_name): Remove; now in dirname.h.
Include <dirname.h> after size_t is defined.
(find_backup_file_name, max_backup_version): Use base_len instead of
rolling it ourselves.
Handle the case of "" and (on DOS) "C:" correctly.
Jim Meyering [Sat, 12 May 2001 14:13:36 +0000 (14:13 +0000)]
(ISSLASH, base_name): Remove; now in dirname.h.
Include <dirname.h> after size_t is defined.
(addext): Use base_len to trim redundant
trailing slashes instead of doing it ourselves.
But do not trim the last slash if it is not redundant.
Eli Zaretskii [Sat, 12 May 2001 10:52:38 +0000 (10:52 +0000)]
(malloc, realloc, free) [emacs]: Undefine before
redefining, to avoid compiler warnings.
Jim Meyering [Sat, 12 May 2001 10:05:15 +0000 (10:05 +0000)]
Include dirname.h.
(strip_trailing_slashes): Remove decl; now in dirname.h.
Jim Meyering [Sat, 12 May 2001 10:04:13 +0000 (10:04 +0000)]
.
Jim Meyering [Wed, 9 May 2001 09:16:08 +0000 (09:16 +0000)]
*** empty log message ***
Jim Meyering [Wed, 9 May 2001 09:16:03 +0000 (09:16 +0000)]
(jm_MACROS): Do not check for fseeko; no longer used.
Jim Meyering [Sat, 21 Apr 2001 17:52:02 +0000 (17:52 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Apr 2001 17:51:46 +0000 (17:51 +0000)]
Write to a new file, so that a restrictive umask doesn't interfere.
Jim Meyering [Sat, 21 Apr 2001 14:08:04 +0000 (14:08 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Apr 2001 14:08:00 +0000 (14:08 +0000)]
Check for chsize.
Link with ftruncate.o unconditionally if ftruncate is missing.
This was required when cross-compiling to i586-mingw32msvc.
Jim Meyering [Sun, 8 Apr 2001 20:00:14 +0000 (20:00 +0000)]
*** empty log message ***
Jim Meyering [Sun, 8 Apr 2001 19:58:59 +0000 (19:58 +0000)]
that's necessary when the offset spans a DST transition.
Jim Meyering [Mon, 2 Apr 2001 08:31:28 +0000 (08:31 +0000)]
Update from GNU libc.
Jim Meyering [Mon, 2 Apr 2001 08:31:22 +0000 (08:31 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Apr 2001 21:28:27 +0000 (21:28 +0000)]
.
Jim Meyering [Sat, 24 Mar 2001 10:35:18 +0000 (10:35 +0000)]
Require autoconf-2.49d.
Jim Meyering [Sat, 24 Mar 2001 08:50:50 +0000 (08:50 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Mar 2001 08:50:21 +0000 (08:50 +0000)]
(jm_ICONV): Recommend GNU libiconv.
Jim Meyering [Mon, 19 Mar 2001 11:59:55 +0000 (11:59 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Mar 2001 11:52:29 +0000 (11:52 +0000)]
(version_etc_copyright): Update to 2001.
Jim Meyering [Fri, 16 Mar 2001 23:42:21 +0000 (23:42 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Mar 2001 23:41:08 +0000 (23:41 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Mar 2001 23:40:10 +0000 (23:40 +0000)]
Remove my copy of AC_FUNC_MEMCMP, now that
the version in autoconf has been updated.
(jm_FUNC_MEMCMP): Adjust.
Jim Meyering [Fri, 16 Mar 2001 17:01:17 +0000 (17:01 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Mar 2001 17:01:11 +0000 (17:01 +0000)]
(jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
Jim Meyering [Fri, 16 Mar 2001 16:38:52 +0000 (16:38 +0000)]
(jm_PREREQ): Add jm_PREREQ_TEMPNAME.
(jm_PREREQ_TEMPNAME): New function.
Jim Meyering [Fri, 16 Mar 2001 12:02:29 +0000 (12:02 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Mar 2001 12:02:22 +0000 (12:02 +0000)]
(uint64_t): Define to uintmax_t if
not defined, and if UINT64_MAX is not defined.
Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
Reported by John David Anglin.
Jim Meyering [Thu, 15 Mar 2001 14:50:26 +0000 (14:50 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Mar 2001 14:50:16 +0000 (14:50 +0000)]
(BeOS): Use wildcard syntax.
Jim Meyering [Thu, 15 Mar 2001 14:49:56 +0000 (14:49 +0000)]
(locale_charset): Allow wildcard syntax. Also resolve
alias if codeset is empty.
Jim Meyering [Tue, 13 Mar 2001 15:57:21 +0000 (15:57 +0000)]
*** empty log message ***
Jim Meyering [Tue, 13 Mar 2001 15:57:15 +0000 (15:57 +0000)]
(path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:
Don't insert a backslash when concatenating e.g., `C:' and `foo'.
From Bruno Haible.
Jim Meyering [Tue, 13 Mar 2001 04:18:10 +0000 (04:18 +0000)]
.
Jim Meyering [Mon, 12 Mar 2001 10:15:08 +0000 (10:15 +0000)]
.
Jim Meyering [Fri, 9 Mar 2001 18:37:57 +0000 (18:37 +0000)]
.
Jim Meyering [Tue, 6 Mar 2001 18:11:20 +0000 (18:11 +0000)]
(locale_charset): Don't use setlocale(LC_CTYPE,NULL).
Don't return NULL.
Jim Meyering [Tue, 6 Mar 2001 18:11:01 +0000 (18:11 +0000)]
(print_unicode_char): Simplify accordingly.
Jim Meyering [Tue, 6 Mar 2001 18:01:26 +0000 (18:01 +0000)]
*** empty log message ***
Jim Meyering [Tue, 6 Mar 2001 18:00:47 +0000 (18:00 +0000)]
Update for FreeBSD 4.2 and OSF/1 5.1. Add support for DOS/DJGPP.
Jim Meyering [Sun, 4 Mar 2001 01:48:17 +0000 (01:48 +0000)]
.
Jim Meyering [Sat, 3 Mar 2001 19:06:54 +0000 (19:06 +0000)]
(libfetish_a_SOURCES): Add dup-safer.c, fopen-safer.c.
(noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
Jim Meyering [Sat, 3 Mar 2001 19:06:28 +0000 (19:06 +0000)]
*** empty log message ***
Jim Meyering [Sat, 3 Mar 2001 19:05:36 +0000 (19:05 +0000)]
from Paul Eggert
Jim Meyering [Sat, 3 Mar 2001 18:38:22 +0000 (18:38 +0000)]
.
Jim Meyering [Fri, 2 Mar 2001 03:14:38 +0000 (03:14 +0000)]
*** empty log message ***
Jim Meyering [Fri, 2 Mar 2001 03:14:31 +0000 (03:14 +0000)]
(jm_MACROS): Use mkstemp replacement if the system
lacks mkstemp. Compile our own tempname.c if we compile our own
mkstemp.c, as mkstemp relies on tempname.
Jim Meyering [Fri, 2 Mar 2001 03:12:47 +0000 (03:12 +0000)]
from GNU libc
Jim Meyering [Fri, 2 Mar 2001 03:06:08 +0000 (03:06 +0000)]
.
Jim Meyering [Thu, 1 Mar 2001 05:33:25 +0000 (05:33 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 Mar 2001 05:33:18 +0000 (05:33 +0000)]
(jm_AC_DOS): Remove extra backslashes, now that
AH_VERBATIM really does output its argument verbatim.
Jim Meyering [Mon, 19 Feb 2001 08:51:00 +0000 (08:51 +0000)]
*** empty log message ***
Jim Meyering [Mon, 19 Feb 2001 08:50:54 +0000 (08:50 +0000)]
(jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
Jim Meyering [Sat, 17 Feb 2001 16:56:27 +0000 (16:56 +0000)]
*** empty log message ***
Jim Meyering [Sat, 17 Feb 2001 16:56:20 +0000 (16:56 +0000)]
Sync from GNU libc. Use double quotes, not <...>
around included file name.
Jim Meyering [Sat, 17 Feb 2001 16:53:38 +0000 (16:53 +0000)]
*** empty log message ***
Jim Meyering [Sat, 17 Feb 2001 16:53:33 +0000 (16:53 +0000)]
(__strnlen): Merge in a change from GNU libc.
Jim Meyering [Sat, 17 Feb 2001 16:51:03 +0000 (16:51 +0000)]
*** empty log message ***
Jim Meyering [Sat, 17 Feb 2001 16:50:27 +0000 (16:50 +0000)]
update comments from libc
Jim Meyering [Sat, 17 Feb 2001 13:18:17 +0000 (13:18 +0000)]
.
Jim Meyering [Sat, 17 Feb 2001 12:53:40 +0000 (12:53 +0000)]
*** empty log message ***
Jim Meyering [Sat, 17 Feb 2001 12:53:36 +0000 (12:53 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
UnixWare 7.1.1.
Jim Meyering [Sat, 17 Feb 2001 12:44:04 +0000 (12:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 17 Feb 2001 12:43:57 +0000 (12:43 +0000)]
(mbswidth): Also define as macro, to avoid prototype clash.
Jim Meyering [Sat, 17 Feb 2001 11:51:48 +0000 (11:51 +0000)]
.
Jim Meyering [Sat, 17 Feb 2001 10:39:17 +0000 (10:39 +0000)]
(mbrtowc, mbsinit):
Remove workaround macros for hosts that have mbrtowc but not
mbstate_t, as we now insist on proper declarations for both
before using mbrtowc.
Jim Meyering [Sat, 17 Feb 2001 10:37:10 +0000 (10:37 +0000)]
*** empty log message ***
Jim Meyering [Sat, 17 Feb 2001 10:36:42 +0000 (10:36 +0000)]
*** empty log message ***
Jim Meyering [Sat, 17 Feb 2001 10:36:33 +0000 (10:36 +0000)]
(jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc., rather than AC_CACHE_VAL.
Jim Meyering [Sat, 17 Feb 2001 09:35:11 +0000 (09:35 +0000)]
bump serial number
Jim Meyering [Sat, 17 Feb 2001 09:34:57 +0000 (09:34 +0000)]
(jm_PREREQ_QUOTEARG): Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
Jim Meyering [Sat, 17 Feb 2001 09:34:14 +0000 (09:34 +0000)]
(jm_PREREQ_MBSWIDTH):
Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
Jim Meyering [Sat, 17 Feb 2001 09:33:25 +0000 (09:33 +0000)]
New file, defining jm_FUNC_MBRTOWC.
Jim Meyering [Sat, 17 Feb 2001 08:55:17 +0000 (08:55 +0000)]
.