1 /* Test of <stdio.h> substitute in C++ mode.
2 Copyright (C) 2010 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
19 #define GNULIB_NAMESPACE gnulib
24 #include "signature.h"
27 #if GNULIB_TEST_DPRINTF
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::dprintf, int, (int, const char *, ...));
31 #if GNULIB_TEST_FCLOSE
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::fclose, int, (FILE *));
35 #if GNULIB_TEST_FFLUSH
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::fflush, int, (FILE *));
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::fopen, FILE *,
41 (const char *, const char *));
44 #if GNULIB_TEST_FPRINTF_POSIX || GNULIB_TEST_FPRINTF
45 SIGNATURE_CHECK (GNULIB_NAMESPACE::fprintf, int, (FILE *, const char *, ...));
48 #if GNULIB_TEST_FPURGE
49 SIGNATURE_CHECK (GNULIB_NAMESPACE::fpurge, int, (FILE *));
53 SIGNATURE_CHECK (GNULIB_NAMESPACE::fputc, int, (int, FILE *));
57 SIGNATURE_CHECK (GNULIB_NAMESPACE::fputs, int, (const char *, FILE *));
60 #if GNULIB_TEST_FREOPEN
61 SIGNATURE_CHECK (GNULIB_NAMESPACE::freopen, FILE *,
62 (const char *, const char *, FILE *));
66 SIGNATURE_CHECK (GNULIB_NAMESPACE::fseek, int, (FILE *, long, int));
69 #if GNULIB_TEST_FSEEKO
70 SIGNATURE_CHECK (GNULIB_NAMESPACE::fseeko, int, (FILE *, off_t, int));
74 SIGNATURE_CHECK (GNULIB_NAMESPACE::ftell, long, (FILE *));
77 #if GNULIB_TEST_FTELLO
78 SIGNATURE_CHECK (GNULIB_NAMESPACE::ftello, off_t, (FILE *));
81 #if GNULIB_TEST_FWRITE
82 SIGNATURE_CHECK (GNULIB_NAMESPACE::fwrite, size_t,
83 (const void *, size_t, size_t, FILE *));
86 #if GNULIB_TEST_GETDELIM
87 SIGNATURE_CHECK (GNULIB_NAMESPACE::getdelim, ssize_t,
88 (char **, size_t *, int, FILE *));
91 #if GNULIB_TEST_GETLINE
92 SIGNATURE_CHECK (GNULIB_NAMESPACE::getline, ssize_t,
93 (char **, size_t *, FILE *));
96 #if GNULIB_TEST_OBSTACK_PRINTF || GNULIB_TEST_OBSTACK_PRINTF_POSIX
97 SIGNATURE_CHECK (GNULIB_NAMESPACE::obstack_printf, int,
98 (struct obstack *, const char *, ...));
99 SIGNATURE_CHECK (GNULIB_NAMESPACE::obstack_vprintf, int,
100 (struct obstack *, const char *, va_list));
103 //SIGNATURE_CHECK (GNULIB_NAMESPACE::pclose, int, (FILE *));
105 #if GNULIB_TEST_PERROR
106 SIGNATURE_CHECK (GNULIB_NAMESPACE::perror, void, (const char *));
109 #if GNULIB_TEST_POPEN
110 SIGNATURE_CHECK (GNULIB_NAMESPACE::popen, FILE *,
111 (const char *, const char *));
114 #if GNULIB_TEST_PRINTF_POSIX || GNULIB_TEST_PRINTF
115 SIGNATURE_CHECK (GNULIB_NAMESPACE::printf, int, (const char *, ...));
119 SIGNATURE_CHECK (GNULIB_NAMESPACE::putc, int, (int, FILE *));
122 #if GNULIB_TEST_PUTCHAR
123 SIGNATURE_CHECK (GNULIB_NAMESPACE::putchar, int, (int));
127 SIGNATURE_CHECK (GNULIB_NAMESPACE::puts, int, (const char *));
130 #if GNULIB_TEST_REMOVE
131 SIGNATURE_CHECK (GNULIB_NAMESPACE::remove, int, (const char *));
134 #if GNULIB_TEST_RENAME
135 SIGNATURE_CHECK (GNULIB_NAMESPACE::rename, int, (const char *, const char *));
138 #if GNULIB_TEST_RENAMEAT
139 SIGNATURE_CHECK (GNULIB_NAMESPACE::renameat, int,
140 (int, char const *, int, char const *));
143 #if GNULIB_TEST_SNPRINTF
144 SIGNATURE_CHECK (GNULIB_NAMESPACE::snprintf, int,
145 (char *, size_t, const char *, ...));
148 #if GNULIB_TEST_SPRINTF_POSIX
149 SIGNATURE_CHECK (GNULIB_NAMESPACE::sprintf, int, (char *, const char *, ...));
152 #if GNULIB_TEST_TMPFILE
153 SIGNATURE_CHECK (GNULIB_NAMESPACE::tmpfile, FILE *, (void));
156 #if GNULIB_TEST_VASPRINTF
157 SIGNATURE_CHECK (GNULIB_NAMESPACE::asprintf, int,
158 (char **, const char *, ...));
159 SIGNATURE_CHECK (GNULIB_NAMESPACE::vasprintf, int,
160 (char **, const char *, va_list));
163 #if GNULIB_TEST_VDPRINTF
164 SIGNATURE_CHECK (GNULIB_NAMESPACE::vdprintf, int,
165 (int, const char *, va_list));
168 #if GNULIB_TEST_VFPRINTF_POSIX || GNULIB_TEST_VFPRINTF
169 SIGNATURE_CHECK (GNULIB_NAMESPACE::vfprintf, int,
170 (FILE *, const char *, va_list));
173 #if GNULIB_TEST_VPRINTF_POSIX || GNULIB_TEST_VPRINTF
174 SIGNATURE_CHECK (GNULIB_NAMESPACE::vprintf, int, (const char *, va_list));
177 #if GNULIB_TEST_VSNPRINTF
178 SIGNATURE_CHECK (GNULIB_NAMESPACE::vsnprintf, int,
179 (char *, size_t, const char *, va_list));
182 #if GNULIB_TEST_VSPRINTF_POSIX
183 SIGNATURE_CHECK (GNULIB_NAMESPACE::vsprintf, int,
184 (char *, const char *, va_list));