summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2001-09-01.Jim Meyering
2001-09-01*** empty log message ***Jim Meyering
2001-09-01(uintptr_t) [!_LIBC]: Define to private_uintptr_t, so itJim Meyering
doesn't conflict with sparc-sun-solaris2.7's definition in /usr/include/sys/int_types.h.
2001-09-01*** empty log message ***Jim Meyering
2001-09-01Use `""', not `<>' to #include non-system header files.Jim Meyering
(fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp and strncasecmp as r-values. Unixware didn't have declarations.
2001-09-01fix typoJim Meyering
2001-08-31*** empty log message ***Jim Meyering
2001-08-31(xgetcwd): Reorganize to avoid some duplication.Jim Meyering
Use an initial, malloc'd, buffer of length 128 rather than a statically allocated one of length 1024.
2001-08-31*** empty log message ***Jim Meyering
2001-08-31Don't include pathmax.h.Jim Meyering
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.
2001-08-31*** empty log message ***Jim Meyering
2001-08-31Include strtoimax.c, not strtouxmax.c.Jim Meyering
2001-08-31Renamed from strtoxmax.c, removing the old strtoimax.c.Jim Meyering
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.
2001-08-31.Jim Meyering
2001-08-31(libfetish_a_SOURCES): Remove strtoxmax.c.Jim Meyering
2001-08-31(savedir): Remove size parameter, as POSIX says thatJim Meyering
a directory's st_size can have an arbitrary value, so the old usage could waste an arbitrary amount of memory. All uses changed.
2001-08-31Update prototype.Jim Meyering
2001-08-31*** empty log message ***Jim Meyering
2001-08-31(strtoimax): New decl.Jim Meyering
2001-08-31*** empty log message ***Jim Meyering
2001-08-31* lib/xstrtol.h: Add copyright notice.Jim Meyering
(_DECLARE_XSTRTOL): Improve quality of diagnostic for LONGINT_INVALID_SUFFIX_CHAR.
2001-08-31*** empty log message ***Jim Meyering
2001-08-31BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.Jim Meyering
2001-08-31*** empty log message ***Jim Meyering
2001-08-31Remove '2001' from copyright notice.Jim Meyering
2001-08-31*** empty log message ***Jim Meyering
2001-08-31copyrightJim Meyering
2001-08-31Include full-write.h.Jim Meyering
2001-08-31*** empty log message ***Jim Meyering
2001-08-31(libfetish_a_SOURCES): Add full-write.h.Jim Meyering
2001-08-31Correct credits, as cccp.c no longerJim Meyering
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.
2001-08-31*** empty log message ***Jim Meyering
2001-08-31(EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS): New macros.Jim Meyering
(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.
2001-08-31Merge 'exclude' changes from tar 1.13.22.Jim Meyering
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.
2001-08-30*** empty log message ***Jim Meyering
2001-08-30(alloca): Arg is of type size_t, not unsigned.Jim Meyering
2001-08-27#define STRTOUXMAX_UNSIGNEDJim Meyering
2001-08-27whoops. Don't define anything here. imax is the defaultJim Meyering
2001-08-27.Jim Meyering
2001-08-27remove xstrtoxmax.cJim Meyering
2001-08-27*** empty log message ***Jim Meyering
2001-08-27(libfetish_a_SOURCES): Add strtoxmax.cJim Meyering
2001-08-27Actually remove the definition of N_.Jim Meyering
2001-08-27(N_): Remove definition.Jim Meyering
Revert most of last change. Instead, simply don't mark the `Copyright...' string for translation. Based on advice from Paul Eggert.
2001-08-27*** empty log message ***Jim Meyering
2001-08-27Tweak comment.Jim Meyering
2001-08-27include strtoxmax.cJim Meyering
2001-08-27renamed to strtoxmax.cJim Meyering
2001-08-27renamed from strtouxmax.cJim Meyering
2001-08-26(version_etc_copyright_fmt): Replace literal yearJim Meyering
of copyright with `%s' so translators don't get an untranslated message in 2002. (COPYRIGHT_YEAR): Define. (version_etc): Use fprintf rather than fputs.