summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2001-09-20(strtoimax): Guard declaration withJim Meyering
`#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'. The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0) have their own, conflicting declaration of strtoimax in sys/inttypes.h. (strtoumax): Likewise, for completeness (it wasn't necessary).
2001-09-17*** empty log message ***Jim Meyering
2001-09-17(HAVE_LONG_LONG): Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.Jim Meyering
(strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base), to work around bug in IBM C compiler.
2001-09-16.Jim Meyering
2001-09-16*** empty log message ***Jim Meyering
2001-09-04*** empty log message ***Jim Meyering
2001-09-04Revert some of the previous change; intead,Jim Meyering
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.
2001-09-04.Jim Meyering
2001-09-04(xreadlink): Update prototype.Jim Meyering
2001-09-04(xreadlink): Omit size_t* arg. All uses changed.Jim Meyering
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.
2001-09-03*** empty log message ***Jim Meyering
2001-09-03(fnmatch_no_wildcards): Fix confusion betweenJim Meyering
usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was spotted by Jim Meyering.
2001-09-03include errno.h etc, tooJim Meyering
2001-09-03*** empty log message ***Jim Meyering
2001-09-03tweak commentJim Meyering
2001-09-03(xreadlink): Preserve errno around `free' during failure.Jim Meyering
2001-09-03update comment re power of 2Jim Meyering
2001-09-03Fix the !HAVE_GETCWD_NULL code to behave moreJim Meyering
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.
2001-09-03*** empty log message ***Jim Meyering
2001-09-03(xgetcwd): Use HAVE_GETCWD_NULL, not (defined __GLIBC__ && __GLIBC__ >= 2),Jim Meyering
to decide whether to use getcwd (NULL, 0).
2001-09-02*** empty log message ***Jim Meyering
2001-09-02Update from GNU libc.Jim Meyering
2001-09-01.Jim Meyering
2001-09-01*** empty log message ***Jim Meyering
2001-09-01*** empty log message ***Jim Meyering
2001-09-01(libfetish_a_SOURCES): Add xreadlink.c and xreadlink.h.Jim Meyering
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