1 /* Test of <stdlib.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 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atexit, int, (void (*) (void)));
30 SIGNATURE_CHECK (GNULIB_NAMESPACE::atoll, long long, (const char *));
33 #if GNULIB_CALLOC_POSIX
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::calloc, void *, (size_t, size_t));
37 #if GNULIB_CANONICALIZE_FILE_NAME
38 SIGNATURE_CHECK (GNULIB_NAMESPACE::canonicalize_file_name, char *,
43 SIGNATURE_CHECK (GNULIB_NAMESPACE::getloadavg, int, (double[], int));
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::getsubopt, int,
48 (char **, char *const *, char **));
51 #if GNULIB_MALLOC_POSIX
52 SIGNATURE_CHECK (GNULIB_NAMESPACE::malloc, void *, (size_t));
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdtemp, char *, (char *));
60 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemp, int, (char *, int));
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemps, int, (char *, int, int));
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemp, int, (char *));
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemps, int, (char *, int));
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname, char *, (int));
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::putenv, int, (char *));
84 SIGNATURE_CHECK (GNULIB_NAMESPACE::random_r, int,
85 (struct random_data *, int32_t *));
89 SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom_r, int,
90 (unsigned int, struct random_data *));
94 SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate_r, int,
95 (unsigned int, char *, size_t, struct random_data *));
99 SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate_r, int,
100 (char *, struct random_data *));
103 #if GNULIB_REALLOC_POSIX
104 SIGNATURE_CHECK (GNULIB_NAMESPACE::realloc, void *, (void *, size_t));
108 SIGNATURE_CHECK (GNULIB_NAMESPACE::realpath, char *, (const char *, char *));
112 SIGNATURE_CHECK (GNULIB_NAMESPACE::rpmatch, int, (const char *));
116 SIGNATURE_CHECK (GNULIB_NAMESPACE::setenv, int,
117 (const char *, const char *, int));
121 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtod, double, (const char *, char **));
125 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoll, long long,
126 (const char *, char **, int));
130 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoull, unsigned long long,
131 (const char *, char **, int));
135 SIGNATURE_CHECK (GNULIB_NAMESPACE::unsetenv, int, (const char *));