maint: update copyright
[gnulib.git] / tests / test-unistd-c++.cc
1 /* Test of <unistd.h> substitute in C++ mode.
2    Copyright (C) 2010-2014 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 <unistd.h>
23
24 #include "signature.h"
25
26
27 #if GNULIB_TEST_CHDIR
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::chdir, int, (const char *));
29 #endif
30
31 #if GNULIB_TEST_CHOWN
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::chown, int, (const char *, uid_t, gid_t));
33 #endif
34
35 #if GNULIB_TEST_CLOSE
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::close, int, (int));
37 #endif
38
39 #if GNULIB_TEST_DUP
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::dup, int, (int));
41 #endif
42
43 #if GNULIB_TEST_DUP2
44 SIGNATURE_CHECK (GNULIB_NAMESPACE::dup2, int, (int, int));
45 #endif
46
47 #if GNULIB_TEST_DUP3
48 SIGNATURE_CHECK (GNULIB_NAMESPACE::dup3, int, (int, int, int));
49 #endif
50
51 #if GNULIB_TEST_EUIDACCESS
52 SIGNATURE_CHECK (GNULIB_NAMESPACE::euidaccess, int, (const char *, int));
53 #endif
54
55 #if GNULIB_TEST_FACCESSAT
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::faccessat, int,
57                  (int, char const *, int, int));
58 #endif
59
60 #if GNULIB_TEST_FCHDIR
61 SIGNATURE_CHECK (GNULIB_NAMESPACE::fchdir, int, (int));
62 #endif
63
64 #if GNULIB_TEST_FCHOWNAT
65 SIGNATURE_CHECK (GNULIB_NAMESPACE::fchownat, int,
66                  (int, char const *, uid_t, gid_t, int));
67 #endif
68
69 #if GNULIB_TEST_FDATASYNC
70 SIGNATURE_CHECK (GNULIB_NAMESPACE::fdatasync, int, (int));
71 #endif
72
73 #if GNULIB_TEST_FSYNC
74 SIGNATURE_CHECK (GNULIB_NAMESPACE::fsync, int, (int));
75 #endif
76
77 #if GNULIB_TEST_FTRUNCATE
78 SIGNATURE_CHECK (GNULIB_NAMESPACE::ftruncate, int, (int, off_t));
79 #endif
80
81 #if GNULIB_TEST_GETCWD
82 SIGNATURE_CHECK (GNULIB_NAMESPACE::getcwd, char *, (char *, size_t));
83 #endif
84
85 #if GNULIB_TEST_GETDOMAINNAME
86 SIGNATURE_CHECK (GNULIB_NAMESPACE::getdomainname, int, (char *, size_t));
87 #endif
88
89 #if GNULIB_TEST_GETDTABLESIZE
90 SIGNATURE_CHECK (GNULIB_NAMESPACE::getdtablesize, int, (void));
91 #endif
92
93 #if GNULIB_TEST_GETGROUPS
94 SIGNATURE_CHECK (GNULIB_NAMESPACE::getgroups, int, (int, gid_t *));
95 #endif
96
97 #if GNULIB_TEST_GETHOSTNAME
98 SIGNATURE_CHECK (GNULIB_NAMESPACE::gethostname, int, (char *, size_t));
99 #endif
100
101 #if GNULIB_TEST_GETLOGIN
102 SIGNATURE_CHECK (GNULIB_NAMESPACE::getlogin, char *, (void));
103 #endif
104
105 #if GNULIB_TEST_GETLOGIN_R
106 SIGNATURE_CHECK (GNULIB_NAMESPACE::getlogin_r, int, (char *, size_t));
107 #endif
108
109 #if GNULIB_TEST_GETPAGESIZE
110 SIGNATURE_CHECK (GNULIB_NAMESPACE::getpagesize, int, (void));
111 #endif
112
113 #if GNULIB_TEST_GETUSERSHELL
114 SIGNATURE_CHECK (GNULIB_NAMESPACE::getusershell, char *, (void));
115 #endif
116
117 #if GNULIB_TEST_GETUSERSHELL
118 SIGNATURE_CHECK (GNULIB_NAMESPACE::setusershell, void, (void));
119 #endif
120
121 #if GNULIB_TEST_GETUSERSHELL
122 SIGNATURE_CHECK (GNULIB_NAMESPACE::endusershell, void, (void));
123 #endif
124
125 #if GNULIB_TEST_GROUP_MEMBER
126 SIGNATURE_CHECK (GNULIB_NAMESPACE::group_member, int, (gid_t));
127 #endif
128
129 #if GNULIB_TEST_LCHOWN
130 SIGNATURE_CHECK (GNULIB_NAMESPACE::lchown, int, (char const *, uid_t, gid_t));
131 #endif
132
133 #if GNULIB_TEST_LINK
134 SIGNATURE_CHECK (GNULIB_NAMESPACE::link, int, (const char *, const char *));
135 #endif
136
137 #if GNULIB_TEST_LINKAT
138 SIGNATURE_CHECK (GNULIB_NAMESPACE::linkat, int,
139                  (int, const char *, int, const char *, int));
140 #endif
141
142 #if GNULIB_TEST_LSEEK
143 SIGNATURE_CHECK (GNULIB_NAMESPACE::lseek, off_t, (int, off_t, int));
144 #endif
145
146 #if GNULIB_TEST_PIPE
147 SIGNATURE_CHECK (GNULIB_NAMESPACE::pipe, int, (int[2]));
148 #endif
149
150 #if GNULIB_TEST_PIPE2
151 SIGNATURE_CHECK (GNULIB_NAMESPACE::pipe2, int, (int[2], int));
152 #endif
153
154 #if GNULIB_TEST_PREAD
155 SIGNATURE_CHECK (GNULIB_NAMESPACE::pread, ssize_t,
156                  (int, void *, size_t, off_t));
157 #endif
158
159 #if GNULIB_TEST_PWRITE
160 SIGNATURE_CHECK (GNULIB_NAMESPACE::pwrite, ssize_t,
161                  (int, const void *, size_t, off_t));
162 #endif
163
164 #if GNULIB_TEST_READLINK
165 SIGNATURE_CHECK (GNULIB_NAMESPACE::readlink, ssize_t,
166                  (const char *, char *, size_t));
167 #endif
168
169 #if GNULIB_TEST_READLINKAT
170 SIGNATURE_CHECK (GNULIB_NAMESPACE::readlinkat, ssize_t,
171                  (int, char const *, char *, size_t));
172 #endif
173
174 #if GNULIB_TEST_RMDIR
175 SIGNATURE_CHECK (GNULIB_NAMESPACE::rmdir, int, (char const *));
176 #endif
177
178 #if GNULIB_TEST_SLEEP
179 SIGNATURE_CHECK (GNULIB_NAMESPACE::sleep, unsigned int, (unsigned int));
180 #endif
181
182 #if GNULIB_TEST_SYMLINK
183 SIGNATURE_CHECK (GNULIB_NAMESPACE::symlink, int, (char const *, char const *));
184 #endif
185
186 #if GNULIB_TEST_SYMLINKAT
187 SIGNATURE_CHECK (GNULIB_NAMESPACE::symlinkat, int,
188                  (char const *, int, char const *));
189 #endif
190
191 #if GNULIB_TEST_TTYNAME_R
192 SIGNATURE_CHECK (GNULIB_NAMESPACE::ttyname_r, int,
193                  (int fd, char *buf, size_t buflen));
194 #endif
195
196 #if GNULIB_TEST_UNLINK
197 SIGNATURE_CHECK (GNULIB_NAMESPACE::unlink, int, (char const *));
198 #endif
199
200 #if GNULIB_TEST_UNLINKAT
201 SIGNATURE_CHECK (GNULIB_NAMESPACE::unlinkat, int, (int, char const *, int));
202 #endif
203
204 #if GNULIB_TEST_USLEEP
205 SIGNATURE_CHECK (GNULIB_NAMESPACE::usleep, int, (useconds_t));
206 #endif
207
208 #if GNULIB_TEST_WRITE
209 SIGNATURE_CHECK (GNULIB_NAMESPACE::write, ssize_t,
210                  (int, const void *, size_t));
211 #endif
212
213
214 int
215 main ()
216 {
217 }