Log

Author Commit Date CI Message
Jim Meyering f9c1fe22 2001-09-17T10:24:20 (HAVE_LONG_LONG): Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned. (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base), to work around bug in IBM C compiler.
Jim Meyering 0383efbc 2001-09-16T12:43:33 .
Jim Meyering e27f0f10 2001-09-16T12:42:14 *** empty log message ***
Jim Meyering c21de525 2001-09-16T12:32:26 .
Jim Meyering b8d8343d 2001-09-16T12:32:12 *** empty log message ***
Jim Meyering 0b9a7b62 2001-09-16T12:32:07 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
Jim Meyering 25e698bf 2001-09-16T12:31:55 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Require it.
Jim Meyering b54bc4c2 2001-09-15T21:34:50 *** empty log message ***
Jim Meyering a5445d0c 2001-09-15T21:34:44 Check for help2man.
Jim Meyering 2db98cbf 2001-09-11T20:11:47 .
Jim Meyering 0b899da0 2001-09-11T20:11:37 *** empty log message ***
Jim Meyering deb99c73 2001-09-11T20:11:30 Require UTILS_HOST_OS.
Jim Meyering 8ee5027a 2001-09-11T20:11:04 *** empty log message ***
Jim Meyering 683f20f4 2001-09-11T20:10:44 (UTILS_HOST_OS): New file/macro. The body, by Paul Eggert, was moved here from configure.in.
Jim Meyering 1f36f4fa 2001-09-04T20:28:35 *** empty log message ***
Jim Meyering c824c60f 2001-09-04T20:28:31 Revert some of the previous change; intead, fix the HAVE_GETCWD_NULL code to behave more like the !HAVE_GETCWD_NULL code used to. Include "xalloc.h". (xgetcwd): Do not return NULL when memory is exhausted; instead, invoke xalloc_die.
Jim Meyering 2e5208a4 2001-09-04T20:22:47 .
Jim Meyering 62916358 2001-09-04T20:22:27 (jm_PREREQ_XREADLINK): New macro. (jm_PREREQ): Use it.
Jim Meyering f2111723 2001-09-04T20:22:18 *** empty log message ***
Jim Meyering be403985 2001-09-04T20:21:54 (xreadlink): Update prototype.
Jim Meyering b6f4a765 2001-09-04T20:20:16 (xreadlink): Omit size_t* arg. All uses changed. Use ssize_t, not int, to store result of readlink. Check for ssize_t overflow as well as size_t overflow, as POSIX says the result of readlink is implementation-defined when ssize_t overflows. Remove unnecessary cast to char*. Use free+malloc instead of realloc, as the storage doesn't need to be preserved and it's clearer and can be more efficient that way. (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
Jim Meyering 0c306dfb 2001-09-03T18:46:09 *** empty log message ***
Jim Meyering a601ff2f 2001-09-03T18:45:20 (fnmatch_no_wildcards): Fix confusion between usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was spotted by Jim Meyering.
Jim Meyering 77991e77 2001-09-03T18:32:05 include errno.h etc, too
Jim Meyering f009ae34 2001-09-03T18:28:30 (jm_PREREQ_XGETCWD): Check for limits.h and sys/param.h, as pathmax.h includes them.
Jim Meyering 92ee67ae 2001-09-03T18:26:58 *** empty log message ***
Jim Meyering c34c8a63 2001-09-03T18:26:42 tweak comment
Jim Meyering 0bd7218d 2001-09-03T18:25:58 (xreadlink): Preserve errno around `free' during failure.
Jim Meyering 8d7314ae 2001-09-03T18:24:37 update comment re power of 2
Jim Meyering e6995fc5 2001-09-03T18:21:53 Fix the !HAVE_GETCWD_NULL code to behave more like the HAVE_GETCWD_NULL code. Include pathmax.h if not HAVE_GETCWD. Do not include xalloc.h. (INITIAL_BUFFER_SIZE): New symbol. Do not use xmalloc / xrealloc, since the caller is responsible for handling errors. Preserve errno around `free' during failure. Do not overrun buffer when using getwd.
Jim Meyering 124beb93 2001-09-03T09:43:36 .
Jim Meyering a318063b 2001-09-03T07:45:11 (jm_PREREQ): Add jm_PREREQ_XGETCWD. (jm_PREREQ_XGETCWD): New macro.
Jim Meyering 0809f5f9 2001-09-03T07:43:54 *** empty log message ***
Jim Meyering b1d85350 2001-09-03T07:43:44 (xgetcwd): Use HAVE_GETCWD_NULL, not (defined __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0).
Jim Meyering 16b1a53a 2001-09-02T13:22:33 *** empty log message ***
Jim Meyering 0a3f1560 2001-09-02T13:22:25 Update from GNU libc.
Jim Meyering abb0df0b 2001-09-01T16:13:09 *** empty log message ***
Jim Meyering 50f13a43 2001-09-01T16:12:45 (jm_MACROS): Check for canonicalize_file_name.
Jim Meyering bc5e45d2 2001-09-01T09:53:58 .
Jim Meyering 7d7fb735 2001-09-01T09:50:48 *** empty log message ***
Jim Meyering c518eb1e 2001-09-01T09:50:21 (libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h.
Jim Meyering 99a90d56 2001-09-01T07:43:13 .
Jim Meyering ad06081b 2001-09-01T07:40:02 *** empty log message ***
Jim Meyering 910664bf 2001-09-01T07:39:56 (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it doesn't conflict with sparc-sun-solaris2.7's definition in /usr/include/sys/int_types.h.
Jim Meyering bbe5bbde 2001-09-01T07:29:08 *** empty log message ***
Jim Meyering 02e3bf2a 2001-09-01T07:28:51 Use `""', not `<>' to #include non-system header files. (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp and strncasecmp as r-values. Unixware didn't have declarations.
Jim Meyering dec57211 2001-09-01T06:13:08 fix typo
Jim Meyering 3a318239 2001-08-31T11:41:46 *** empty log message ***
Jim Meyering 904dc8bf 2001-08-31T11:39:16 (xgetcwd): Reorganize to avoid some duplication. Use an initial, malloc'd, buffer of length 128 rather than a statically allocated one of length 1024.
Jim Meyering d408a75e 2001-08-31T10:36:23 *** empty log message ***
Jim Meyering f16f973a 2001-08-31T10:36:12 Don't include pathmax.h. Include stdlib.h and unistd.h if available. Include xalloc.h. (xmalloc, xstrdup, free): Remove decls. (xgetcwd): Don't assume sizes fit in unsigned. Check for overflow when computing sizes. Simplify reallocation code.
Jim Meyering ca72a010 2001-08-31T10:22:11 *** empty log message ***
Jim Meyering aae75336 2001-08-31T10:21:56 (jm_MACROS):Don't require jm_AC_HEADER_INTTYPES_H.
Jim Meyering 130476cc 2001-08-31T10:20:17 (jm_PREREQ_HUMAN): Don't require jm_AC_HEADER_INTTYPES_H. Update comment.
Jim Meyering 46ad541f 2001-08-31T10:18:21 (jm_AC_PREREQ_XSTRTOUMAX): Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG since they are needed to parse the include file even if we need only xstrtoumax. Simplify logic behind the args to AC_REPLACE.
Jim Meyering ff8563f3 2001-08-31T10:14:52 (jm_AC_PREREQ_XSTRTOIMAX): Quote first arg of AC_DEFUN. Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG since they are needed to parse the include file even if we need only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
Jim Meyering 4f18a124 2001-08-31T10:12:12 (AC_PREREQ): Bump to 2.52. (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52. All uses removed. (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Move AC_REQUIRE to next-to-top level, to avoid confusion. Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
Jim Meyering cdaa8756 2001-08-31T10:05:52 Remove, as it duplicates inttypes.m4.
Jim Meyering 14080d2a 2001-08-31T10:04:15 .
Jim Meyering bcba7179 2001-08-31T09:39:22 *** empty log message ***
Jim Meyering 6281e7fd 2001-08-31T09:39:10 Include strtoimax.c, not strtouxmax.c.
Jim Meyering 9a3aebb7 2001-08-31T09:37:58 Renamed from strtoxmax.c, removing the old strtoimax.c. Also, make the following further changes to make this file's configuration more similar to that of strtol.c: (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed. (strtoumax, uintmax_t, strtoull, strtol): Remove. (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED. (strtoimax): Renamed from strtoumax. All uses of unsigned values changed to signed values. And make the following changes as well: Fix copyright notice, as 1999 was missing. (verify): New macro. (strtoimax): Check sizes at compile-time, not run-time. Prefer strtol to strtoll if both work. (main): Remove; it was not that useful and was a pain to maintain.
Jim Meyering 2fb2160c 2001-08-31T09:30:02 .
Jim Meyering 4eea6d70 2001-08-31T09:29:44 (libfetish_a_SOURCES): Remove strtoxmax.c.
Jim Meyering 21d2d10d 2001-08-31T09:09:53 (savedir): Remove size parameter, as POSIX says that a directory's st_size can have an arbitrary value, so the old usage could waste an arbitrary amount of memory. All uses changed.
Jim Meyering 021b941c 2001-08-31T09:09:35 Update prototype.
Jim Meyering b89886c6 2001-08-31T08:18:06 *** empty log message ***
Jim Meyering 2fb2cf55 2001-08-31T08:17:45 (strtoimax): New decl.
Jim Meyering 665d6196 2001-08-31T08:16:12 *** empty log message ***
Jim Meyering 4053cdae 2001-08-31T08:15:10 * lib/xstrtol.h: Add copyright notice. (_DECLARE_XSTRTOL): Improve quality of diagnostic for LONGINT_INVALID_SUFFIX_CHAR.
Jim Meyering 270a64e6 2001-08-31T07:52:28 *** empty log message ***
Jim Meyering 3e3c7925 2001-08-31T07:51:13 BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.
Jim Meyering 182f2329 2001-08-31T07:49:54 *** empty log message ***
Jim Meyering ce64c0b2 2001-08-31T07:49:39 Remove '2001' from copyright notice.
Jim Meyering 482b6449 2001-08-31T07:35:47 copyright
Jim Meyering 2365267f 2001-08-31T07:35:37 Include full-write.h.
Jim Meyering ed1e0a0e 2001-08-31T07:34:41 *** empty log message ***
Jim Meyering 594030c4 2001-08-31T07:34:13 (libfetish_a_SOURCES): Add full-write.h.
Jim Meyering 227257cc 2001-08-31T07:29:05 Correct credits, as cccp.c no longer exists and anyway it was so heavily changed from the old cccp code as to be unrecognizable. Include full-write.h. (full_write) Return size_t, with short writes meaning failure. All callers changed. This fixes a bug with large buffers on 64-bit hosts.
Jim Meyering 7d437d26 2001-08-31T07:05:14 *** empty log message ***
Jim Meyering 1380e0f9 2001-08-31T07:05:08 (jm_PREREQ): Add jm_PREREQ_EXCLUDE. (jm_PREREQ_EXCLUDE): New macro.
Jim Meyering 3ed8146b 2001-08-31T06:35:13 *** empty log message ***
Jim Meyering 88cd9b7a 2001-08-31T06:34:06 (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS): New macros. (free_exclude): New decl. (add_exclude, add_exclude_file): Now takes int options arg. (excluded_filename): No longer requires options arg, as the options are determined by add_exclude. Now returns bool, not int.
Jim Meyering 42a7a591 2001-08-31T06:33:42 Merge 'exclude' changes from tar 1.13.22. This fixes one or two unlikely storage allocation overflow bugs, but doesn't change user-visible behavior otherwise. (bool): Declare, perhaps by including stdbool.h. (<sys/types.h>): Include only if HAVE_SYS_TYPES_H. (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>): Include if available. (<xalloc.h>): Include (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't. (verify): New macro. Use it to verify that EXCLUDE macros do not collide with FNM macros. (struct patopts): New struct. (struct exclude): Use it, as exclude patterns now come with options. (new_exclude): Support above changes. (new_exclude, add_exclude_file): Initial size must now be a power of two to simplify overflow checking. (free_exclude, fnmatch_no_wildcards): New function. (excluded_filename): No longer requires options arg, as the options are determined by add_exclude. Now returns bool, not int. (excluded_filename, add_exclude): Add support for the fancy new exclusion options. (add_exclude, add_exclude_file): Now takes int options arg. Check for arithmetic overflow when computing sizes. (add_exclude_file): xrealloc might modify errno, so don't realloc until after errno might be used.
Jim Meyering d38495fd 2001-08-30T19:19:10 *** empty log message ***
Jim Meyering 19d56db8 2001-08-30T19:19:02 (alloca): Arg is of type size_t, not unsigned.
Jim Meyering 2dbd8cb6 2001-08-27T21:25:15 #define STRTOUXMAX_UNSIGNED
Jim Meyering 82d003f7 2001-08-27T21:24:59 whoops. Don't define anything here. imax is the default
Jim Meyering 5ab38554 2001-08-27T08:55:04 .
Jim Meyering af3fdad9 2001-08-27T08:54:19 remove xstrtoxmax.c
Jim Meyering 216433e4 2001-08-27T08:52:46 *** empty log message ***
Jim Meyering 5748a040 2001-08-27T08:52:40 (libfetish_a_SOURCES): Add strtoxmax.c
Jim Meyering b9b009fa 2001-08-27T08:50:19 Actually remove the definition of N_.
Jim Meyering 69fd6485 2001-08-27T08:50:04 (N_): Remove definition. Revert most of last change. Instead, simply don't mark the `Copyright...' string for translation. Based on advice from Paul Eggert.
Jim Meyering 2633133b 2001-08-27T08:46:16 *** empty log message ***
Jim Meyering 1c52b0ee 2001-08-27T08:46:08 Tweak comment.
Jim Meyering d7caae67 2001-08-27T08:44:27 include strtoxmax.c
Jim Meyering c344dfdc 2001-08-27T08:43:54 renamed to strtoxmax.c
Jim Meyering 62781d5d 2001-08-27T08:31:30 renamed from strtouxmax.c
Jim Meyering 20c8c9cf 2001-08-26T18:26:01 (version_etc_copyright_fmt): Replace literal year of copyright with `%s' so translators don't get an untranslated message in 2002. (COPYRIGHT_YEAR): Define. (version_etc): Use fprintf rather than fputs.