From: Paul Eggert Date: Tue, 3 Aug 2004 04:46:37 +0000 (+0000) Subject: Don't use valloc; it's buggy on some GNU/Linux systems, and it returns X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=cafa07d9667a352866ea491727de8fe4da193c52;p=chaz%2Ftar Don't use valloc; it's buggy on some GNU/Linux systems, and it returns storage that can't be freed on older BSD systems. --- diff --git a/ChangeLog b/ChangeLog index f569a69..adb393e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,22 @@ +2004-08-02 Paul Eggert + + * bootstrap (gnulib_modules): Add getpagesize. + * configure.ac (valloc): Remove check; valloc no longer used. + * lib/.cvsignore: Add getpagesize.h. + * m4/.cvsignore: Add getpagesize.m4. + * src/buffer.c (record_buffer): New var. + (open_archive): Don't use valloc; on older or buggy hosts, you can't + free the result. Use page_aligned_alloc instead. + * src/compare.c (diff_init): Likewise. + * src/buffer.c (open_archive): Record the pointer to be freed + into record_buffer. + (close_archive): Free record_buffer. + * src/common.h (page_aligned_alloc): New decl. + * src/misc.c (quote_n, quote): Remove these redundant functions. + (ptr_align): New function, from coreutils/src/system.h. + (page_aligned_alloc): New function. + * src/system.h (valloc): Remove. + 2004-07-09 Paul Eggert * src/extract.c (extract_archive): Do not report an error