New module 'ptsname'.
[gnulib.git] / tests / test-stdlib-c++.cc
1 /* Test of <stdlib.h> substitute in C++ mode.
2    Copyright (C) 2010 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 //SIGNATURE_CHECK (GNULIB_NAMESPACE::atexit, int, (void (*) (void)));
28
29 #if GNULIB_ATOLL
30 SIGNATURE_CHECK (GNULIB_NAMESPACE::atoll, long long, (const char *));
31 #endif
32
33 #if GNULIB_CALLOC_POSIX
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::calloc, void *, (size_t, size_t));
35 #endif
36
37 #if GNULIB_CANONICALIZE_FILE_NAME
38 SIGNATURE_CHECK (GNULIB_NAMESPACE::canonicalize_file_name, char *,
39                  (const char *));
40 #endif
41
42 #if GNULIB_GETLOADAVG
43 SIGNATURE_CHECK (GNULIB_NAMESPACE::getloadavg, int, (double[], int));
44 #endif
45
46 #if GNULIB_GETSUBOPT
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::getsubopt, int,
48                  (char **, char *const *, char **));
49 #endif
50
51 #if GNULIB_MALLOC_POSIX
52 SIGNATURE_CHECK (GNULIB_NAMESPACE::malloc, void *, (size_t));
53 #endif
54
55 #if GNULIB_MKDTEMP
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdtemp, char *, (char *));
57 #endif
58
59 #if GNULIB_MKOSTEMP
60 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemp, int, (char *, int));
61 #endif
62
63 #if GNULIB_MKOSTEMPS
64 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkostemps, int, (char *, int, int));
65 #endif
66
67 #if GNULIB_MKSTEMP
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemp, int, (char *));
69 #endif
70
71 #if GNULIB_MKSTEMPS
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkstemps, int, (char *, int));
73 #endif
74
75 #if GNULIB_PTSNAME
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::ptsname, char *, (int));
77 #endif
78
79 #if GNULIB_PUTENV
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::putenv, int, (char *));
81 #endif
82
83 #if GNULIB_RANDOM_R
84 SIGNATURE_CHECK (GNULIB_NAMESPACE::random_r, int,
85                  (struct random_data *, int32_t *));
86 #endif
87
88 #if GNULIB_RANDOM_R
89 SIGNATURE_CHECK (GNULIB_NAMESPACE::srandom_r, int,
90                  (unsigned int, struct random_data *));
91 #endif
92
93 #if GNULIB_RANDOM_R
94 SIGNATURE_CHECK (GNULIB_NAMESPACE::initstate_r, int,
95                  (unsigned int, char *, size_t, struct random_data *));
96 #endif
97
98 #if GNULIB_RANDOM_R
99 SIGNATURE_CHECK (GNULIB_NAMESPACE::setstate_r, int,
100                  (char *, struct random_data *));
101 #endif
102
103 #if GNULIB_REALLOC_POSIX
104 SIGNATURE_CHECK (GNULIB_NAMESPACE::realloc, void *, (void *, size_t));
105 #endif
106
107 #if GNULIB_REALPATH
108 SIGNATURE_CHECK (GNULIB_NAMESPACE::realpath, char *, (const char *, char *));
109 #endif
110
111 #if GNULIB_RPMATCH
112 SIGNATURE_CHECK (GNULIB_NAMESPACE::rpmatch, int, (const char *));
113 #endif
114
115 #if GNULIB_SETENV
116 SIGNATURE_CHECK (GNULIB_NAMESPACE::setenv, int,
117                  (const char *, const char *, int));
118 #endif
119
120 #if GNULIB_STRTOD
121 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtod, double, (const char *, char **));
122 #endif
123
124 #if GNULIB_STRTOLL
125 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoll, long long,
126                  (const char *, char **, int));
127 #endif
128
129 #if GNULIB_STRTOULL
130 SIGNATURE_CHECK (GNULIB_NAMESPACE::strtoull, unsigned long long,
131                  (const char *, char **, int));
132 #endif
133
134 #if GNULIB_UNSETENV
135 SIGNATURE_CHECK (GNULIB_NAMESPACE::unsetenv, int, (const char *));
136 #endif
137
138
139 int
140 main ()
141 {
142 }