>From b8af9e178a2869c67b3a09b78268483f3d062015 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 May 2017 22:29:18 +0200 Subject: [PATCH 07/16] stdlib-c++-tests: Update. * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since 2011-10-18. (ptsname_r): Declare, missing since 2011-11-07. (qsort_r): Declare, missing since 2014-08-29. (random, srandom, initstate, setstate): Declare, missing since 2012-01-14. (secure_getenv): Declare, missing since 2013-02-05. --- ChangeLog | 11 +++++++++++ tests/test-stdlib-c++.cc | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4fa26a2..1ab7e7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ 2017-05-05 Bruno Haible + stdlib-c++-tests: Update. + * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since + 2011-10-18. + (ptsname_r): Declare, missing since 2011-11-07. + (qsort_r): Declare, missing since 2014-08-29. + (random, srandom, initstate, setstate): Declare, missing since + 2012-01-14. + (secure_getenv): Declare, missing since 2013-02-05. + +2017-05-05 Bruno Haible + stdio-c++-tests: Update. * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18. diff --git a/tests/test-stdlib-c++.cc b/tests/test-stdlib-c++.cc index 45a78f7..a416b85 100644 --- a/tests/test-stdlib-c++.cc +++ b/tests/test-stdlib-c++.cc @@ -85,14 +85,45 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemp, int, (char *)); SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemps, int, (char *, int)); #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 +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 *)); @@ -125,6 +156,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::realpath, char *, (const char *, char *)); 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)); -- 2.7.4