* modules/free-posix: Renamed from modules/free.
(configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
not GNULIB_FREE.
* modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
GNULIB_FREE.
* lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
* doc/posix-functions/free.texi: Mention the module 'free-posix' and
what it does.
* NEWS: Mention that module 'free' no longer exists.
* modules/canonicalize (Depends-on): Add free-posix. Remove free.
* modules/canonicalize-lgpl (Depends-on): Likewise.
+2020-12-18 Bruno Haible <bruno@clisp.org>
+
+ free-posix: New module, renamed from 'free'.
+ * modules/free-posix: Renamed from modules/free.
+ (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
+ * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
+ not GNULIB_FREE.
+ * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
+ GNULIB_FREE.
+ * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
+ * doc/posix-functions/free.texi: Mention the module 'free-posix' and
+ what it does.
+ * NEWS: Mention that module 'free' no longer exists.
+ * modules/canonicalize (Depends-on): Add free-posix. Remove free.
+ * modules/canonicalize-lgpl (Depends-on): Likewise.
+
2020-12-18 Bruno Haible <bruno@clisp.org>
free: Remove support for obsolete platforms.
Date Modules Changes
+2020-12-18 free This module, obsoleted in 2008, is gone.
+
2020-12-14 findprog-in The function 'find_in_given_path' now takes a 3rd
argument 'const char *directory'. To maintain the
previous behaviour, insert NULL as additional 3rd
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html}
-Gnulib module: free
+Gnulib module: free-posix
Portability problems fixed by Gnulib:
@itemize
+@item
+This function may clobber @code{errno} on many platforms.
@end itemize
Portability problems not fixed by Gnulib:
_GL_CXXALIASWARN (fcvt);
#endif
-#if @GNULIB_FREE@
+#if @GNULIB_FREE_POSIX@
# if @REPLACE_FREE@
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef free
-# stdlib_h.m4 serial 53
+# stdlib_h.m4 serial 54
dnl Copyright (C) 2007-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
GNULIB_ATOLL=0; AC_SUBST([GNULIB_ATOLL])
GNULIB_CALLOC_POSIX=0; AC_SUBST([GNULIB_CALLOC_POSIX])
GNULIB_CANONICALIZE_FILE_NAME=0; AC_SUBST([GNULIB_CANONICALIZE_FILE_NAME])
- GNULIB_FREE=0; AC_SUBST([GNULIB_FREE])
+ GNULIB_FREE_POSIX=0; AC_SUBST([GNULIB_FREE_POSIX])
GNULIB_GETLOADAVG=0; AC_SUBST([GNULIB_GETLOADAVG])
GNULIB_GETSUBOPT=0; AC_SUBST([GNULIB_GETSUBOPT])
GNULIB_GRANTPT=0; AC_SUBST([GNULIB_GRANTPT])
extensions
file-set
filename
-free
+free-posix
getcwd
hash-triple-simple
idx
double-slash-root [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
errno [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
filename [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
-free [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+free-posix [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
idx [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
libc-config [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
malloc-posix [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+++ /dev/null
-Description:
-Work around systems where free clobbers errno.
-
-Files:
-lib/free.c
-m4/free.m4
-
-Depends-on:
-stdlib
-
-configure.ac:
-gl_FUNC_FREE
-if test $REPLACE_FREE = 1; then
- AC_LIBOBJ([free])
- gl_PREREQ_FREE
-fi
-gl_STDLIB_MODULE_INDICATOR([free])
-
-Makefile.am:
-
-Include:
-<stdlib.h>
-
-License:
-LGPLv2+
-
-Maintainer:
-Paul Eggert
--- /dev/null
+Description:
+Work around systems where free clobbers errno.
+
+Files:
+lib/free.c
+m4/free.m4
+
+Depends-on:
+stdlib
+
+configure.ac:
+gl_FUNC_FREE
+if test $REPLACE_FREE = 1; then
+ AC_LIBOBJ([free])
+ gl_PREREQ_FREE
+fi
+gl_STDLIB_MODULE_INDICATOR([free-posix])
+
+Makefile.am:
+
+Include:
+<stdlib.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+Paul Eggert
-e 's/@''GNULIB_ATOLL''@/$(GNULIB_ATOLL)/g' \
-e 's/@''GNULIB_CALLOC_POSIX''@/$(GNULIB_CALLOC_POSIX)/g' \
-e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GNULIB_CANONICALIZE_FILE_NAME)/g' \
- -e 's/@''GNULIB_FREE''@/$(GNULIB_FREE)/g' \
+ -e 's/@''GNULIB_FREE_POSIX''@/$(GNULIB_FREE_POSIX)/g' \
-e 's/@''GNULIB_GETLOADAVG''@/$(GNULIB_GETLOADAVG)/g' \
-e 's/@''GNULIB_GETSUBOPT''@/$(GNULIB_GETSUBOPT)/g' \
-e 's/@''GNULIB_GRANTPT''@/$(GNULIB_GRANTPT)/g' \