>From 22760ce69fa1789e80eb88556cc35c3b97fd1a67 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 May 2017 23:11:12 +0200 Subject: [PATCH 12/16] unistd-c++-tests: Update. * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03. (read): Declare, missing since 2011-04-15. (sethostname): Declare, missing since 2011-12-03. --- ChangeLog | 7 +++++++ tests/test-unistd-c++.cc | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4ba9ee4..41bb58f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2017-05-05 Bruno Haible + unistd-c++-tests: Update. + * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03. + (read): Declare, missing since 2011-04-15. + (sethostname): Declare, missing since 2011-12-03. + +2017-05-05 Bruno Haible + time-c++-tests: Update. * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01. (localtime, gmtime): Declare, missing since 2017-04-30. diff --git a/tests/test-unistd-c++.cc b/tests/test-unistd-c++.cc index f4d6dd3..a19acc8 100644 --- a/tests/test-unistd-c++.cc +++ b/tests/test-unistd-c++.cc @@ -126,6 +126,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::endusershell, void, (void)); SIGNATURE_CHECK (GNULIB_NAMESPACE::group_member, int, (gid_t)); #endif +#if GNULIB_TEST_ISATTY +SIGNATURE_CHECK (GNULIB_NAMESPACE::isatty, int, (int)); +#endif + #if GNULIB_TEST_LCHOWN SIGNATURE_CHECK (GNULIB_NAMESPACE::lchown, int, (char const *, uid_t, gid_t)); #endif @@ -161,6 +165,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::pwrite, ssize_t, (int, const void *, size_t, off_t)); #endif +#if GNULIB_TEST_READ +SIGNATURE_CHECK (GNULIB_NAMESPACE::read, ssize_t, (int, void *, size_t)); +#endif + #if GNULIB_TEST_READLINK SIGNATURE_CHECK (GNULIB_NAMESPACE::readlink, ssize_t, (const char *, char *, size_t)); @@ -175,6 +183,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::readlinkat, ssize_t, SIGNATURE_CHECK (GNULIB_NAMESPACE::rmdir, int, (char const *)); #endif +#if GNULIB_TEST_SETHOSTNAME +SIGNATURE_CHECK (GNULIB_NAMESPACE::sethostname, int, (const char *, size_t)); +#endif + #if GNULIB_TEST_SLEEP SIGNATURE_CHECK (GNULIB_NAMESPACE::sleep, unsigned int, (unsigned int)); #endif -- 2.7.4