summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2000-06-27savedir now sets errno on failure and invokes xmalloc to get memory.Jim Meyering
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.
2000-06-26*** empty log message ***Jim Meyering
2000-06-26[HAVE_STDLIB_H]: Include stdlib.h.Jim Meyering
2000-06-25*** empty log message ***Jim Meyering
2000-06-25(xmalloc, xrealloc): Remove functions.Jim Meyering
Include xalloc.h. Don't include <stdlib.h>. Don't declare malloc, realloc.
2000-06-25*** empty log message ***Jim Meyering
2000-06-25(print_unicode_char): Work around ansi2knr deficiency.Jim Meyering
2000-06-24.Jim Meyering
2000-06-24*** empty log message ***Jim Meyering
2000-06-24[!HAVE_DECL_STRERROR_R]: Declare strerror_r.Jim Meyering
2000-06-23*** empty log message ***Jim Meyering
2000-06-23Include <wctype.h> after <wchar.h>,Jim Meyering
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).
2000-06-23*** empty log message ***Jim Meyering
2000-06-21ansideclifyJim Meyering
2000-06-21New file, from Bruno Haible. Required for BeOS.Jim Meyering
2000-06-21*** empty log message ***Jim Meyering
2000-06-21(xgetcwd): If the required pathname length is smallerJim Meyering
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.
2000-06-21*** empty log message ***Jim Meyering
2000-06-21(canon_host): Use malloc and memcpy to copy anJim Meyering
address, not strdup. Include <stdlib.h> and don't declare free().
2000-06-21*** empty log message ***Jim Meyering
2000-06-21(path_concat): Don't access dir[-1] if dir is the empty string.Jim Meyering
2000-06-21include getstr.hJim Meyering
2000-06-21*** empty log message ***Jim Meyering
2000-06-21(libfetish_a_SOURCES): Add getstr.c.Jim Meyering
(noinst_HEADERS): Add getstr.h.
2000-06-21(getstr): Move into a separate file.Jim Meyering
2000-06-21copyright dateJim Meyering
2000-06-21*** empty log message ***Jim Meyering
2000-06-21New file, extracted from getline.c, with the followingJim Meyering
changes: new parameter, delim2; both delim[12] parameters have type `int', not `char'. The latter would lose with 8-bit delimiters.
2000-06-19.Jim Meyering
2000-06-19[HAVE_NLIST_H] (NLIST_STRUCT): Define.Jim Meyering
2000-06-19revert last changeJim Meyering
2000-06-19*** empty log message ***Jim Meyering
2000-06-19.Jim Meyering
2000-06-18*** empty log message ***Jim Meyering
2000-06-18Include memory.h, string.h, and/or strings.h as needed.Jim Meyering
(this snippet comes from src/system.h).
2000-06-18.Jim Meyering
2000-06-18s/NLIST_STRUCT/HAVE_NLIST_H/. Remove bigJim Meyering
multi-platform `#ifndef NLIST_STRUCT' block.
2000-06-17.Jim Meyering
2000-06-17.Jim Meyering
2000-06-16*** empty log message ***Jim Meyering
2000-06-16(adjust_value): New function.Jim Meyering
(human_readable_inexact): Apply rounding style even when printing approximate values.
2000-06-15*** empty log message ***Jim Meyering
2000-06-15*** empty log message ***Jim Meyering
2000-06-15(human_readable_inexact): Allow an input blockJim Meyering
size that is not a multiple of the output block size, and vice versa.
2000-06-15*** empty log message ***Jim Meyering
2000-06-15(get_date): Apply relative times after time zone indicator, not before.Jim Meyering
2000-06-13.Jim Meyering
2000-06-13(all-local): Depend on lstat.c and stat.c.Jim Meyering
2000-06-13*** empty log message ***Jim Meyering
2000-06-13[!HAVE_DECL_FREE]: Declare free in lstat.c.Jim Meyering