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"
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::dprintf, int, (int, const char *, ...));
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::fclose, int, (FILE *));
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::fflush, int, (FILE *));
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::fopen, FILE *,
41 (const char *, const char *));
44 #if GNULIB_FPRINTF_POSIX || GNULIB_FPRINTF
45 SIGNATURE_CHECK (GNULIB_NAMESPACE::fprintf, int, (FILE *, const char *, ...));
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 *));
61 SIGNATURE_CHECK (GNULIB_NAMESPACE::freopen, FILE *,
62 (const char *, const char *, FILE *));
66 SIGNATURE_CHECK (GNULIB_NAMESPACE::fseek, int, (FILE *, long, int));
70 SIGNATURE_CHECK (GNULIB_NAMESPACE::fseeko, int, (FILE *, off_t, int));
74 SIGNATURE_CHECK (GNULIB_NAMESPACE::ftell, long, (FILE *));
78 SIGNATURE_CHECK (GNULIB_NAMESPACE::ftello, off_t, (FILE *));
82 SIGNATURE_CHECK (GNULIB_NAMESPACE::fwrite, size_t,
83 (const void *, size_t, size_t, FILE *));
87 SIGNATURE_CHECK (GNULIB_NAMESPACE::getdelim, ssize_t,
88 (char **, size_t *, int, FILE *));
92 SIGNATURE_CHECK (GNULIB_NAMESPACE::getline, ssize_t,
93 (char **, size_t *, FILE *));
96 #if GNULIB_OBSTACK_PRINTF || GNULIB_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 *));
106 SIGNATURE_CHECK (GNULIB_NAMESPACE::perror, void, (const char *));
110 SIGNATURE_CHECK (GNULIB_NAMESPACE::popen, FILE *,
111 (const char *, const char *));
114 #if GNULIB_PRINTF_POSIX || GNULIB_PRINTF
115 SIGNATURE_CHECK (GNULIB_NAMESPACE::printf, int, (const char *, ...));
119 SIGNATURE_CHECK (GNULIB_NAMESPACE::putc, int, (int, FILE *));
123 SIGNATURE_CHECK (GNULIB_NAMESPACE::putchar, int, (int));
127 SIGNATURE_CHECK (GNULIB_NAMESPACE::puts, int, (const char *));
131 SIGNATURE_CHECK (GNULIB_NAMESPACE::remove, int, (const char *));
135 SIGNATURE_CHECK (GNULIB_NAMESPACE::rename, int, (const char *, const char *));
139 SIGNATURE_CHECK (GNULIB_NAMESPACE::renameat, int,
140 (int, char const *, int, char const *));
144 SIGNATURE_CHECK (GNULIB_NAMESPACE::snprintf, int,
145 (char *, size_t, const char *, ...));
148 #if GNULIB_SPRINTF_POSIX
149 SIGNATURE_CHECK (GNULIB_NAMESPACE::sprintf, int, (char *, const char *, ...));
153 SIGNATURE_CHECK (GNULIB_NAMESPACE::asprintf, int,
154 (char **, const char *, ...));
155 SIGNATURE_CHECK (GNULIB_NAMESPACE::vasprintf, int,
156 (char **, const char *, va_list));
160 SIGNATURE_CHECK (GNULIB_NAMESPACE::vdprintf, int,
161 (int, const char *, va_list));
164 #if GNULIB_VFPRINTF_POSIX || GNULIB_VFPRINTF
165 SIGNATURE_CHECK (GNULIB_NAMESPACE::vfprintf, int,
166 (FILE *, const char *, va_list));
169 #if GNULIB_VPRINTF_POSIX || GNULIB_VPRINTF
170 SIGNATURE_CHECK (GNULIB_NAMESPACE::vprintf, int, (const char *, va_list));
174 SIGNATURE_CHECK (GNULIB_NAMESPACE::vsnprintf, int,
175 (char *, size_t, const char *, va_list));
178 #if GNULIB_VSPRINTF_POSIX
179 SIGNATURE_CHECK (GNULIB_NAMESPACE::vsprintf, int,
180 (char *, const char *, va_list));