From 265886a27c8bc637b1e1f3e85e68d594bbe5fa2c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 15 Sep 2019 18:56:46 +0200 Subject: access: New module. * lib/unistd.in.h (access): New declaration. * lib/access.c: New file. * m4/access.m4: New file. * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared. (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS. * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS, REPLACE_ACCESS. * modules/access: New file. * tests/test-unistd-c++.cc (access): Check signature. * doc/posix-functions/access.texi: Mention the new module. --- tests/test-unistd-c++.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test-unistd-c++.cc') diff --git a/tests/test-unistd-c++.cc b/tests/test-unistd-c++.cc index e6a6952a5a..8ba7a044a7 100644 --- a/tests/test-unistd-c++.cc +++ b/tests/test-unistd-c++.cc @@ -24,6 +24,10 @@ #include "signature.h" +#if GNULIB_TEST_ACCESS +SIGNATURE_CHECK (GNULIB_NAMESPACE::access, int, (const char *, int)); +#endif + #if GNULIB_TEST_CHDIR SIGNATURE_CHECK (GNULIB_NAMESPACE::chdir, int, (const char *)); #endif -- cgit v1.2.1