]> Savannah Git Hosting - gnulib.git/commitdiff
free-posix: New module, renamed from 'free'.
authorBruno Haible <bruno@clisp.org>
Fri, 18 Dec 2020 23:18:50 +0000 (00:18 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 18 Dec 2020 23:18:50 +0000 (00:18 +0100)
* 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.

ChangeLog
NEWS
doc/posix-functions/free.texi
lib/stdlib.in.h
m4/stdlib_h.m4
modules/canonicalize
modules/canonicalize-lgpl
modules/free [deleted file]
modules/free-posix [new file with mode: 0644]
modules/stdlib

index 14db75ab280c73c0e2f849a9e84568e38d4dd19f..049f71958019e58d15ddca49d5b0120b93672211 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+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.
diff --git a/NEWS b/NEWS
index 09d1987fb6d6b4a5713e682590bad418a05e80b4..7679be06c52518c48c6e53589737e30e88257c43 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -60,6 +60,8 @@ User visible incompatible changes
 
 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
index 1c397d14ee62ef5c9ba52f6a123c97aa6cbd3d4c..a7ceec130b6f85c2af03d4ea54ce22a86547bc85 100644 (file)
@@ -4,10 +4,12 @@
 
 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:
index a512459e2d0cd3d7f8827511be208e4a07371612..1964443a22fa735a331faa507b24d1376d4dbba6 100644 (file)
@@ -284,7 +284,7 @@ _GL_CXXALIAS_SYS (fcvt, char *,
 _GL_CXXALIASWARN (fcvt);
 #endif
 
-#if @GNULIB_FREE@
+#if @GNULIB_FREE_POSIX@
 # if @REPLACE_FREE@
 #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 #   undef free
index 6b519c4e37d82edbe54debf2a348e82544a54226..7e03b9a6d588f6d5f5fd8ccf8fe275a14e312349 100644 (file)
@@ -1,4 +1,4 @@
-# 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,
@@ -62,7 +62,7 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS],
   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])
index 4853cf901ea8d061e9a0f1be5042b436c61cf47f..e1b7607046ad2671c472d39bb25cc2df38a94abe 100644 (file)
@@ -13,7 +13,7 @@ errno
 extensions
 file-set
 filename
-free
+free-posix
 getcwd
 hash-triple-simple
 idx
index d4dfcc9057ad8fa5d5e262cb2e5c98ea27ca8f4d..e94a898bd692346f8c93e2b347ffe7e56de6512b 100644 (file)
@@ -13,7 +13,7 @@ nocrash
 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]
diff --git a/modules/free b/modules/free
deleted file mode 100644 (file)
index 29ec637..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-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
diff --git a/modules/free-posix b/modules/free-posix
new file mode 100644 (file)
index 0000000..f48e388
--- /dev/null
@@ -0,0 +1,28 @@
+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
index 1daa0f9619feac2469a4399ec4e44ce23b9d53e8..68583f830d489a12e4f852600d68d4228b8cb8e9 100644 (file)
@@ -36,7 +36,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
              -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' \