1 /* Test of <unistd.h> substitute in C++ mode.
2 Copyright (C) 2010-2011 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::chdir, int, (const char *));
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::chown, int, (const char *, uid_t, gid_t));
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::close, int, (int));
39 SIGNATURE_CHECK (GNULIB_NAMESPACE::dup, int, (int));
42 SIGNATURE_CHECK (GNULIB_NAMESPACE::dup2, int, (int, int));
46 SIGNATURE_CHECK (GNULIB_NAMESPACE::dup3, int, (int, int, int));
49 #if GNULIB_TEST_EUIDACCESS
50 SIGNATURE_CHECK (GNULIB_NAMESPACE::euidaccess, int, (const char *, int));
53 #if GNULIB_TEST_FACCESSAT
54 SIGNATURE_CHECK (GNULIB_NAMESPACE::faccessat, int,
55 (int, char const *, int, int));
58 #if GNULIB_TEST_FCHDIR
59 SIGNATURE_CHECK (GNULIB_NAMESPACE::fchdir, int, (int));
62 #if GNULIB_TEST_FCHOWNAT
63 SIGNATURE_CHECK (GNULIB_NAMESPACE::fchownat, int,
64 (int, char const *, uid_t, gid_t, int));
67 #if GNULIB_TEST_FDATASYNC
68 SIGNATURE_CHECK (GNULIB_NAMESPACE::fdatasync, int, (int));
72 SIGNATURE_CHECK (GNULIB_NAMESPACE::fsync, int, (int));
75 #if GNULIB_TEST_FTRUNCATE
76 SIGNATURE_CHECK (GNULIB_NAMESPACE::ftruncate, int, (int, off_t));
79 #if GNULIB_TEST_GETCWD
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::getcwd, char *, (char *, size_t));
83 #if GNULIB_TEST_GETDOMAINNAME
84 SIGNATURE_CHECK (GNULIB_NAMESPACE::getdomainname, int, (char *, size_t));
87 #if GNULIB_TEST_GETDTABLESIZE
88 SIGNATURE_CHECK (GNULIB_NAMESPACE::getdtablesize, int, (void));
91 #if GNULIB_TEST_GETGROUPS
92 SIGNATURE_CHECK (GNULIB_NAMESPACE::getgroups, int, (int, gid_t *));
95 #if GNULIB_TEST_GETHOSTNAME
96 SIGNATURE_CHECK (GNULIB_NAMESPACE::gethostname, int, (char *, size_t));
99 #if GNULIB_TEST_GETLOGIN
100 SIGNATURE_CHECK (GNULIB_NAMESPACE::getlogin, char *, (void));
103 #if GNULIB_TEST_GETLOGIN_R
104 SIGNATURE_CHECK (GNULIB_NAMESPACE::getlogin_r, int, (char *, size_t));
107 #if GNULIB_TEST_GETPAGESIZE
108 SIGNATURE_CHECK (GNULIB_NAMESPACE::getpagesize, int, (void));
111 #if GNULIB_TEST_GETUSERSHELL
112 SIGNATURE_CHECK (GNULIB_NAMESPACE::getusershell, char *, (void));
115 #if GNULIB_TEST_GETUSERSHELL
116 SIGNATURE_CHECK (GNULIB_NAMESPACE::setusershell, void, (void));
119 #if GNULIB_TEST_GETUSERSHELL
120 SIGNATURE_CHECK (GNULIB_NAMESPACE::endusershell, void, (void));
123 #if GNULIB_TEST_GROUP_MEMBER
124 SIGNATURE_CHECK (GNULIB_NAMESPACE::group_member, int, (gid_t));
127 #if GNULIB_TEST_LCHOWN
128 SIGNATURE_CHECK (GNULIB_NAMESPACE::lchown, int, (char const *, uid_t, gid_t));
132 SIGNATURE_CHECK (GNULIB_NAMESPACE::link, int, (const char *, const char *));
135 #if GNULIB_TEST_LINKAT
136 SIGNATURE_CHECK (GNULIB_NAMESPACE::linkat, int,
137 (int, const char *, int, const char *, int));
140 #if GNULIB_TEST_LSEEK
141 SIGNATURE_CHECK (GNULIB_NAMESPACE::lseek, off_t, (int, off_t, int));
145 SIGNATURE_CHECK (GNULIB_NAMESPACE::pipe, int, (int[2]));
148 #if GNULIB_TEST_PIPE2
149 SIGNATURE_CHECK (GNULIB_NAMESPACE::pipe2, int, (int[2], int));
152 #if GNULIB_TEST_PREAD
153 SIGNATURE_CHECK (GNULIB_NAMESPACE::pread, ssize_t,
154 (int, void *, size_t, off_t));
157 #if GNULIB_TEST_PWRITE
158 SIGNATURE_CHECK (GNULIB_NAMESPACE::pwrite, ssize_t,
159 (int, const void *, size_t, off_t));
162 #if GNULIB_TEST_READLINK
163 SIGNATURE_CHECK (GNULIB_NAMESPACE::readlink, ssize_t,
164 (const char *, char *, size_t));
167 #if GNULIB_TEST_READLINKAT
168 SIGNATURE_CHECK (GNULIB_NAMESPACE::readlinkat, ssize_t,
169 (int, char const *, char *, size_t));
172 #if GNULIB_TEST_RMDIR
173 SIGNATURE_CHECK (GNULIB_NAMESPACE::rmdir, int, (char const *));
176 #if GNULIB_TEST_SLEEP
177 SIGNATURE_CHECK (GNULIB_NAMESPACE::sleep, unsigned int, (unsigned int));
180 #if GNULIB_TEST_SYMLINK
181 SIGNATURE_CHECK (GNULIB_NAMESPACE::symlink, int, (char const *, char const *));
184 #if GNULIB_TEST_SYMLINKAT
185 SIGNATURE_CHECK (GNULIB_NAMESPACE::symlinkat, int,
186 (char const *, int, char const *));
189 #if GNULIB_TEST_TTYNAME_R
190 SIGNATURE_CHECK (GNULIB_NAMESPACE::ttyname_r, int,
191 (int fd, char *buf, size_t buflen));
194 #if GNULIB_TEST_UNLINK
195 SIGNATURE_CHECK (GNULIB_NAMESPACE::unlink, int, (char const *));
198 #if GNULIB_TEST_UNLINKAT
199 SIGNATURE_CHECK (GNULIB_NAMESPACE::unlinkat, int, (int, char const *, int));
202 #if GNULIB_TEST_USLEEP
203 SIGNATURE_CHECK (GNULIB_NAMESPACE::usleep, int, (useconds_t));
206 #if GNULIB_TEST_WRITE
207 SIGNATURE_CHECK (GNULIB_NAMESPACE::write, ssize_t,
208 (int, const void *, size_t));