pty: Activate the signature wrapper of forkpty.
[gnulib.git] / tests / test-stdlib-c++.cc
1 /* Test of <stdlib.h> substitute in C++ mode.
2    Copyright (C) 2010-2013 Free Software Foundation, Inc.
3
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.
8
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.
13
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/>.  */
16
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
18
19 #define GNULIB_NAMESPACE gnulib
20 #include <config.h>
21
22 #include <stdlib.h>
23
24 #include "signature.h"
25
26
27 #if GNULIB_TEST__EXIT
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::_Exit, void, (int));
29 #endif
30
31 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atexit, int, (void (*) (void)));
32
33 #if GNULIB_TEST_ATOLL
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::atoll, long long, (const char *));
35 #endif
36
37 #if GNULIB_TEST_CALLOC_POSIX
38 SIGNATURE_CHECK (GNULIB_NAMESPACE::calloc, void *, (size_t, size_t));
39 #endif
40
41 #if GNULIB_TEST_CANONICALIZE_FILE_NAME
42 SIGNATURE_CHECK (GNULIB_NAMESPACE::canonicalize_file_name, char *,
43                  (const char *));
44 #endif
45
46 #if GNULIB_TEST_GETLOADAVG
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::getloadavg, int, (double[], int));
48 #endif
49
50 #if GNULIB_TEST_GETSUBOPT
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::getsubopt, int,
52                  (char **, char *const *, char **));
53 #endif
54
55 #if GNULIB_TEST_GRANTPT
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::grantpt, int, (int));
57 #endif
58
59 #if GNULIB_TEST_MALLOC_POSIX
60 SIGNATURE_CHECK (GNULIB_NAMESPACE::malloc, void *, (size_t));
61 #endif
62
63 #if GNULIB_TEST_MBTOWC
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::mbtowc, int,
65                  (wchar_t *, const char *, size_t));
66 #endif
67
68 #if GNULIB_TEST_MKDTEMP
69 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdtemp, char *, (char *));
70 #endif
71
72 #if GNULIB_TEST_MKOSTEMP
73 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemp, int, (char *, int));
74 #endif
75
76 #if GNULIB_TEST_MKOSTEMPS
77 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemps, int, (char *, int, int));
78 #endif
79
80 #if GNULIB_TEST_MKSTEMP
81 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemp, int, (char *));
82 #endif
83
84 #if GNULIB_TEST_MKSTEMPS
85 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemps, int, (char *, int));
86 #endif
87
88 #if GNULIB_TEST_PTSNAME
89 SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname, char *, (int));
90 #endif
91
92 #if GNULIB_TEST_PUTENV
93 SIGNATURE_CHECK (GNULIB_NAMESPACE::putenv, int, (char *));
94 #endif
95
96 #if GNULIB_TEST_RANDOM_R
97 SIGNATURE_CHECK (GNULIB_NAMESPACE::random_r, int,
98                  (struct random_data *, int32_t *));
99 #endif
100
101 #if GNULIB_TEST_RANDOM_R
102 SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom_r, int,
103                  (unsigned int, struct random_data *));
104 #endif
105
106 #if GNULIB_TEST_RANDOM_R
107 SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate_r, int,
108                  (unsigned int, char *, size_t, struct random_data *));
109 #endif
110
111 #if GNULIB_TEST_RANDOM_R
112 SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate_r, int,
113                  (char *, struct random_data *));
114 #endif
115
116 #if GNULIB_TEST_REALLOC_POSIX
117 SIGNATURE_CHECK (GNULIB_NAMESPACE::realloc, void *, (void *, size_t));
118 #endif
119
120 #if GNULIB_TEST_REALPATH
121 SIGNATURE_CHECK (GNULIB_NAMESPACE::realpath, char *, (const char *, char *));
122 #endif
123
124 #if GNULIB_TEST_RPMATCH
125 SIGNATURE_CHECK (GNULIB_NAMESPACE::rpmatch, int, (const char *));
126 #endif
127
128 #if GNULIB_TEST_SETENV
129 SIGNATURE_CHECK (GNULIB_NAMESPACE::setenv, int,
130                  (const char *, const char *, int));
131 #endif
132
133 #if GNULIB_TEST_STRTOD
134 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtod, double, (const char *, char **));
135 #endif
136
137 #if GNULIB_TEST_STRTOLL
138 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoll, long long,
139                  (const char *, char **, int));
140 #endif
141
142 #if GNULIB_TEST_STRTOULL
143 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoull, unsigned long long,
144                  (const char *, char **, int));
145 #endif
146
147 #if GNULIB_TEST_UNLOCKPT
148 SIGNATURE_CHECK (GNULIB_NAMESPACE::unlockpt, int, (int));
149 #endif
150
151 #if GNULIB_TEST_UNSETENV
152 SIGNATURE_CHECK (GNULIB_NAMESPACE::unsetenv, int, (const char *));
153 #endif
154
155 #if GNULIB_TEST_WCTOMB
156 SIGNATURE_CHECK (GNULIB_NAMESPACE::wctomb, int, (char *, wchar_t));
157 #endif
158
159
160 int
161 main ()
162 {
163 }