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"
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::_Exit, void, (int));
31 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atexit, int, (void (*) (void)));
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::atoll, long long, (const char *));
37 #if GNULIB_TEST_CALLOC_POSIX
38 SIGNATURE_CHECK (GNULIB_NAMESPACE::calloc, void *, (size_t, size_t));
41 #if GNULIB_TEST_CANONICALIZE_FILE_NAME
42 SIGNATURE_CHECK (GNULIB_NAMESPACE::canonicalize_file_name, char *,
46 #if GNULIB_TEST_GETLOADAVG
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::getloadavg, int, (double[], int));
50 #if GNULIB_TEST_GETSUBOPT
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::getsubopt, int,
52 (char **, char *const *, char **));
55 #if GNULIB_TEST_GRANTPT
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::grantpt, int, (int));
59 #if GNULIB_TEST_MALLOC_POSIX
60 SIGNATURE_CHECK (GNULIB_NAMESPACE::malloc, void *, (size_t));
63 #if GNULIB_TEST_MKDTEMP
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdtemp, char *, (char *));
67 #if GNULIB_TEST_MKOSTEMP
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemp, int, (char *, int));
71 #if GNULIB_TEST_MKOSTEMPS
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemps, int, (char *, int, int));
75 #if GNULIB_TEST_MKSTEMP
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemp, int, (char *));
79 #if GNULIB_TEST_MKSTEMPS
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemps, int, (char *, int));
83 #if GNULIB_TEST_PTSNAME
84 SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname, char *, (int));
87 #if GNULIB_TEST_PUTENV
88 SIGNATURE_CHECK (GNULIB_NAMESPACE::putenv, int, (char *));
91 #if GNULIB_TEST_RANDOM_R
92 SIGNATURE_CHECK (GNULIB_NAMESPACE::random_r, int,
93 (struct random_data *, int32_t *));
96 #if GNULIB_TEST_RANDOM_R
97 SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom_r, int,
98 (unsigned int, struct random_data *));
101 #if GNULIB_TEST_RANDOM_R
102 SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate_r, int,
103 (unsigned int, char *, size_t, struct random_data *));
106 #if GNULIB_TEST_RANDOM_R
107 SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate_r, int,
108 (char *, struct random_data *));
111 #if GNULIB_TEST_REALLOC_POSIX
112 SIGNATURE_CHECK (GNULIB_NAMESPACE::realloc, void *, (void *, size_t));
115 #if GNULIB_TEST_REALPATH
116 SIGNATURE_CHECK (GNULIB_NAMESPACE::realpath, char *, (const char *, char *));
119 #if GNULIB_TEST_RPMATCH
120 SIGNATURE_CHECK (GNULIB_NAMESPACE::rpmatch, int, (const char *));
123 #if GNULIB_TEST_SETENV
124 SIGNATURE_CHECK (GNULIB_NAMESPACE::setenv, int,
125 (const char *, const char *, int));
128 #if GNULIB_TEST_STRTOD
129 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtod, double, (const char *, char **));
132 #if GNULIB_TEST_STRTOLL
133 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoll, long long,
134 (const char *, char **, int));
137 #if GNULIB_TEST_STRTOULL
138 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoull, unsigned long long,
139 (const char *, char **, int));
142 #if GNULIB_TEST_UNLOCKPT
143 SIGNATURE_CHECK (GNULIB_NAMESPACE::unlockpt, int, (int));
146 #if GNULIB_TEST_UNSETENV
147 SIGNATURE_CHECK (GNULIB_NAMESPACE::unsetenv, int, (const char *));