* modules/putenv-gnu: Renamed from modules/putenv.
(Description): Mention the removal of environment variables.
* modules/putenv-gnu-tests: Renamed from modules/putenv-tests.
* modules/putenv: New file, an indirection to the new module.
* doc/posix-functions/putenv.texi: Mention the new module name.
* NEWS: Mention the change.
+2024-05-16 Collin Funk <collin.funk1@gmail.com>
+
+ Rename module 'putenv' to 'putenv-gnu'.
+ * modules/putenv-gnu: Renamed from modules/putenv.
+ (Description): Mention the removal of environment variables.
+ * modules/putenv-gnu-tests: Renamed from modules/putenv-tests.
+ * modules/putenv: New file, an indirection to the new module.
+ * doc/posix-functions/putenv.texi: Mention the new module name.
+ * NEWS: Mention the change.
+
2024-05-16 Collin Funk <collin.funk1@gmail.com>
putenv: Add tests.
Date Modules Changes
+2024-05-16 putenv This module is renamed to 'putenv-gnu'.
+
2024-02-21 *printf-posix These modules no longer support the 'n' directive
by default. In order to keep the 'n' directive
enabled, you need to additionally request the
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/putenv.html}
-Gnulib module: ---
+Gnulib module: putenv-gnu
Portability problems fixed by Gnulib:
@itemize
@itemize
@end itemize
-Extension: Gnulib provides a module @samp{putenv} that substitutes a
+Extension: Gnulib provides a module @samp{putenv-gnu} that substitutes a
@code{putenv} implementation that can also be used to remove environment
variables.
Description:
putenv() function: change or add an environment variable.
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'putenv-gnu' instead.
+
Files:
-lib/putenv.c
-m4/putenv.m4
Depends-on:
-stdlib
-environ [test $REPLACE_PUTENV = 1]
-free-posix [test $REPLACE_PUTENV = 1]
-malloc-posix [test $REPLACE_PUTENV = 1]
+putenv-gnu
configure.ac:
-gl_FUNC_PUTENV
-gl_CONDITIONAL([GL_COND_OBJ_PUTENV], [test $REPLACE_PUTENV = 1])
-AM_COND_IF([GL_COND_OBJ_PUTENV], [
- gl_PREREQ_PUTENV
-])
-gl_STDLIB_MODULE_INDICATOR([putenv])
Makefile.am:
-if GL_COND_OBJ_PUTENV
-lib_SOURCES += putenv.c
-endif
Include:
<stdlib.h>
LGPL
Maintainer:
-Jim Meyering, glibc
+all
--- /dev/null
+Description:
+putenv() function: change, add, or remove an environment variable.
+
+Files:
+lib/putenv.c
+m4/putenv.m4
+
+Depends-on:
+stdlib
+environ [test $REPLACE_PUTENV = 1]
+free-posix [test $REPLACE_PUTENV = 1]
+malloc-posix [test $REPLACE_PUTENV = 1]
+
+configure.ac:
+gl_FUNC_PUTENV
+gl_CONDITIONAL([GL_COND_OBJ_PUTENV], [test $REPLACE_PUTENV = 1])
+AM_COND_IF([GL_COND_OBJ_PUTENV], [
+ gl_PREREQ_PUTENV
+])
+gl_STDLIB_MODULE_INDICATOR([putenv])
+
+Makefile.am:
+if GL_COND_OBJ_PUTENV
+lib_SOURCES += putenv.c
+endif
+
+Include:
+<stdlib.h>
+
+License:
+LGPL
+
+Maintainer:
+Jim Meyering, glibc
--- /dev/null
+Files:
+tests/test-putenv.c
+tests/macros.h
+tests/signature.h
+
+Depends-on:
+unsetenv
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-putenv
+check_PROGRAMS += test-putenv
+++ /dev/null
-Files:
-tests/test-putenv.c
-tests/macros.h
-tests/signature.h
-
-Depends-on:
-unsetenv
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-putenv
-check_PROGRAMS += test-putenv