]> Savannah Git Hosting - gnulib.git/commitdiff
Rename module stdlib to stdlib-h.
authorBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:28:45 +0000 (23:28 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:36:35 +0000 (23:36 +0100)
* modules/stdlib-h: Renamed from modules/stdlib.
* modules/stdlib-h-tests: Renamed from modules/stdlib-tests.
* modules/stdlib-h-c++-tests: Renamed from modules/stdlib-c++-tests.
* tests/test-stdlib-h.c: Renamed from tests/test-stdlib.c.
* tests/test-stdlib-h-c++.cc: Renamed from tests/test-stdlib-c++.cc.
* tests/test-stdlib-h-c++2.cc: Renamed from tests/test-stdlib-c++2.cc.
* doc/posix-headers/stdlib.texi: Update.
* doc/posix-functions/exit.texi: Update.
* modules/* (Depends-on): Update.
* modules/stdlib: New file.

89 files changed:
ChangeLog
doc/posix-functions/exit.texi
doc/posix-headers/stdlib.texi
modules/_Exit
modules/abort-debug
modules/aligned_alloc
modules/argmatch
modules/atoll
modules/calloc-posix
modules/canonicalize-lgpl
modules/chdir-long
modules/copy-file
modules/dfa
modules/dfa-tests
modules/execute
modules/exitfail
modules/free-posix
modules/getloadavg
modules/getprogname
modules/getsubopt
modules/git-merge-changelog
modules/grantpt
modules/long-options
modules/malloc-h
modules/malloc-posix
modules/mbscasecmp
modules/mbstowcs
modules/mbtowc
modules/mkdtemp
modules/mkostemp
modules/mkostemps
modules/mkstemp
modules/mkstemps
modules/obstack
modules/pagealign_alloc
modules/pipe-filter-gi
modules/pipe-filter-ii
modules/posix_memalign
modules/posix_openpt
modules/posixcheck
modules/pt_chown
modules/ptsname
modules/ptsname_r
modules/putenv-gnu
modules/qsort_r
modules/rand
modules/random
modules/random_r
modules/realloc-posix
modules/reallocarray
modules/relocatable-prog-wrapper
modules/rpmatch
modules/savewd
modules/secure_getenv
modules/setenv
modules/spawn-pipe
modules/stack
modules/stack-trace
modules/stdlib
modules/stdlib-c++-tests [deleted file]
modules/stdlib-h [new file with mode: 0644]
modules/stdlib-h-c++-tests [new file with mode: 0644]
modules/stdlib-h-tests [new file with mode: 0644]
modules/stdlib-safer
modules/stdlib-tests [deleted file]
modules/string
modules/strtod
modules/strtof
modules/strtol
modules/strtold
modules/strtoll
modules/strtoul
modules/strtoull
modules/sysexits
modules/system-posix
modules/timevar
modules/unlockpt
modules/unsetenv
modules/wait-process
modules/wchar
modules/wctomb
modules/windows-spawn
modules/xsetenv
tests/test-stdlib-c++.cc [deleted file]
tests/test-stdlib-c++2.cc [deleted file]
tests/test-stdlib-h-c++.cc [new file with mode: 0644]
tests/test-stdlib-h-c++2.cc [new file with mode: 0644]
tests/test-stdlib-h.c [new file with mode: 0644]
tests/test-stdlib.c [deleted file]

index dbb65d5dd8a81f883bfb6ff615d0ca4f34e067b3..5b3de5831c70ff6253dcbd03a70031f3a14dd69e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2024-12-27  Bruno Haible  <bruno@clisp.org>
+
+       Rename module stdlib to stdlib-h.
+       * modules/stdlib-h: Renamed from modules/stdlib.
+       * modules/stdlib-h-tests: Renamed from modules/stdlib-tests.
+       * modules/stdlib-h-c++-tests: Renamed from modules/stdlib-c++-tests.
+       * tests/test-stdlib-h.c: Renamed from tests/test-stdlib.c.
+       * tests/test-stdlib-h-c++.cc: Renamed from tests/test-stdlib-c++.cc.
+       * tests/test-stdlib-h-c++2.cc: Renamed from tests/test-stdlib-c++2.cc.
+       * doc/posix-headers/stdlib.texi: Update.
+       * doc/posix-functions/exit.texi: Update.
+       * modules/* (Depends-on): Update.
+       * modules/stdlib: New file.
+
 2024-12-27  Bruno Haible  <bruno@clisp.org>
 
        Rename module stdio to stdio-h.
index c783f07ba644c2414052d0a90cda094f888837e9..9ed381d46be0d15fa3a4a494de0e90203d5ecd83 100644 (file)
@@ -4,8 +4,8 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/exit.html}
 
-Gnulib module: stdlib
-@mindex stdlib
+Gnulib module: stdlib-h
+@mindex stdlib-h
 
 Portability problems fixed by Gnulib:
 @itemize
index 0763a20e0b70c9ea69ed5908260fb1a92c5a2de0..6c62771c13837b510a4c189baca04a0d7959b42a 100644 (file)
@@ -3,11 +3,11 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html}
 
-Gnulib module: stdlib, system-posix
-@mindex stdlib
+Gnulib module: stdlib-h, system-posix
+@mindex stdlib-h
 @mindex system-posix
 
-Portability problems fixed by the Gnulib module @code{stdlib}:
+Portability problems fixed by the Gnulib module @code{stdlib-h}:
 @itemize
 @item
 The macros @code{EXIT_SUCCESS} and @code{EXIT_FAILURE} are not defined on
index 75f0399e88b98e012d299f7b6bda8cc9c2d5b5d2..3258de89576dae37b5c191a2ae60fabae4f67917 100644 (file)
@@ -6,7 +6,7 @@ lib/_Exit.c
 m4/_Exit.m4
 
 Depends-on:
-stdlib
+stdlib-h
 unistd
 
 configure.ac:
index 5bbe64e3722d6ebe44ecad62ab5ad78d196935c9..c20705e4326d5b4fcc5ca5c57decb94d5712d01a 100644 (file)
@@ -6,7 +6,7 @@ lib/abort-debug.c
 m4/abort-debug.m4
 
 Depends-on:
-stdlib
+stdlib-h
 stack-trace
 
 configure.ac:
index ab7f3ffba0ab6a42378bf91324709f5c705cd29b..fbd08ccac43d71714be3358e4e28a920fd32b73c 100644 (file)
@@ -7,7 +7,7 @@ m4/aligned_alloc.m4
 
 Depends-on:
 extensions
-stdlib
+stdlib-h
 malloc-posix    [test $REPLACE_ALIGNED_ALLOC = 1]
 
 configure.ac:
index a85ce34e52e177bf5f0d448dd446f9616accdfcc..e01b6a6132740a80a6edec6796f1fc98526bb000 100644 (file)
@@ -17,7 +17,7 @@ memcmp
 quote
 quotearg
 stdbool-h
-stdlib
+stdlib-h
 
 configure.ac:
 
index 8f7c347af58e898661c91e7500043c94f4bc674b..100e994234df653765da0b8c4f0d3562632f03fe 100644 (file)
@@ -6,7 +6,7 @@ lib/atoll.c
 m4/atoll.m4
 
 Depends-on:
-stdlib
+stdlib-h
 strtoll         [test $HAVE_ATOLL = 0]
 
 configure.ac:
index dc9d0729ab5fc4898f058f480a5f2134a09e70a1..f675a98a0d739e547711d021242799dc00150fdd 100644 (file)
@@ -8,7 +8,7 @@ m4/malloc.m4
 
 Depends-on:
 stdckdint-h          [test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1]
-stdlib
+stdlib-h
 
 configure.ac:
 gl_FUNC_CALLOC_POSIX
index d686470ebd7db08f84c20b13b13a364d0c7cc0b6..b05312a4a835843b4b12b4b24e5bc2c285c60e35 100644 (file)
@@ -9,7 +9,7 @@ m4/lstat.m4
 
 Depends-on:
 extensions
-stdlib
+stdlib-h
 nocrash
 double-slash-root             [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
 eloop-threshold               [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
index 4acf932b4bcce76566db2a56d3657b7cd66d788c..3eee2c2b1ae5089e18d29c1a5e9b803789d37fcd 100644 (file)
@@ -20,7 +20,7 @@ memchr          [test $gl_cv_have_unlimited_file_name_length = no]
 mempcpy         [test $gl_cv_have_unlimited_file_name_length = no]
 memrchr         [test $gl_cv_have_unlimited_file_name_length = no]
 stdbool-h       [test $gl_cv_have_unlimited_file_name_length = no]
-stdlib          [test $gl_cv_have_unlimited_file_name_length = no]
+stdlib-h        [test $gl_cv_have_unlimited_file_name_length = no]
 
 configure.ac:
 gl_FUNC_CHDIR_LONG
index 49469f1d28a0040a81ca0920ca5c815af1ade2d2..d72de05328d3afa5577ed921c985e78e73d44e15 100644 (file)
@@ -23,7 +23,7 @@ qcopy-acl
 quote
 safe-read
 stat-time
-stdlib
+stdlib-h
 unistd
 utimens
 
index 874235ea7cdc8f33f6950e95de69a5ecc7c993ce..275ddbd3b3a4b44605d083c54dfe53d3b01a2f04 100644 (file)
@@ -29,7 +29,7 @@ stdbool-h
 stddef-h
 stdint-h
 stdio-h
-stdlib
+stdlib-h
 string
 uchar
 # The lonesome_lower array requires ISO C 23 semantics for char32_t.
index 8d60a5750314ebd631f6d9aea732b06b26d866e8..f3aa498555d1f33724ae3d47aefcc6d180de37d1 100644 (file)
@@ -7,7 +7,7 @@ tests/test-dfa-invalid-merge.sh
 Depends-on:
 binary-io
 stdio-h
-stdlib
+stdlib-h
 string
 unistd
 regex
index 9eacfc2e27d514a7b62fc3a9c2733f1c7e1eb893..59bbd1721e77cc8d7c576f03768d4622270feea5 100644 (file)
@@ -30,7 +30,7 @@ posix_spawnattr_setsigmask
 posix_spawnattr_setflags
 posix_spawnattr_destroy
 stdbool-h
-stdlib
+stdlib-h
 sys_wait
 unistd
 wait-process
index 0dd3ec6897fa91b90a4fe382dbe6a53c32538f3d..aea401de99bd6ee3ef81870d95bf3fdc5bde7de9 100644 (file)
@@ -6,7 +6,7 @@ lib/exitfail.h
 lib/exitfail.c
 
 Depends-on:
-stdlib
+stdlib-h
 
 configure.ac:
 
index 9d18421b642f9bebdef579a6da84bd29396d92df..8e8d0708f84674adecebb8b74007215aa0bda401 100644 (file)
@@ -6,7 +6,7 @@ lib/free.c
 m4/free.m4
 
 Depends-on:
-stdlib
+stdlib-h
 string
 wchar
 
index 8d1307864a78fb3b5e83b786960ff0d9da154450..dd245cef338c9acda7772816fa3d6ef8ab8f502b 100644 (file)
@@ -10,7 +10,7 @@ extensions
 intprops  [test $HAVE_GETLOADAVG = 0 || test $REPLACE_GETLOADAVG = 1]
 open      [case $host_os in mingw* | windows*) false;; *) test $HAVE_GETLOADAVG = 0 || test $REPLACE_GETLOADAVG = 1;; esac]
 stdbool-h [test $HAVE_GETLOADAVG = 0 || test $REPLACE_GETLOADAVG = 1]
-stdlib    [test $HAVE_GETLOADAVG = 0 || test $REPLACE_GETLOADAVG = 1]
+stdlib-h  [test $HAVE_GETLOADAVG = 0 || test $REPLACE_GETLOADAVG = 1]
 
 configure.ac:
 AC_REQUIRE([AC_CANONICAL_HOST])
index ff0b91cbe069fde027a84a41effc62612aab9927..87117befa7903ca8d2015dd53b89c3ec278387e7 100644 (file)
@@ -7,7 +7,7 @@ lib/getprogname.c
 m4/getprogname.m4
 
 Depends-on:
-stdlib
+stdlib-h
 basename-lgpl   [test $HAVE_GETPROGNAME = 0]
 extensions      [test $HAVE_GETPROGNAME = 0]
 open            [test $HAVE_GETPROGNAME = 0 && case "$host_os" in irix* | osf* | sco* | unixware*) true;; *) false;; esac]
index bdabdd76d57b41ee391ae3af8291e3ce571f382b..13d19dce8ead7602ac25d9dc63323acf00c43bcb 100644 (file)
@@ -6,7 +6,7 @@ lib/getsubopt.c
 m4/getsubopt.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 strchrnul       [test $HAVE_GETSUBOPT = 0 || test $REPLACE_GETSUBOPT = 1]
 memchr          [test $HAVE_GETSUBOPT = 0 || test $REPLACE_GETSUBOPT = 1]
index 2a29362ba490ebc6212e9e29d1598eb5ed6f6774..3a59e0587cd506f4e31cc93e6670c7f0ec7c5ff0 100644 (file)
@@ -10,7 +10,7 @@ getopt-gnu
 idx
 stdbool-h
 stdint-h
-stdlib
+stdlib-h
 error
 read-file
 xlist
index db09688b9660157d2079cd9f17181df7183415d3..34a63d98bdf799d07767eed11de4e679cefa08a7 100644 (file)
@@ -7,7 +7,7 @@ lib/pty-private.h
 m4/grantpt.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 pt_chown        [test $HAVE_GRANTPT = 0]
 waitpid         [test $HAVE_GRANTPT = 0]
index 71bf978b260d015abf5917e34eca336adeb1bbfb..9447c77cbd0f567cc1d7413fca923f6ce68030a6 100644 (file)
@@ -10,7 +10,7 @@ c99
 exitfail
 getopt-gnu
 stdbool-h
-stdlib
+stdlib-h
 version-etc
 
 configure.ac:
index d308515b7726bd8cb15015b1292f32aac56ca7fa..ec18a9fc5ddd9f56d98ed28fccfa950e4524b5ea 100644 (file)
@@ -11,7 +11,7 @@ include_next
 snippet/c++defs
 snippet/warn-on-use
 stddef-h
-stdlib
+stdlib-h
 
 configure.ac:
 gl_MALLOC_H
index 9b06240af8a0504c2eb7e60452e7538e946ca859..d7201a81f23c5d80758745d6d07ceb4fd26cc7d7 100644 (file)
@@ -7,7 +7,7 @@ m4/malloc.m4
 
 Depends-on:
 stdckdint-h          [test $REPLACE_CALLOC_FOR_MALLOC_POSIX = 1]
-stdlib
+stdlib-h
 
 configure.ac:
 AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
index 2fd8f1f4ce9cd0a5f5629328ace48b89dd3718be..38644a7a5d41876a22cc6355e1f36f699d97d14c 100644 (file)
@@ -7,7 +7,7 @@ lib/mbscasecmp.c
 Depends-on:
 c32tolower
 mbuiterf            [test "$GNULIB_MCEL_PREFER" != yes]
-stdlib
+stdlib-h
 string
 uchar
 
index e41e0a59386c9b78404c268b60c6bd839846279d..bb2fdc02191bc80c5ff0d01797f3741e6215c06c 100644 (file)
@@ -7,7 +7,7 @@ m4/mbstowcs.m4
 m4/mbrtowc.m4
 
 Depends-on:
-stdlib
+stdlib-h
 mbszero         [test $REPLACE_MBSTOWCS = 1]
 mbsrtowcs       [test $REPLACE_MBSTOWCS = 1]
 
index 12cc3de62dd673b7e26fae682bef950caca4eee4..8644fc310f1f1ac943f4998e8340fc2db7287475 100644 (file)
@@ -7,7 +7,7 @@ lib/mbtowc-impl.h
 m4/mbtowc.m4
 
 Depends-on:
-stdlib
+stdlib-h
 wchar           [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
 mbszero         [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
 mbrtowc         [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1]
index 43cb57861a7917ce4761d541355c42266b4afe74..df98dba9bc040ede605c8bb2f02a078fbb3e4062 100644 (file)
@@ -6,7 +6,7 @@ lib/mkdtemp.c
 m4/mkdtemp.m4
 
 Depends-on:
-stdlib
+stdlib-h
 stdint-h        [test $HAVE_MKDTEMP = 0]
 tempname        [test $HAVE_MKDTEMP = 0]
 
index a47353d42728ef42db0ef620b860f9fdde783719..2f2c1e9d39fac62c699098574a1751cc702830b7 100644 (file)
@@ -7,7 +7,7 @@ lib/mkostemp.c
 m4/mkostemp.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 largefile
 tempname        [test $HAVE_MKOSTEMP = 0 || test $REPLACE_MKOSTEMP = 1]
index 3bcb438860c9a90454ef33b5340371605b3fb058..48858b055805d92c142a6a3c17f977670ec2705e 100644 (file)
@@ -7,7 +7,7 @@ lib/mkostemps.c
 m4/mkostemps.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 largefile
 tempname        [test $HAVE_MKOSTEMPS = 0 || test $REPLACE_MKOSTEMPS = 1]
index 523c7b8d11dde6ae5234b4994f0eb5c2ec86d031..507e81d9c1299bfb9d8f3e808c79c42c5ac41ab1 100644 (file)
@@ -6,7 +6,7 @@ lib/mkstemp.c
 m4/mkstemp.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 largefile
 tempname        [test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1]
index 4cb0f52315ca0064b0d1462f3c4a8cb589ceb646..5ced68efbe9a30b9003611f55d87f3114c7cefe9 100644 (file)
@@ -6,7 +6,7 @@ lib/mkstemps.c
 m4/mkstemps.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 largefile
 tempname        [test $HAVE_MKSTEMPS = 0]
index dfe56c91392e208c36888e52c59c03b1fef88d79..77b81f9e442dfaf517ee3af97a81cf5a37673600 100644 (file)
@@ -13,7 +13,7 @@ gettext-h       [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
 gnulib-i18n     [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
 exitfail        [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
 stdint-h        [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
-stdlib          [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
+stdlib-h        [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
 
 configure.ac:
 gl_FUNC_OBSTACK
index f448adb86de5f0da3b97e090159fe43aa8305366..edc7422c4b59b115cfb84ba9e62e30a99da5b94f 100644 (file)
@@ -14,7 +14,7 @@ getpagesize
 gettext-h
 gnulib-i18n
 open
-stdlib
+stdlib-h
 xalloc
 unistd
 
index d646af2dce67641eeb2a2fed129118205961c213..d32fecb8660df2108b32d4f66de1f3e8bc99ae02 100644 (file)
@@ -18,7 +18,7 @@ gettext-h
 gnulib-i18n
 stdbool-h
 stdint-h
-stdlib
+stdlib-h
 sys_select
 unistd
 xalloc
index d6f8c5a1d884a2244881b770b9bbe50229939326..4baae3067f9aafe8dc2d2e270ca9a48f3f53bf9f 100644 (file)
@@ -17,7 +17,7 @@ gettext-h
 gnulib-i18n
 stdbool-h
 stdint-h
-stdlib
+stdlib-h
 sys_select
 unistd
 
index e6ab0d78906f99e2a3fe64e3cde19e93917a8271..7818e7f83300df67df53d300b994a7c097607018 100644 (file)
@@ -8,7 +8,7 @@ m4/posix_memalign.m4
 Depends-on:
 extensions
 stdckdint-h      [test $REPLACE_POSIX_MEMALIGN = 1]
-stdlib
+stdlib-h
 
 configure.ac:
 gl_FUNC_POSIX_MEMALIGN
index 1b065e10d05c7ace0183205e1bd5905029e972f3..6be976cec25a0e642bd97761c3a35a6a298d136e 100644 (file)
@@ -7,7 +7,7 @@ m4/posix_openpt.m4
 
 Depends-on:
 extensions
-stdlib
+stdlib-h
 
 configure.ac:
 gl_FUNC_POSIX_OPENPT
index 1c8565bf848533eba1eea8f894da868ecb9df59a..fbb7d2c2c11d42d2fd45aa180cfe6c9bf7eb6f9c 100644 (file)
@@ -29,7 +29,7 @@ search-h
 signal-h
 spawn-h
 stdio-h
-stdlib
+stdlib-h
 string
 strings
 sys_file
index 5cf4a7c47cf5c30eb672274352d3498148c59a6d..57775b24d6c410f1ec7e32df150ef50ac72ea5bd 100644 (file)
@@ -8,7 +8,7 @@ lib/pty-private.h
 Depends-on:
 ptsname
 root-uid
-stdlib
+stdlib-h
 configmake
 stat
 
index 4fbab87962d4047daa4d2159693823d305a66b6d..c4864c5d1ade5cb1db8085fa2cf9c58eb4875868 100644 (file)
@@ -6,7 +6,7 @@ lib/ptsname.c
 m4/ptsname.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 ptsname_r       [test $HAVE_PTSNAME = 0]
 
index e29712d21f12d034127f231c021d46faf898e5b7..9ef60e30cfa01be059efbc06858936c9df1662b2 100644 (file)
@@ -6,7 +6,7 @@ lib/ptsname_r.c
 m4/ptsname_r.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 isatty          [test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1]
 stat            [test $HAVE_PTSNAME_R = 0 || test $REPLACE_PTSNAME_R = 1]
index 356a74bdc78c97b70fabd5e59a44b121d2bdd164..a6f425d252975e2e70463f27d00989b64e64748c 100644 (file)
@@ -6,7 +6,7 @@ lib/putenv.c
 m4/putenv.m4
 
 Depends-on:
-stdlib
+stdlib-h
 environ         [test $REPLACE_PUTENV = 1]
 free-posix      [test $REPLACE_PUTENV = 1]
 malloc-posix    [test $REPLACE_PUTENV = 1]
index 80630785621bb46736b9e176bc129783ed10ff97..22f51f895f6e7ad4d02cfffa362d4ce0d6bb91a9 100644 (file)
@@ -8,7 +8,7 @@ m4/qsort_r.m4
 
 Depends-on:
 extensions
-stdlib
+stdlib-h
 
 configure.ac:
 gl_FUNC_QSORT_R
index 69dd70c4894762920fbf80ea48fb141987986fa9..d6b8c4ad7c6e8dbd8bfc6b4ed25899f3d4268ff9 100644 (file)
@@ -12,7 +12,7 @@ lib/rand.c
 m4/rand.m4
 
 Depends-on:
-stdlib
+stdlib-h
 random          [test $REPLACE_RAND = 1]
 
 configure.ac:
index 4cb3631b15cea821391271f8dbbece3ff24020d6..af7df17383a258f6a16d9057069ed271bfe4dda6 100644 (file)
@@ -6,7 +6,7 @@ lib/random.c
 m4/random.m4
 
 Depends-on:
-stdlib
+stdlib-h
 libc-config     [test $HAVE_RANDOM = 0 || test $REPLACE_RANDOM = 1 || test $REPLACE_INITSTATE = 1 || test $REPLACE_SETSTATE = 1]
 lock            [test $HAVE_RANDOM = 0 || test $REPLACE_RANDOM = 1 || test $REPLACE_INITSTATE = 1 || test $REPLACE_SETSTATE = 1]
 stdint-h        [test $HAVE_RANDOM = 0 || test $REPLACE_RANDOM = 1 || test $REPLACE_INITSTATE = 1 || test $REPLACE_SETSTATE = 1]
index b30204b6da21c64d6d1b4abf833afedfbdf95609..607fcb13b761d572c5d1632a2d08b6a66a3e0c53 100644 (file)
@@ -8,7 +8,7 @@ m4/random_r.m4
 Depends-on:
 c99
 libc-config     [test $HAVE_RANDOM_R = 0 || test $REPLACE_RANDOM_R = 1]
-stdlib
+stdlib-h
 stdint-h
 
 configure.ac:
index b8bfa1c964e9b239218754247b3f0422dc12577d..138da8c52a88681f4e9d04f3b9d4384798d76a78 100644 (file)
@@ -9,7 +9,7 @@ m4/malloc.m4
 Depends-on:
 extensions-aix
 stdckdint-h          [test $REPLACE_REALLOC_FOR_REALLOC_POSIX != 0]
-stdlib
+stdlib-h
 
 configure.ac:
 gl_FUNC_REALLOC_POSIX
index f2d1472ba11738891f3cc8ea98141f953f6d9c85..4cd87cca4a102ed9dfef218e36a18f1965c33de9 100644 (file)
@@ -11,7 +11,7 @@ Depends-on:
 extensions
 realloc-posix  [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1]
 stdckdint-h    [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1]
-stdlib
+stdlib-h
 
 configure.ac:
 gl_FUNC_REALLOCARRAY
index c307e2c536fad524c72e02d74131782d62408d82..59a1e605b99c45a2a57c42684b679ee0010ace85 100644 (file)
@@ -73,7 +73,7 @@ stdbool-h
 stddef-h
 stdckdint-h
 stdint-h
-stdlib
+stdlib-h
 string
 sys_stat
 unistd
index 1a55aaac266705779e32667aba06c2b65f4ba9da..63a59e5b3fb1013ab8f255eb6a10a32f85ba1b96 100644 (file)
@@ -6,7 +6,7 @@ lib/rpmatch.c
 m4/rpmatch.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 stdbool-h       [test $HAVE_RPMATCH = 0]
 gettext-h       [test $HAVE_RPMATCH = 0]
index adc82241e117cbbc70a723738b1336e18024526a..cebe3266468692beb7ccaf0b45a2544a2923bfa8 100644 (file)
@@ -17,7 +17,7 @@ fcntl-h
 filename
 raise
 stdbool-h
-stdlib
+stdlib-h
 sys_wait
 unistd
 xalloc
index d322c5e370f08d1ef8eac1b409f78bee1eb97bfd..22bfb24d087cc5535549ac95d62ccb7699cc16d7 100644 (file)
@@ -6,7 +6,7 @@ lib/secure_getenv.c
 m4/secure_getenv.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 
 configure.ac:
index f7d7f6ea919ef5b919d1da61c4014afcbd6c5f7d..26517c0262e84a2b2a0d8723ed5e3dc16a81dd68 100644 (file)
@@ -6,7 +6,7 @@ lib/setenv.c
 m4/setenv.m4
 
 Depends-on:
-stdlib
+stdlib-h
 malloca         [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
 alloca-opt      [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
 malloc-posix    [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]
index ab1e33d0f81b1c223355514ebfb6690cb312ddfa..1e82681dfeb3284ef1c2d4b77914b13aba0bc7d9 100644 (file)
@@ -38,7 +38,7 @@ posix_spawnattr_setsigmask
 posix_spawnattr_setflags
 posix_spawnattr_destroy
 stdbool-h
-stdlib
+stdlib-h
 unistd
 unistd-safer
 wait-process
index bdeae1df61bea697478f7ce197d32701de5864ea..70949bf35d722ee16d8f57e6938a8dbc6ab7a024 100644 (file)
@@ -7,7 +7,7 @@ lib/stack.h
 Depends-on:
 assure
 stdbool-h
-stdlib
+stdlib-h
 xalloc
 
 configure.ac:
index 8dfb87908b1e016f28e0a1db722fe93ac0f9cdfe..9e9066d25f71329b9db33c70ad4490088e7164c7 100644 (file)
@@ -7,7 +7,7 @@ lib/stack-trace.c
 m4/stack-trace.m4
 
 Depends-on:
-stdlib
+stdlib-h
 execinfo
 
 configure.ac-early:
index e1fe525665a99fd11e99dcdbb878961aca8bc416..c2792eb5757deb60c4db4baf79dec09fc83e964a 100644 (file)
 Description:
 A GNU-like <stdlib.h>.
 
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'stdlib-h' instead.
+
 Files:
-lib/stdlib.c
-lib/stdlib.in.h
-m4/stdlib_h.m4
-m4/locale-en.m4
-m4/codeset.m4
 
 Depends-on:
-gen-header
-extern-inline
-include_next
-snippet/arg-nonnull
-snippet/c++defs
-snippet/warn-on-use
-snippet/_Noreturn
-stddef-h
-unistd
+stdlib-h
 
 configure.ac:
-gl_STDLIB_H
-gl_STDLIB_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
 
 Makefile.am:
-BUILT_SOURCES += stdlib.h
-lib_SOURCES += stdlib.c
-
-stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
-  $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
-@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
-       $(gl_V_at)$(SED_HEADER_STDOUT) \
-             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-             -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-             -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-             -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
-             -e 's/@''GNULIB__EXIT''@/$(GNULIB__EXIT)/g' \
-             -e 's/@''GNULIB_ABORT_DEBUG''@/$(GNULIB_ABORT_DEBUG)/g' \
-             -e 's/@''GNULIB_ALIGNED_ALLOC''@/$(GNULIB_ALIGNED_ALLOC)/g' \
-             -e 's/@''GNULIB_ATOLL''@/$(GNULIB_ATOLL)/g' \
-             -e 's/@''GNULIB_CALLOC_GNU''@/$(GNULIB_CALLOC_GNU)/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_POSIX''@/$(GNULIB_FREE_POSIX)/g' \
-             -e 's/@''GNULIB_GETLOADAVG''@/$(GNULIB_GETLOADAVG)/g' \
-             -e 's/@''GNULIB_GETPROGNAME''@/$(GNULIB_GETPROGNAME)/g' \
-             -e 's/@''GNULIB_GETSUBOPT''@/$(GNULIB_GETSUBOPT)/g' \
-             -e 's/@''GNULIB_GRANTPT''@/$(GNULIB_GRANTPT)/g' \
-             -e 's/@''GNULIB_MALLOC_GNU''@/$(GNULIB_MALLOC_GNU)/g' \
-             -e 's/@''GNULIB_MALLOC_POSIX''@/$(GNULIB_MALLOC_POSIX)/g' \
-             -e 's/@''GNULIB_MBSTOWCS''@/$(GNULIB_MBSTOWCS)/g' \
-             -e 's/@''GNULIB_MBTOWC''@/$(GNULIB_MBTOWC)/g' \
-             -e 's/@''GNULIB_MKDTEMP''@/$(GNULIB_MKDTEMP)/g' \
-             -e 's/@''GNULIB_MKOSTEMP''@/$(GNULIB_MKOSTEMP)/g' \
-             -e 's/@''GNULIB_MKOSTEMPS''@/$(GNULIB_MKOSTEMPS)/g' \
-             -e 's/@''GNULIB_MKSTEMP''@/$(GNULIB_MKSTEMP)/g' \
-             -e 's/@''GNULIB_MKSTEMPS''@/$(GNULIB_MKSTEMPS)/g' \
-             -e 's/@''GNULIB_POSIX_MEMALIGN''@/$(GNULIB_POSIX_MEMALIGN)/g' \
-             -e 's/@''GNULIB_POSIX_OPENPT''@/$(GNULIB_POSIX_OPENPT)/g' \
-             -e 's/@''GNULIB_PTSNAME''@/$(GNULIB_PTSNAME)/g' \
-             -e 's/@''GNULIB_PTSNAME_R''@/$(GNULIB_PTSNAME_R)/g' \
-             -e 's/@''GNULIB_PUTENV''@/$(GNULIB_PUTENV)/g' \
-             -e 's/@''GNULIB_QSORT_R''@/$(GNULIB_QSORT_R)/g' \
-             -e 's/@''GNULIB_RAND''@/$(GNULIB_RAND)/g' \
-             -e 's/@''GNULIB_RANDOM''@/$(GNULIB_RANDOM)/g' \
-             -e 's/@''GNULIB_RANDOM_R''@/$(GNULIB_RANDOM_R)/g' \
-             -e 's/@''GNULIB_REALLOC_POSIX''@/$(GNULIB_REALLOC_POSIX)/g' \
-             -e 's/@''GNULIB_REALLOCARRAY''@/$(GNULIB_REALLOCARRAY)/g' \
-             -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \
-             -e 's/@''GNULIB_RPMATCH''@/$(GNULIB_RPMATCH)/g' \
-             -e 's/@''GNULIB_SECURE_GETENV''@/$(GNULIB_SECURE_GETENV)/g' \
-             -e 's/@''GNULIB_SETENV''@/$(GNULIB_SETENV)/g' \
-             -e 's/@''GNULIB_STACK_TRACE''@/$(GNULIB_STACK_TRACE)/g' \
-             -e 's/@''GNULIB_STRTOD''@/$(GNULIB_STRTOD)/g' \
-             -e 's/@''GNULIB_STRTOF''@/$(GNULIB_STRTOF)/g' \
-             -e 's/@''GNULIB_STRTOL''@/$(GNULIB_STRTOL)/g' \
-             -e 's/@''GNULIB_STRTOLD''@/$(GNULIB_STRTOLD)/g' \
-             -e 's/@''GNULIB_STRTOLL''@/$(GNULIB_STRTOLL)/g' \
-             -e 's/@''GNULIB_STRTOUL''@/$(GNULIB_STRTOUL)/g' \
-             -e 's/@''GNULIB_STRTOULL''@/$(GNULIB_STRTOULL)/g' \
-             -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GNULIB_SYSTEM_POSIX)/g' \
-             -e 's/@''GNULIB_UNLOCKPT''@/$(GNULIB_UNLOCKPT)/g' \
-             -e 's/@''GNULIB_UNSETENV''@/$(GNULIB_UNSETENV)/g' \
-             -e 's/@''GNULIB_WCTOMB''@/$(GNULIB_WCTOMB)/g' \
-             -e 's/@''GNULIB_MDA_ECVT''@/$(GNULIB_MDA_ECVT)/g' \
-             -e 's/@''GNULIB_MDA_FCVT''@/$(GNULIB_MDA_FCVT)/g' \
-             -e 's/@''GNULIB_MDA_GCVT''@/$(GNULIB_MDA_GCVT)/g' \
-             -e 's/@''GNULIB_MDA_MKTEMP''@/$(GNULIB_MDA_MKTEMP)/g' \
-             -e 's/@''GNULIB_MDA_PUTENV''@/$(GNULIB_MDA_PUTENV)/g' \
-             < $(srcdir)/stdlib.in.h > $@-t1
-       $(AM_V_at)sed \
-             -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
-             -e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \
-             -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
-             -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
-             -e 's|@''HAVE_DECL_ECVT''@|$(HAVE_DECL_ECVT)|g' \
-             -e 's|@''HAVE_DECL_FCVT''@|$(HAVE_DECL_FCVT)|g' \
-             -e 's|@''HAVE_DECL_GCVT''@|$(HAVE_DECL_GCVT)|g' \
-             -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
-             -e 's|@''HAVE_DECL_PROGRAM_INVOCATION_NAME''@|$(HAVE_DECL_PROGRAM_INVOCATION_NAME)|g' \
-             -e 's|@''HAVE_GETPROGNAME''@|$(HAVE_GETPROGNAME)|g' \
-             -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
-             -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
-             -e 's|@''HAVE_INITSTATE''@|$(HAVE_INITSTATE)|g' \
-             -e 's|@''HAVE_DECL_INITSTATE''@|$(HAVE_DECL_INITSTATE)|g' \
-             -e 's|@''HAVE_MBTOWC''@|$(HAVE_MBTOWC)|g' \
-             -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
-             -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
-             -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
-             -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
-             -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
-             -e 's|@''HAVE_POSIX_MEMALIGN''@|$(HAVE_POSIX_MEMALIGN)|g' \
-             -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \
-             -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
-             -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \
-             -e 's|@''HAVE_QSORT_R''@|$(HAVE_QSORT_R)|g' \
-             -e 's|@''HAVE_RANDOM''@|$(HAVE_RANDOM)|g' \
-             -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
-             -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
-             -e 's|@''HAVE_REALLOCARRAY''@|$(HAVE_REALLOCARRAY)|g' \
-             -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
-             -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
-             -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \
-             -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \
-             -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \
-             -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \
-             -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
-             -e 's|@''HAVE_STRTOF''@|$(HAVE_STRTOF)|g' \
-             -e 's|@''HAVE_STRTOL''@|$(HAVE_STRTOL)|g' \
-             -e 's|@''HAVE_STRTOLD''@|$(HAVE_STRTOLD)|g' \
-             -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
-             -e 's|@''HAVE_STRTOUL''@|$(HAVE_STRTOUL)|g' \
-             -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
-             -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
-             -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
-             -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
-             -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \
-             < $@-t1 > $@-t2
-       $(AM_V_at)sed \
-             -e 's|@''REPLACE__EXIT''@|$(REPLACE__EXIT)|g' \
-             -e 's|@''REPLACE_ABORT''@|$(REPLACE_ABORT)|g' \
-             -e 's|@''REPLACE_ALIGNED_ALLOC''@|$(REPLACE_ALIGNED_ALLOC)|g' \
-             -e 's|@''REPLACE_CALLOC_FOR_CALLOC_GNU''@|$(REPLACE_CALLOC_FOR_CALLOC_GNU)|g' \
-             -e 's|@''REPLACE_CALLOC_FOR_CALLOC_POSIX''@|$(REPLACE_CALLOC_FOR_CALLOC_POSIX)|g' \
-             -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
-             -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
-             -e 's|@''REPLACE_GETLOADAVG''@|$(REPLACE_GETLOADAVG)|g' \
-             -e 's|@''REPLACE_GETPROGNAME''@|$(REPLACE_GETPROGNAME)|g' \
-             -e 's|@''REPLACE_GETSUBOPT''@|$(REPLACE_GETSUBOPT)|g' \
-             -e 's|@''REPLACE_INITSTATE''@|$(REPLACE_INITSTATE)|g' \
-             -e 's|@''REPLACE_MALLOC_FOR_MALLOC_GNU''@|$(REPLACE_MALLOC_FOR_MALLOC_GNU)|g' \
-             -e 's|@''REPLACE_MALLOC_FOR_MALLOC_POSIX''@|$(REPLACE_MALLOC_FOR_MALLOC_POSIX)|g' \
-             -e 's|@''REPLACE_MB_CUR_MAX''@|$(REPLACE_MB_CUR_MAX)|g' \
-             -e 's|@''REPLACE_MBSTOWCS''@|$(REPLACE_MBSTOWCS)|g' \
-             -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \
-             -e 's|@''REPLACE_MKOSTEMP''@|$(REPLACE_MKOSTEMP)|g' \
-             -e 's|@''REPLACE_MKOSTEMPS''@|$(REPLACE_MKOSTEMPS)|g' \
-             -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
-             -e 's|@''REPLACE_POSIX_MEMALIGN''@|$(REPLACE_POSIX_MEMALIGN)|g' \
-             -e 's|@''REPLACE_POSIX_OPENPT''@|$(REPLACE_POSIX_OPENPT)|g' \
-             -e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \
-             -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \
-             -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
-             -e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \
-             -e 's|@''REPLACE_RAND''@|$(REPLACE_RAND)|g' \
-             -e 's|@''REPLACE_RANDOM''@|$(REPLACE_RANDOM)|g' \
-             -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \
-             -e 's|@''REPLACE_REALLOC_FOR_REALLOC_POSIX''@|$(REPLACE_REALLOC_FOR_REALLOC_POSIX)|g' \
-             -e 's|@''REPLACE_REALLOCARRAY''@|$(REPLACE_REALLOCARRAY)|g' \
-             -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
-             -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
-             -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \
-             -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
-             -e 's|@''REPLACE_STRTOF''@|$(REPLACE_STRTOF)|g' \
-             -e 's|@''REPLACE_STRTOL''@|$(REPLACE_STRTOL)|g' \
-             -e 's|@''REPLACE_STRTOLD''@|$(REPLACE_STRTOLD)|g' \
-             -e 's|@''REPLACE_STRTOLL''@|$(REPLACE_STRTOLL)|g' \
-             -e 's|@''REPLACE_STRTOUL''@|$(REPLACE_STRTOUL)|g' \
-             -e 's|@''REPLACE_STRTOULL''@|$(REPLACE_STRTOULL)|g' \
-             -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
-             -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \
-             -e 's|@''CAN_PRINT_STACK_TRACE''@|$(CAN_PRINT_STACK_TRACE)|g' \
-             -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-             -e '/definition of _Noreturn/r $(_NORETURN_H)' \
-             -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
-             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
-             < $@-t2 > $@-t3
-       $(AM_V_at)rm -f $@-t1 $@-t2
-       $(AM_V_at)mv $@-t3 $@
-MOSTLYCLEANFILES += stdlib.h stdlib.h-t1 stdlib.h-t2 stdlib.h-t3
 
 Include:
 <stdlib.h>
@@ -199,4 +23,3 @@ License:
 LGPLv2+
 
 Maintainer:
-all
diff --git a/modules/stdlib-c++-tests b/modules/stdlib-c++-tests
deleted file mode 100644 (file)
index 2672dd5..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-Files:
-tests/test-stdlib-c++.cc
-tests/test-stdlib-c++2.cc
-tests/signature.h
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-stdlib-c++
-check_PROGRAMS += test-stdlib-c++
-test_stdlib_c___SOURCES = test-stdlib-c++.cc test-stdlib-c++2.cc
-test_stdlib_c___LDADD = $(LDADD) $(LIBINTL) $(GETLOADAVG_LIBS) $(CLOCK_TIME_LIB) $(EUIDACCESS_LIBGEN) $(GETRANDOM_LIB)
-endif
diff --git a/modules/stdlib-h b/modules/stdlib-h
new file mode 100644 (file)
index 0000000..e1fe525
--- /dev/null
@@ -0,0 +1,202 @@
+Description:
+A GNU-like <stdlib.h>.
+
+Files:
+lib/stdlib.c
+lib/stdlib.in.h
+m4/stdlib_h.m4
+m4/locale-en.m4
+m4/codeset.m4
+
+Depends-on:
+gen-header
+extern-inline
+include_next
+snippet/arg-nonnull
+snippet/c++defs
+snippet/warn-on-use
+snippet/_Noreturn
+stddef-h
+unistd
+
+configure.ac:
+gl_STDLIB_H
+gl_STDLIB_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += stdlib.h
+lib_SOURCES += stdlib.c
+
+stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
+  $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
+@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
+       $(gl_V_at)$(SED_HEADER_STDOUT) \
+             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+             -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+             -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+             -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
+             -e 's/@''GNULIB__EXIT''@/$(GNULIB__EXIT)/g' \
+             -e 's/@''GNULIB_ABORT_DEBUG''@/$(GNULIB_ABORT_DEBUG)/g' \
+             -e 's/@''GNULIB_ALIGNED_ALLOC''@/$(GNULIB_ALIGNED_ALLOC)/g' \
+             -e 's/@''GNULIB_ATOLL''@/$(GNULIB_ATOLL)/g' \
+             -e 's/@''GNULIB_CALLOC_GNU''@/$(GNULIB_CALLOC_GNU)/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_POSIX''@/$(GNULIB_FREE_POSIX)/g' \
+             -e 's/@''GNULIB_GETLOADAVG''@/$(GNULIB_GETLOADAVG)/g' \
+             -e 's/@''GNULIB_GETPROGNAME''@/$(GNULIB_GETPROGNAME)/g' \
+             -e 's/@''GNULIB_GETSUBOPT''@/$(GNULIB_GETSUBOPT)/g' \
+             -e 's/@''GNULIB_GRANTPT''@/$(GNULIB_GRANTPT)/g' \
+             -e 's/@''GNULIB_MALLOC_GNU''@/$(GNULIB_MALLOC_GNU)/g' \
+             -e 's/@''GNULIB_MALLOC_POSIX''@/$(GNULIB_MALLOC_POSIX)/g' \
+             -e 's/@''GNULIB_MBSTOWCS''@/$(GNULIB_MBSTOWCS)/g' \
+             -e 's/@''GNULIB_MBTOWC''@/$(GNULIB_MBTOWC)/g' \
+             -e 's/@''GNULIB_MKDTEMP''@/$(GNULIB_MKDTEMP)/g' \
+             -e 's/@''GNULIB_MKOSTEMP''@/$(GNULIB_MKOSTEMP)/g' \
+             -e 's/@''GNULIB_MKOSTEMPS''@/$(GNULIB_MKOSTEMPS)/g' \
+             -e 's/@''GNULIB_MKSTEMP''@/$(GNULIB_MKSTEMP)/g' \
+             -e 's/@''GNULIB_MKSTEMPS''@/$(GNULIB_MKSTEMPS)/g' \
+             -e 's/@''GNULIB_POSIX_MEMALIGN''@/$(GNULIB_POSIX_MEMALIGN)/g' \
+             -e 's/@''GNULIB_POSIX_OPENPT''@/$(GNULIB_POSIX_OPENPT)/g' \
+             -e 's/@''GNULIB_PTSNAME''@/$(GNULIB_PTSNAME)/g' \
+             -e 's/@''GNULIB_PTSNAME_R''@/$(GNULIB_PTSNAME_R)/g' \
+             -e 's/@''GNULIB_PUTENV''@/$(GNULIB_PUTENV)/g' \
+             -e 's/@''GNULIB_QSORT_R''@/$(GNULIB_QSORT_R)/g' \
+             -e 's/@''GNULIB_RAND''@/$(GNULIB_RAND)/g' \
+             -e 's/@''GNULIB_RANDOM''@/$(GNULIB_RANDOM)/g' \
+             -e 's/@''GNULIB_RANDOM_R''@/$(GNULIB_RANDOM_R)/g' \
+             -e 's/@''GNULIB_REALLOC_POSIX''@/$(GNULIB_REALLOC_POSIX)/g' \
+             -e 's/@''GNULIB_REALLOCARRAY''@/$(GNULIB_REALLOCARRAY)/g' \
+             -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \
+             -e 's/@''GNULIB_RPMATCH''@/$(GNULIB_RPMATCH)/g' \
+             -e 's/@''GNULIB_SECURE_GETENV''@/$(GNULIB_SECURE_GETENV)/g' \
+             -e 's/@''GNULIB_SETENV''@/$(GNULIB_SETENV)/g' \
+             -e 's/@''GNULIB_STACK_TRACE''@/$(GNULIB_STACK_TRACE)/g' \
+             -e 's/@''GNULIB_STRTOD''@/$(GNULIB_STRTOD)/g' \
+             -e 's/@''GNULIB_STRTOF''@/$(GNULIB_STRTOF)/g' \
+             -e 's/@''GNULIB_STRTOL''@/$(GNULIB_STRTOL)/g' \
+             -e 's/@''GNULIB_STRTOLD''@/$(GNULIB_STRTOLD)/g' \
+             -e 's/@''GNULIB_STRTOLL''@/$(GNULIB_STRTOLL)/g' \
+             -e 's/@''GNULIB_STRTOUL''@/$(GNULIB_STRTOUL)/g' \
+             -e 's/@''GNULIB_STRTOULL''@/$(GNULIB_STRTOULL)/g' \
+             -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GNULIB_SYSTEM_POSIX)/g' \
+             -e 's/@''GNULIB_UNLOCKPT''@/$(GNULIB_UNLOCKPT)/g' \
+             -e 's/@''GNULIB_UNSETENV''@/$(GNULIB_UNSETENV)/g' \
+             -e 's/@''GNULIB_WCTOMB''@/$(GNULIB_WCTOMB)/g' \
+             -e 's/@''GNULIB_MDA_ECVT''@/$(GNULIB_MDA_ECVT)/g' \
+             -e 's/@''GNULIB_MDA_FCVT''@/$(GNULIB_MDA_FCVT)/g' \
+             -e 's/@''GNULIB_MDA_GCVT''@/$(GNULIB_MDA_GCVT)/g' \
+             -e 's/@''GNULIB_MDA_MKTEMP''@/$(GNULIB_MDA_MKTEMP)/g' \
+             -e 's/@''GNULIB_MDA_PUTENV''@/$(GNULIB_MDA_PUTENV)/g' \
+             < $(srcdir)/stdlib.in.h > $@-t1
+       $(AM_V_at)sed \
+             -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
+             -e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \
+             -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
+             -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
+             -e 's|@''HAVE_DECL_ECVT''@|$(HAVE_DECL_ECVT)|g' \
+             -e 's|@''HAVE_DECL_FCVT''@|$(HAVE_DECL_FCVT)|g' \
+             -e 's|@''HAVE_DECL_GCVT''@|$(HAVE_DECL_GCVT)|g' \
+             -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
+             -e 's|@''HAVE_DECL_PROGRAM_INVOCATION_NAME''@|$(HAVE_DECL_PROGRAM_INVOCATION_NAME)|g' \
+             -e 's|@''HAVE_GETPROGNAME''@|$(HAVE_GETPROGNAME)|g' \
+             -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
+             -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
+             -e 's|@''HAVE_INITSTATE''@|$(HAVE_INITSTATE)|g' \
+             -e 's|@''HAVE_DECL_INITSTATE''@|$(HAVE_DECL_INITSTATE)|g' \
+             -e 's|@''HAVE_MBTOWC''@|$(HAVE_MBTOWC)|g' \
+             -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
+             -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
+             -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
+             -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
+             -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
+             -e 's|@''HAVE_POSIX_MEMALIGN''@|$(HAVE_POSIX_MEMALIGN)|g' \
+             -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \
+             -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
+             -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \
+             -e 's|@''HAVE_QSORT_R''@|$(HAVE_QSORT_R)|g' \
+             -e 's|@''HAVE_RANDOM''@|$(HAVE_RANDOM)|g' \
+             -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
+             -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
+             -e 's|@''HAVE_REALLOCARRAY''@|$(HAVE_REALLOCARRAY)|g' \
+             -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
+             -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
+             -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \
+             -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \
+             -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \
+             -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \
+             -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
+             -e 's|@''HAVE_STRTOF''@|$(HAVE_STRTOF)|g' \
+             -e 's|@''HAVE_STRTOL''@|$(HAVE_STRTOL)|g' \
+             -e 's|@''HAVE_STRTOLD''@|$(HAVE_STRTOLD)|g' \
+             -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
+             -e 's|@''HAVE_STRTOUL''@|$(HAVE_STRTOUL)|g' \
+             -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
+             -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
+             -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
+             -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
+             -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \
+             < $@-t1 > $@-t2
+       $(AM_V_at)sed \
+             -e 's|@''REPLACE__EXIT''@|$(REPLACE__EXIT)|g' \
+             -e 's|@''REPLACE_ABORT''@|$(REPLACE_ABORT)|g' \
+             -e 's|@''REPLACE_ALIGNED_ALLOC''@|$(REPLACE_ALIGNED_ALLOC)|g' \
+             -e 's|@''REPLACE_CALLOC_FOR_CALLOC_GNU''@|$(REPLACE_CALLOC_FOR_CALLOC_GNU)|g' \
+             -e 's|@''REPLACE_CALLOC_FOR_CALLOC_POSIX''@|$(REPLACE_CALLOC_FOR_CALLOC_POSIX)|g' \
+             -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
+             -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
+             -e 's|@''REPLACE_GETLOADAVG''@|$(REPLACE_GETLOADAVG)|g' \
+             -e 's|@''REPLACE_GETPROGNAME''@|$(REPLACE_GETPROGNAME)|g' \
+             -e 's|@''REPLACE_GETSUBOPT''@|$(REPLACE_GETSUBOPT)|g' \
+             -e 's|@''REPLACE_INITSTATE''@|$(REPLACE_INITSTATE)|g' \
+             -e 's|@''REPLACE_MALLOC_FOR_MALLOC_GNU''@|$(REPLACE_MALLOC_FOR_MALLOC_GNU)|g' \
+             -e 's|@''REPLACE_MALLOC_FOR_MALLOC_POSIX''@|$(REPLACE_MALLOC_FOR_MALLOC_POSIX)|g' \
+             -e 's|@''REPLACE_MB_CUR_MAX''@|$(REPLACE_MB_CUR_MAX)|g' \
+             -e 's|@''REPLACE_MBSTOWCS''@|$(REPLACE_MBSTOWCS)|g' \
+             -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \
+             -e 's|@''REPLACE_MKOSTEMP''@|$(REPLACE_MKOSTEMP)|g' \
+             -e 's|@''REPLACE_MKOSTEMPS''@|$(REPLACE_MKOSTEMPS)|g' \
+             -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
+             -e 's|@''REPLACE_POSIX_MEMALIGN''@|$(REPLACE_POSIX_MEMALIGN)|g' \
+             -e 's|@''REPLACE_POSIX_OPENPT''@|$(REPLACE_POSIX_OPENPT)|g' \
+             -e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \
+             -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \
+             -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
+             -e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \
+             -e 's|@''REPLACE_RAND''@|$(REPLACE_RAND)|g' \
+             -e 's|@''REPLACE_RANDOM''@|$(REPLACE_RANDOM)|g' \
+             -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \
+             -e 's|@''REPLACE_REALLOC_FOR_REALLOC_POSIX''@|$(REPLACE_REALLOC_FOR_REALLOC_POSIX)|g' \
+             -e 's|@''REPLACE_REALLOCARRAY''@|$(REPLACE_REALLOCARRAY)|g' \
+             -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
+             -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
+             -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \
+             -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
+             -e 's|@''REPLACE_STRTOF''@|$(REPLACE_STRTOF)|g' \
+             -e 's|@''REPLACE_STRTOL''@|$(REPLACE_STRTOL)|g' \
+             -e 's|@''REPLACE_STRTOLD''@|$(REPLACE_STRTOLD)|g' \
+             -e 's|@''REPLACE_STRTOLL''@|$(REPLACE_STRTOLL)|g' \
+             -e 's|@''REPLACE_STRTOUL''@|$(REPLACE_STRTOUL)|g' \
+             -e 's|@''REPLACE_STRTOULL''@|$(REPLACE_STRTOULL)|g' \
+             -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
+             -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \
+             -e 's|@''CAN_PRINT_STACK_TRACE''@|$(CAN_PRINT_STACK_TRACE)|g' \
+             -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+             -e '/definition of _Noreturn/r $(_NORETURN_H)' \
+             -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
+             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
+             < $@-t2 > $@-t3
+       $(AM_V_at)rm -f $@-t1 $@-t2
+       $(AM_V_at)mv $@-t3 $@
+MOSTLYCLEANFILES += stdlib.h stdlib.h-t1 stdlib.h-t2 stdlib.h-t3
+
+Include:
+<stdlib.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
diff --git a/modules/stdlib-h-c++-tests b/modules/stdlib-h-c++-tests
new file mode 100644 (file)
index 0000000..784a370
--- /dev/null
@@ -0,0 +1,20 @@
+Files:
+tests/test-stdlib-h-c++.cc
+tests/test-stdlib-h-c++2.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-stdlib-h-c++
+check_PROGRAMS += test-stdlib-h-c++
+test_stdlib_h_c___SOURCES = test-stdlib-h-c++.cc test-stdlib-h-c++2.cc
+test_stdlib_h_c___LDADD = $(LDADD) $(LIBINTL) $(GETLOADAVG_LIBS) $(CLOCK_TIME_LIB) $(EUIDACCESS_LIBGEN) $(GETRANDOM_LIB)
+endif
diff --git a/modules/stdlib-h-tests b/modules/stdlib-h-tests
new file mode 100644 (file)
index 0000000..234f9dc
--- /dev/null
@@ -0,0 +1,13 @@
+Files:
+tests/test-stdlib-h.c
+tests/test-sys_wait.h
+
+Depends-on:
+assert-h
+stdlib-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-stdlib-h
+check_PROGRAMS += test-stdlib-h
index 3a33a2c941760f6e812e537efc7478e32d81ef19..f07859042141bdfd191615ec73014fe38d085509 100644 (file)
@@ -9,7 +9,7 @@ lib/mkstemp-safer.c
 Depends-on:
 fd-safer-flag
 mkstemp
-stdlib
+stdlib-h
 unistd-safer
 
 configure.ac:
diff --git a/modules/stdlib-tests b/modules/stdlib-tests
deleted file mode 100644 (file)
index f7184bb..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Files:
-tests/test-stdlib.c
-tests/test-sys_wait.h
-
-Depends-on:
-assert-h
-stdlib-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-stdlib
-check_PROGRAMS += test-stdlib
index 79d21a5634eb34928cb944772824b7cbba6e9105..0dfa096cc8212ecf55281e876ded2b21f3bf44b3 100644 (file)
@@ -14,7 +14,7 @@ snippet/arg-nonnull
 snippet/c++defs
 snippet/warn-on-use
 stddef-h
-stdlib
+stdlib-h
 
 configure.ac:
 gl_STRING_H
index e316c4463aed026c724c88fcc7e748cc40ed4eac..c4c10694bb4c80f0288a3bf09ea478dcd41060c8 100644 (file)
@@ -7,7 +7,7 @@ m4/strtod.m4
 m4/ldexp.m4
 
 Depends-on:
-stdlib
+stdlib-h
 strtod-obsolete
 c-ctype         [test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1]
 math-h          [test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1]
index ecc30282f53a4440d69696df80f185af2519c707..dc99102acfe7f54225d0320db209f57e06a7cb8b 100644 (file)
@@ -8,7 +8,7 @@ m4/strtof.m4
 m4/ldexpf.m4
 
 Depends-on:
-stdlib
+stdlib-h
 c-ctype         [test $HAVE_STRTOF = 0 || test $REPLACE_STRTOF = 1]
 math-h          [test $HAVE_STRTOF = 0 || test $REPLACE_STRTOF = 1]
 stdbool-h       [test $HAVE_STRTOF = 0 || test $REPLACE_STRTOF = 1]
index c875b3b354cef63cfb5872536c7a11ae99dc93c9..5e9234d06834d41017984f70840ee067d511cbb5 100644 (file)
@@ -6,7 +6,7 @@ lib/strtol.c
 m4/strtol.m4
 
 Depends-on:
-stdlib
+stdlib-h
 
 configure.ac:
 gl_FUNC_STRTOL
index c0511c9a864f3777798ef000a845ce073bc1d794..2b343e32b4d8f4b4076abb3c269fbb7b2c12cfbc 100644 (file)
@@ -9,7 +9,7 @@ m4/math_h.m4
 m4/ldexpl.m4
 
 Depends-on:
-stdlib
+stdlib-h
 c-ctype         [test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1]
 math-h          [test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1]
 stdbool-h       [test $HAVE_STRTOLD = 0 || test $REPLACE_STRTOLD = 1]
index 5d00f5c3d356bdebd9f6f664cf5a7db917f76e8b..021d1900b4810527bd7517f830cd7aaac89085da 100644 (file)
@@ -8,7 +8,7 @@ m4/strtoll.m4
 
 Depends-on:
 limits-h
-stdlib
+stdlib-h
 
 configure.ac:
 gl_FUNC_STRTOLL
index 484beb6cf345006a00179af4cd9ba683d2f06893..e1928334c1239bbb2a8ace29fe41c0338cb5b56d 100644 (file)
@@ -7,7 +7,7 @@ lib/strtoul.c
 m4/strtoul.m4
 
 Depends-on:
-stdlib
+stdlib-h
 
 configure.ac:
 gl_FUNC_STRTOUL
index 8beb6a7dac11a0cd3bb0b06353cfcd113f793311..d15b64792ecfd02a068b93b7a99c58d18ae47b5a 100644 (file)
@@ -9,7 +9,7 @@ m4/strtoull.m4
 
 Depends-on:
 limits-h
-stdlib
+stdlib-h
 
 configure.ac:
 gl_FUNC_STRTOULL
index 263c76e474064a48c8caa4ce0d31654ebcb55126..384c9a2308b23091fa0b0e993ef59b20e3c3500c 100644 (file)
@@ -8,7 +8,7 @@ m4/sysexits.m4
 Depends-on:
 gen-header
 include_next
-stdlib
+stdlib-h
 
 configure.ac:
 gl_SYSEXITS
index d81d83ea95bd65e72159abfc40d89156909bbfae..102fff537cbd5ca17404a8c73d1f484debb188e7 100644 (file)
@@ -4,7 +4,7 @@ system() function: execute a shell command
 Files:
 
 Depends-on:
-stdlib
+stdlib-h
 sys_wait
 
 configure.ac:
index 2809566cc83dfcb8d4d0531b338dedbceb562bf4..efd82010584ed3815cc7e94afacb8209c7a14cb7 100644 (file)
@@ -15,7 +15,7 @@ gethrxtime
 getrusage
 gettext-h
 gnulib-i18n
-stdlib
+stdlib-h
 sys_time
 sys_times
 xalloc
index d0c646f58e0d3518877611ef46eae59f468bf456..e4a3c165f7333ef8c170c7414e16cf952dd23aab 100644 (file)
@@ -7,7 +7,7 @@ lib/unlockpt.c
 m4/unlockpt.m4
 
 Depends-on:
-stdlib
+stdlib-h
 extensions
 fcntl-h         [test $HAVE_UNLOCKPT = 0]
 ptsname         [test $HAVE_UNLOCKPT = 0]
index 302d97081437332bff5a44fdf2ede09eb12dc8f4..04f906dce5d129e2f1d49e6a9908c52a6a34a550 100644 (file)
@@ -6,7 +6,7 @@ lib/unsetenv.c
 m4/setenv.m4
 
 Depends-on:
-stdlib
+stdlib-h
 unistd          [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]
 environ         [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]
 free-posix      [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]
index dafd71015f82389898907b31fbd4cb291189ac17..177124f39d3124738b2e75890dcc27a6be56f388 100644 (file)
@@ -15,7 +15,7 @@ xalloc-die
 gettext-h
 gnulib-i18n
 stdbool-h
-stdlib
+stdlib-h
 sys_wait
 unistd
 atexit
index a24e25cdf9909b89aba812d909b007fc1ed20917..8b733238f10c1400e6d62e4bd0995abe92cf19cc 100644 (file)
@@ -16,7 +16,7 @@ snippet/warn-on-use
 extern-inline
 inttypes-h-incomplete
 stddef-h
-stdlib
+stdlib-h
 
 configure.ac:
 gl_WCHAR_H
index 10846fa40f589956110b6aad82d3e3f42e74bdb2..c21de3bcc412162cc956b8760ebaaf0ed9698f61 100644 (file)
@@ -7,7 +7,7 @@ lib/wctomb-impl.h
 m4/wctomb.m4
 
 Depends-on:
-stdlib
+stdlib-h
 wchar           [test $REPLACE_WCTOMB = 1]
 mbszero         [test $REPLACE_WCTOMB = 1]
 wcrtomb         [test $REPLACE_WCTOMB = 1]
index cc51a12f62b68d453313ee08d904228382597e4a..a0bdde7424dfdba2793951be8fd870833090c7f2 100644 (file)
@@ -13,7 +13,7 @@ findprog-in
 msvc-nothrow
 stdbool-h
 stdint-h
-stdlib
+stdlib-h
 strpbrk
 unistd
 malloc-posix
index 25a1c741b1032647bcb2e11cb566ed97d9cd70c7..ffdccec12c6154b500be3cb5123b2848b6a0b630 100644 (file)
@@ -12,7 +12,7 @@ unsetenv
 error
 gettext-h
 gnulib-i18n
-stdlib
+stdlib-h
 
 configure.ac:
 
diff --git a/tests/test-stdlib-c++.cc b/tests/test-stdlib-c++.cc
deleted file mode 100644 (file)
index 0b02ca6..0000000
+++ /dev/null
@@ -1,220 +0,0 @@
-/* Test of <stdlib.h> substitute in C++ mode.
-   Copyright (C) 2010-2024 Free Software Foundation, Inc.
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <stdlib.h>
-
-#include "signature.h"
-
-
-#if GNULIB_TEST__EXIT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::_Exit, void, (int));
-#endif
-
-#if GNULIB_TEST_ALIGNED_ALLOC && HAVE_ALIGNED_ALLOC
-SIGNATURE_CHECK (GNULIB_NAMESPACE::aligned_alloc, void *, (size_t, size_t));
-#endif
-
-//SIGNATURE_CHECK (GNULIB_NAMESPACE::atexit, int, (void (*) (void)));
-
-#if GNULIB_TEST_ATOLL
-SIGNATURE_CHECK (GNULIB_NAMESPACE::atoll, long long, (const char *));
-#endif
-
-#if GNULIB_TEST_CALLOC_POSIX
-SIGNATURE_CHECK (GNULIB_NAMESPACE::calloc, void *, (size_t, size_t));
-#endif
-
-#if GNULIB_TEST_CANONICALIZE_FILE_NAME
-SIGNATURE_CHECK (GNULIB_NAMESPACE::canonicalize_file_name, char *,
-                 (const char *));
-#endif
-
-#if GNULIB_TEST_FREE_POSIX
-SIGNATURE_CHECK (GNULIB_NAMESPACE::free, void, (void *));
-#endif
-
-#if GNULIB_TEST_GETLOADAVG
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getloadavg, int, (double[], int));
-#endif
-
-#if GNULIB_TEST_GETSUBOPT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::getsubopt, int,
-                 (char **, char *const *, char **));
-#endif
-
-#if GNULIB_TEST_GRANTPT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::grantpt, int, (int));
-#endif
-
-#if GNULIB_TEST_MALLOC_POSIX
-SIGNATURE_CHECK (GNULIB_NAMESPACE::malloc, void *, (size_t));
-#endif
-
-#if GNULIB_TEST_MBTOWC
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mbtowc, int,
-                 (wchar_t *, const char *, size_t));
-#endif
-
-#if GNULIB_TEST_MBSTOWCS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mbstowcs, size_t,
-                 (wchar_t *, const char *, size_t));
-#endif
-
-#if GNULIB_TEST_MKDTEMP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdtemp, char *, (char *));
-#endif
-
-#if GNULIB_TEST_MKOSTEMP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemp, int, (char *, int));
-#endif
-
-#if GNULIB_TEST_MKOSTEMPS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemps, int, (char *, int, int));
-#endif
-
-#if GNULIB_TEST_MKSTEMP
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemp, int, (char *));
-#endif
-
-#if GNULIB_TEST_MKSTEMPS
-SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemps, int, (char *, int));
-#endif
-
-#if GNULIB_TEST_POSIX_MEMALIGN && HAVE_POSIX_MEMALIGN
-SIGNATURE_CHECK (GNULIB_NAMESPACE::posix_memalign, int,
-                 (void **, size_t, size_t));
-#endif
-
-#if GNULIB_TEST_POSIX_OPENPT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::posix_openpt, int, (int));
-#endif
-
-#if GNULIB_TEST_PTSNAME
-SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname, char *, (int));
-#endif
-
-#if GNULIB_TEST_PTSNAME_R
-SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname_r, int, (int, char *, size_t));
-#endif
-
-#if GNULIB_TEST_PUTENV
-SIGNATURE_CHECK (GNULIB_NAMESPACE::putenv, int, (char *));
-#endif
-
-#if GNULIB_TEST_QSORT_R && !defined __SUNPRO_CC
-SIGNATURE_CHECK (GNULIB_NAMESPACE::qsort_r, void,
-                 (void *, size_t, size_t,
-                  int (*) (void const *, void const *, void *), void *));
-#endif
-
-#if GNULIB_TEST_RANDOM
-SIGNATURE_CHECK (GNULIB_NAMESPACE::random, long, (void));
-#endif
-
-#if GNULIB_TEST_RANDOM
-SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom, void, (unsigned int));
-#endif
-
-#if GNULIB_TEST_RANDOM
-SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate, char *,
-                 (unsigned int, char *, size_t));
-#endif
-
-#if GNULIB_TEST_RANDOM
-SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate, char *, (char *));
-#endif
-
-#if GNULIB_TEST_RANDOM_R
-SIGNATURE_CHECK (GNULIB_NAMESPACE::random_r, int,
-                 (struct random_data *, int32_t *));
-#endif
-
-#if GNULIB_TEST_RANDOM_R
-SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom_r, int,
-                 (unsigned int, struct random_data *));
-#endif
-
-#if GNULIB_TEST_RANDOM_R
-SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate_r, int,
-                 (unsigned int, char *, size_t, struct random_data *));
-#endif
-
-#if GNULIB_TEST_RANDOM_R
-SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate_r, int,
-                 (char *, struct random_data *));
-#endif
-
-#if GNULIB_TEST_REALLOC_POSIX
-SIGNATURE_CHECK (GNULIB_NAMESPACE::realloc, void *, (void *, size_t));
-#endif
-
-#if GNULIB_TEST_REALPATH
-SIGNATURE_CHECK (GNULIB_NAMESPACE::realpath, char *, (const char *, char *));
-#endif
-
-#if GNULIB_TEST_RPMATCH
-SIGNATURE_CHECK (GNULIB_NAMESPACE::rpmatch, int, (const char *));
-#endif
-
-#if GNULIB_TEST_SECURE_GETENV
-SIGNATURE_CHECK (GNULIB_NAMESPACE::secure_getenv, char *, (char const *));
-#endif
-
-#if GNULIB_TEST_SETENV
-SIGNATURE_CHECK (GNULIB_NAMESPACE::setenv, int,
-                 (const char *, const char *, int));
-#endif
-
-#if GNULIB_TEST_STRTOD
-SIGNATURE_CHECK (GNULIB_NAMESPACE::strtod, double, (const char *, char **));
-#endif
-
-#if GNULIB_TEST_STRTOF
-SIGNATURE_CHECK (GNULIB_NAMESPACE::strtof, float, (const char *, char **));
-#endif
-
-#if GNULIB_TEST_STRTOLL
-SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoll, long long,
-                 (const char *, char **, int));
-#endif
-
-#if GNULIB_TEST_STRTOULL
-SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoull, unsigned long long,
-                 (const char *, char **, int));
-#endif
-
-#if GNULIB_TEST_UNLOCKPT
-SIGNATURE_CHECK (GNULIB_NAMESPACE::unlockpt, int, (int));
-#endif
-
-#if GNULIB_TEST_UNSETENV
-SIGNATURE_CHECK (GNULIB_NAMESPACE::unsetenv, int, (const char *));
-#endif
-
-#if GNULIB_TEST_WCTOMB
-SIGNATURE_CHECK (GNULIB_NAMESPACE::wctomb, int, (char *, wchar_t));
-#endif
-
-
-int
-main ()
-{
-}
diff --git a/tests/test-stdlib-c++2.cc b/tests/test-stdlib-c++2.cc
deleted file mode 100644 (file)
index e21343f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Test of <stdlib.h> substitute in C++ mode.
-   Copyright (C) 2010-2024 Free Software Foundation, Inc.
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <cstdlib>
diff --git a/tests/test-stdlib-h-c++.cc b/tests/test-stdlib-h-c++.cc
new file mode 100644 (file)
index 0000000..0b02ca6
--- /dev/null
@@ -0,0 +1,220 @@
+/* Test of <stdlib.h> substitute in C++ mode.
+   Copyright (C) 2010-2024 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <stdlib.h>
+
+#include "signature.h"
+
+
+#if GNULIB_TEST__EXIT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::_Exit, void, (int));
+#endif
+
+#if GNULIB_TEST_ALIGNED_ALLOC && HAVE_ALIGNED_ALLOC
+SIGNATURE_CHECK (GNULIB_NAMESPACE::aligned_alloc, void *, (size_t, size_t));
+#endif
+
+//SIGNATURE_CHECK (GNULIB_NAMESPACE::atexit, int, (void (*) (void)));
+
+#if GNULIB_TEST_ATOLL
+SIGNATURE_CHECK (GNULIB_NAMESPACE::atoll, long long, (const char *));
+#endif
+
+#if GNULIB_TEST_CALLOC_POSIX
+SIGNATURE_CHECK (GNULIB_NAMESPACE::calloc, void *, (size_t, size_t));
+#endif
+
+#if GNULIB_TEST_CANONICALIZE_FILE_NAME
+SIGNATURE_CHECK (GNULIB_NAMESPACE::canonicalize_file_name, char *,
+                 (const char *));
+#endif
+
+#if GNULIB_TEST_FREE_POSIX
+SIGNATURE_CHECK (GNULIB_NAMESPACE::free, void, (void *));
+#endif
+
+#if GNULIB_TEST_GETLOADAVG
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getloadavg, int, (double[], int));
+#endif
+
+#if GNULIB_TEST_GETSUBOPT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::getsubopt, int,
+                 (char **, char *const *, char **));
+#endif
+
+#if GNULIB_TEST_GRANTPT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::grantpt, int, (int));
+#endif
+
+#if GNULIB_TEST_MALLOC_POSIX
+SIGNATURE_CHECK (GNULIB_NAMESPACE::malloc, void *, (size_t));
+#endif
+
+#if GNULIB_TEST_MBTOWC
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mbtowc, int,
+                 (wchar_t *, const char *, size_t));
+#endif
+
+#if GNULIB_TEST_MBSTOWCS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mbstowcs, size_t,
+                 (wchar_t *, const char *, size_t));
+#endif
+
+#if GNULIB_TEST_MKDTEMP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdtemp, char *, (char *));
+#endif
+
+#if GNULIB_TEST_MKOSTEMP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemp, int, (char *, int));
+#endif
+
+#if GNULIB_TEST_MKOSTEMPS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemps, int, (char *, int, int));
+#endif
+
+#if GNULIB_TEST_MKSTEMP
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemp, int, (char *));
+#endif
+
+#if GNULIB_TEST_MKSTEMPS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemps, int, (char *, int));
+#endif
+
+#if GNULIB_TEST_POSIX_MEMALIGN && HAVE_POSIX_MEMALIGN
+SIGNATURE_CHECK (GNULIB_NAMESPACE::posix_memalign, int,
+                 (void **, size_t, size_t));
+#endif
+
+#if GNULIB_TEST_POSIX_OPENPT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::posix_openpt, int, (int));
+#endif
+
+#if GNULIB_TEST_PTSNAME
+SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname, char *, (int));
+#endif
+
+#if GNULIB_TEST_PTSNAME_R
+SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname_r, int, (int, char *, size_t));
+#endif
+
+#if GNULIB_TEST_PUTENV
+SIGNATURE_CHECK (GNULIB_NAMESPACE::putenv, int, (char *));
+#endif
+
+#if GNULIB_TEST_QSORT_R && !defined __SUNPRO_CC
+SIGNATURE_CHECK (GNULIB_NAMESPACE::qsort_r, void,
+                 (void *, size_t, size_t,
+                  int (*) (void const *, void const *, void *), void *));
+#endif
+
+#if GNULIB_TEST_RANDOM
+SIGNATURE_CHECK (GNULIB_NAMESPACE::random, long, (void));
+#endif
+
+#if GNULIB_TEST_RANDOM
+SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom, void, (unsigned int));
+#endif
+
+#if GNULIB_TEST_RANDOM
+SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate, char *,
+                 (unsigned int, char *, size_t));
+#endif
+
+#if GNULIB_TEST_RANDOM
+SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate, char *, (char *));
+#endif
+
+#if GNULIB_TEST_RANDOM_R
+SIGNATURE_CHECK (GNULIB_NAMESPACE::random_r, int,
+                 (struct random_data *, int32_t *));
+#endif
+
+#if GNULIB_TEST_RANDOM_R
+SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom_r, int,
+                 (unsigned int, struct random_data *));
+#endif
+
+#if GNULIB_TEST_RANDOM_R
+SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate_r, int,
+                 (unsigned int, char *, size_t, struct random_data *));
+#endif
+
+#if GNULIB_TEST_RANDOM_R
+SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate_r, int,
+                 (char *, struct random_data *));
+#endif
+
+#if GNULIB_TEST_REALLOC_POSIX
+SIGNATURE_CHECK (GNULIB_NAMESPACE::realloc, void *, (void *, size_t));
+#endif
+
+#if GNULIB_TEST_REALPATH
+SIGNATURE_CHECK (GNULIB_NAMESPACE::realpath, char *, (const char *, char *));
+#endif
+
+#if GNULIB_TEST_RPMATCH
+SIGNATURE_CHECK (GNULIB_NAMESPACE::rpmatch, int, (const char *));
+#endif
+
+#if GNULIB_TEST_SECURE_GETENV
+SIGNATURE_CHECK (GNULIB_NAMESPACE::secure_getenv, char *, (char const *));
+#endif
+
+#if GNULIB_TEST_SETENV
+SIGNATURE_CHECK (GNULIB_NAMESPACE::setenv, int,
+                 (const char *, const char *, int));
+#endif
+
+#if GNULIB_TEST_STRTOD
+SIGNATURE_CHECK (GNULIB_NAMESPACE::strtod, double, (const char *, char **));
+#endif
+
+#if GNULIB_TEST_STRTOF
+SIGNATURE_CHECK (GNULIB_NAMESPACE::strtof, float, (const char *, char **));
+#endif
+
+#if GNULIB_TEST_STRTOLL
+SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoll, long long,
+                 (const char *, char **, int));
+#endif
+
+#if GNULIB_TEST_STRTOULL
+SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoull, unsigned long long,
+                 (const char *, char **, int));
+#endif
+
+#if GNULIB_TEST_UNLOCKPT
+SIGNATURE_CHECK (GNULIB_NAMESPACE::unlockpt, int, (int));
+#endif
+
+#if GNULIB_TEST_UNSETENV
+SIGNATURE_CHECK (GNULIB_NAMESPACE::unsetenv, int, (const char *));
+#endif
+
+#if GNULIB_TEST_WCTOMB
+SIGNATURE_CHECK (GNULIB_NAMESPACE::wctomb, int, (char *, wchar_t));
+#endif
+
+
+int
+main ()
+{
+}
diff --git a/tests/test-stdlib-h-c++2.cc b/tests/test-stdlib-h-c++2.cc
new file mode 100644 (file)
index 0000000..e21343f
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test of <stdlib.h> substitute in C++ mode.
+   Copyright (C) 2010-2024 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cstdlib>
diff --git a/tests/test-stdlib-h.c b/tests/test-stdlib-h.c
new file mode 100644 (file)
index 0000000..7b9cd50
--- /dev/null
@@ -0,0 +1,66 @@
+/* Test of <stdlib.h> substitute.
+   Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2007.  */
+
+#include <config.h>
+
+#include <stdlib.h>
+
+/* Check that EXIT_SUCCESS is 0, per POSIX.  */
+static int exitcode = EXIT_SUCCESS;
+#if EXIT_SUCCESS
+"oops"
+#endif
+
+/* Check for GNU value (not guaranteed by POSIX, but is guaranteed by
+   gnulib).  */
+#if EXIT_FAILURE != 1
+"oops"
+#endif
+
+/* Check that NULL can be passed through varargs as a pointer type,
+   per POSIX 2008.  */
+static_assert (sizeof NULL == sizeof (void *));
+
+#if GNULIB_TEST_SYSTEM_POSIX
+# include "test-sys_wait.h"
+#else
+# define test_sys_wait_macros() 0
+#endif
+
+int
+main (void)
+{
+  /* POSIX:2018 says:
+     "In the POSIX locale the value of MB_CUR_MAX shall be 1."  */
+  /* On Android ≥ 5.0, the default locale is the "C.UTF-8" locale, not the
+     "C" locale.  Furthermore, when you attempt to set the "C" or "POSIX"
+     locale via setlocale(), what you get is a "C" locale with UTF-8 encoding,
+     that is, effectively the "C.UTF-8" locale.  */
+#ifndef __ANDROID__
+  if (MB_CUR_MAX != 1)
+    return 1;
+#endif
+
+  if (MB_CUR_MAX == 0)
+    return 1;
+
+  if (test_sys_wait_macros ())
+    return 2;
+
+  return exitcode;
+}
diff --git a/tests/test-stdlib.c b/tests/test-stdlib.c
deleted file mode 100644 (file)
index 7b9cd50..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/* Test of <stdlib.h> substitute.
-   Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2007.  */
-
-#include <config.h>
-
-#include <stdlib.h>
-
-/* Check that EXIT_SUCCESS is 0, per POSIX.  */
-static int exitcode = EXIT_SUCCESS;
-#if EXIT_SUCCESS
-"oops"
-#endif
-
-/* Check for GNU value (not guaranteed by POSIX, but is guaranteed by
-   gnulib).  */
-#if EXIT_FAILURE != 1
-"oops"
-#endif
-
-/* Check that NULL can be passed through varargs as a pointer type,
-   per POSIX 2008.  */
-static_assert (sizeof NULL == sizeof (void *));
-
-#if GNULIB_TEST_SYSTEM_POSIX
-# include "test-sys_wait.h"
-#else
-# define test_sys_wait_macros() 0
-#endif
-
-int
-main (void)
-{
-  /* POSIX:2018 says:
-     "In the POSIX locale the value of MB_CUR_MAX shall be 1."  */
-  /* On Android ≥ 5.0, the default locale is the "C.UTF-8" locale, not the
-     "C" locale.  Furthermore, when you attempt to set the "C" or "POSIX"
-     locale via setlocale(), what you get is a "C" locale with UTF-8 encoding,
-     that is, effectively the "C.UTF-8" locale.  */
-#ifndef __ANDROID__
-  if (MB_CUR_MAX != 1)
-    return 1;
-#endif
-
-  if (MB_CUR_MAX == 0)
-    return 1;
-
-  if (test_sys_wait_macros ())
-    return 2;
-
-  return exitcode;
-}