Mercurial > gnulib
annotate tests/test-unistd-c++.cc @ 40057:b06060465f09
maint: Run 'make update-copyright'
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 01 Jan 2019 00:25:11 +0100 |
parents | b0ba15e72c3c |
children |
rev | line source |
---|---|
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* Test of <unistd.h> substitute in C++ mode. |
40057
b06060465f09
maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents:
39799
diff
changeset
|
2 Copyright (C) 2010-2019 Free Software Foundation, Inc. |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 This program is free software: you can redistribute it and/or modify |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 it under the terms of the GNU General Public License as published by |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 the Free Software Foundation; either version 3 of the License, or |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 (at your option) any later version. |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 This program is distributed in the hope that it will be useful, |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 GNU General Public License for more details. |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 You should have received a copy of the GNU General Public License |
19190 | 15 along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */ |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 #define GNULIB_NAMESPACE gnulib |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 #include <config.h> |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 #include <unistd.h> |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 #include "signature.h" |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 |
15746 | 27 #if GNULIB_TEST_CHDIR |
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::chdir, int, (const char *)); | |
29 #endif | |
30 | |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
31 #if GNULIB_TEST_CHOWN |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::chown, int, (const char *, uid_t, gid_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
33 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
35 #if GNULIB_TEST_CLOSE |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
36 SIGNATURE_CHECK (GNULIB_NAMESPACE::close, int, (int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
37 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
38 |
15760 | 39 #if GNULIB_TEST_DUP |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::dup, int, (int)); |
15760 | 41 #endif |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
42 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
43 #if GNULIB_TEST_DUP2 |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
44 SIGNATURE_CHECK (GNULIB_NAMESPACE::dup2, int, (int, int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
45 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
46 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
47 #if GNULIB_TEST_DUP3 |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
48 SIGNATURE_CHECK (GNULIB_NAMESPACE::dup3, int, (int, int, int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
49 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
50 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
51 #if GNULIB_TEST_EUIDACCESS |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
52 SIGNATURE_CHECK (GNULIB_NAMESPACE::euidaccess, int, (const char *, int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
53 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
54 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
55 #if GNULIB_TEST_FACCESSAT |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
56 SIGNATURE_CHECK (GNULIB_NAMESPACE::faccessat, int, |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
57 (int, char const *, int, int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
58 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
59 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
60 #if GNULIB_TEST_FCHDIR |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
61 SIGNATURE_CHECK (GNULIB_NAMESPACE::fchdir, int, (int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
62 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
63 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
64 #if GNULIB_TEST_FCHOWNAT |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
65 SIGNATURE_CHECK (GNULIB_NAMESPACE::fchownat, int, |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
66 (int, char const *, uid_t, gid_t, int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
67 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
68 |
15624
77a8f27f1e92
fdatasync: minor improvements
Eric Blake <eblake@redhat.com>
parents:
14733
diff
changeset
|
69 #if GNULIB_TEST_FDATASYNC |
77a8f27f1e92
fdatasync: minor improvements
Eric Blake <eblake@redhat.com>
parents:
14733
diff
changeset
|
70 SIGNATURE_CHECK (GNULIB_NAMESPACE::fdatasync, int, (int)); |
77a8f27f1e92
fdatasync: minor improvements
Eric Blake <eblake@redhat.com>
parents:
14733
diff
changeset
|
71 #endif |
77a8f27f1e92
fdatasync: minor improvements
Eric Blake <eblake@redhat.com>
parents:
14733
diff
changeset
|
72 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
73 #if GNULIB_TEST_FSYNC |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
74 SIGNATURE_CHECK (GNULIB_NAMESPACE::fsync, int, (int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
75 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
76 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
77 #if GNULIB_TEST_FTRUNCATE |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
78 SIGNATURE_CHECK (GNULIB_NAMESPACE::ftruncate, int, (int, off_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
79 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
80 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
81 #if GNULIB_TEST_GETCWD |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
82 SIGNATURE_CHECK (GNULIB_NAMESPACE::getcwd, char *, (char *, size_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
83 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
84 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
85 #if GNULIB_TEST_GETDOMAINNAME |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
86 SIGNATURE_CHECK (GNULIB_NAMESPACE::getdomainname, int, (char *, size_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
87 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
88 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
89 #if GNULIB_TEST_GETDTABLESIZE |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
90 SIGNATURE_CHECK (GNULIB_NAMESPACE::getdtablesize, int, (void)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
91 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
92 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
93 #if GNULIB_TEST_GETGROUPS |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
94 SIGNATURE_CHECK (GNULIB_NAMESPACE::getgroups, int, (int, gid_t *)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
95 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
96 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
97 #if GNULIB_TEST_GETHOSTNAME |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
98 SIGNATURE_CHECK (GNULIB_NAMESPACE::gethostname, int, (char *, size_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
99 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
100 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
101 #if GNULIB_TEST_GETLOGIN |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
102 SIGNATURE_CHECK (GNULIB_NAMESPACE::getlogin, char *, (void)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
103 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
104 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
105 #if GNULIB_TEST_GETLOGIN_R |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
106 SIGNATURE_CHECK (GNULIB_NAMESPACE::getlogin_r, int, (char *, size_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
107 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
108 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
109 #if GNULIB_TEST_GETPAGESIZE |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
110 SIGNATURE_CHECK (GNULIB_NAMESPACE::getpagesize, int, (void)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
111 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
112 |
39799
b0ba15e72c3c
getpass: Move declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
19484
diff
changeset
|
113 #if GNULIB_TEST_GETPASS |
b0ba15e72c3c
getpass: Move declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
19484
diff
changeset
|
114 SIGNATURE_CHECK (GNULIB_NAMESPACE::getpass, char *, (const char *)); |
b0ba15e72c3c
getpass: Move declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
19484
diff
changeset
|
115 #endif |
b0ba15e72c3c
getpass: Move declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
19484
diff
changeset
|
116 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
117 #if GNULIB_TEST_GETUSERSHELL |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
118 SIGNATURE_CHECK (GNULIB_NAMESPACE::getusershell, char *, (void)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
119 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
120 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
121 #if GNULIB_TEST_GETUSERSHELL |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
122 SIGNATURE_CHECK (GNULIB_NAMESPACE::setusershell, void, (void)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
123 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
124 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
125 #if GNULIB_TEST_GETUSERSHELL |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
126 SIGNATURE_CHECK (GNULIB_NAMESPACE::endusershell, void, (void)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
127 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
128 |
14733
8d8a6d8151f4
group-member: Declare function in <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
129 #if GNULIB_TEST_GROUP_MEMBER |
8d8a6d8151f4
group-member: Declare function in <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
130 SIGNATURE_CHECK (GNULIB_NAMESPACE::group_member, int, (gid_t)); |
8d8a6d8151f4
group-member: Declare function in <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
131 #endif |
8d8a6d8151f4
group-member: Declare function in <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
132 |
18866 | 133 #if GNULIB_TEST_ISATTY |
134 SIGNATURE_CHECK (GNULIB_NAMESPACE::isatty, int, (int)); | |
135 #endif | |
136 | |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
137 #if GNULIB_TEST_LCHOWN |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
138 SIGNATURE_CHECK (GNULIB_NAMESPACE::lchown, int, (char const *, uid_t, gid_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
139 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
140 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
141 #if GNULIB_TEST_LINK |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
142 SIGNATURE_CHECK (GNULIB_NAMESPACE::link, int, (const char *, const char *)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
143 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
144 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
145 #if GNULIB_TEST_LINKAT |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
146 SIGNATURE_CHECK (GNULIB_NAMESPACE::linkat, int, |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
147 (int, const char *, int, const char *, int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
148 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
149 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
150 #if GNULIB_TEST_LSEEK |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
151 SIGNATURE_CHECK (GNULIB_NAMESPACE::lseek, off_t, (int, off_t, int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
152 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
153 |
13925
29a686188651
pipe-posix: Make it work in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
13314
diff
changeset
|
154 #if GNULIB_TEST_PIPE |
29a686188651
pipe-posix: Make it work in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
13314
diff
changeset
|
155 SIGNATURE_CHECK (GNULIB_NAMESPACE::pipe, int, (int[2])); |
29a686188651
pipe-posix: Make it work in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
13314
diff
changeset
|
156 #endif |
29a686188651
pipe-posix: Make it work in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
13314
diff
changeset
|
157 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
158 #if GNULIB_TEST_PIPE2 |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
159 SIGNATURE_CHECK (GNULIB_NAMESPACE::pipe2, int, (int[2], int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
160 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
161 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
162 #if GNULIB_TEST_PREAD |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
163 SIGNATURE_CHECK (GNULIB_NAMESPACE::pread, ssize_t, |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
164 (int, void *, size_t, off_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
165 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
166 |
13314
d44fde85189e
New module pwrite.
Peter O'Gorman <pogma@thewrittenword.com>
parents:
13073
diff
changeset
|
167 #if GNULIB_TEST_PWRITE |
d44fde85189e
New module pwrite.
Peter O'Gorman <pogma@thewrittenword.com>
parents:
13073
diff
changeset
|
168 SIGNATURE_CHECK (GNULIB_NAMESPACE::pwrite, ssize_t, |
d44fde85189e
New module pwrite.
Peter O'Gorman <pogma@thewrittenword.com>
parents:
13073
diff
changeset
|
169 (int, const void *, size_t, off_t)); |
d44fde85189e
New module pwrite.
Peter O'Gorman <pogma@thewrittenword.com>
parents:
13073
diff
changeset
|
170 #endif |
d44fde85189e
New module pwrite.
Peter O'Gorman <pogma@thewrittenword.com>
parents:
13073
diff
changeset
|
171 |
18866 | 172 #if GNULIB_TEST_READ |
173 SIGNATURE_CHECK (GNULIB_NAMESPACE::read, ssize_t, (int, void *, size_t)); | |
174 #endif | |
175 | |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
176 #if GNULIB_TEST_READLINK |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
177 SIGNATURE_CHECK (GNULIB_NAMESPACE::readlink, ssize_t, |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
178 (const char *, char *, size_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
179 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
180 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
181 #if GNULIB_TEST_READLINKAT |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
182 SIGNATURE_CHECK (GNULIB_NAMESPACE::readlinkat, ssize_t, |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
183 (int, char const *, char *, size_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
184 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
185 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
186 #if GNULIB_TEST_RMDIR |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
187 SIGNATURE_CHECK (GNULIB_NAMESPACE::rmdir, int, (char const *)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
188 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
189 |
18866 | 190 #if GNULIB_TEST_SETHOSTNAME |
191 SIGNATURE_CHECK (GNULIB_NAMESPACE::sethostname, int, (const char *, size_t)); | |
192 #endif | |
193 | |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
194 #if GNULIB_TEST_SLEEP |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
195 SIGNATURE_CHECK (GNULIB_NAMESPACE::sleep, unsigned int, (unsigned int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
196 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
197 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
198 #if GNULIB_TEST_SYMLINK |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
199 SIGNATURE_CHECK (GNULIB_NAMESPACE::symlink, int, (char const *, char const *)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
200 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
201 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
202 #if GNULIB_TEST_SYMLINKAT |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
203 SIGNATURE_CHECK (GNULIB_NAMESPACE::symlinkat, int, |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
204 (char const *, int, char const *)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
205 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
206 |
18898 | 207 #if GNULIB_TEST_TRUNCATE |
208 SIGNATURE_CHECK (GNULIB_NAMESPACE::truncate, int, (const char *, off_t)); | |
209 #endif | |
210 | |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
211 #if GNULIB_TEST_TTYNAME_R |
13023 | 212 SIGNATURE_CHECK (GNULIB_NAMESPACE::ttyname_r, int, |
213 (int fd, char *buf, size_t buflen)); | |
214 #endif | |
215 | |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
216 #if GNULIB_TEST_UNLINK |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
217 SIGNATURE_CHECK (GNULIB_NAMESPACE::unlink, int, (char const *)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
218 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
219 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
220 #if GNULIB_TEST_UNLINKAT |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
221 SIGNATURE_CHECK (GNULIB_NAMESPACE::unlinkat, int, (int, char const *, int)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
222 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
223 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
224 #if GNULIB_TEST_USLEEP |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
225 SIGNATURE_CHECK (GNULIB_NAMESPACE::usleep, int, (useconds_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
226 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
227 |
13073
03de1efbfdd3
Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents:
13023
diff
changeset
|
228 #if GNULIB_TEST_WRITE |
12973
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
229 SIGNATURE_CHECK (GNULIB_NAMESPACE::write, ssize_t, |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
230 (int, const void *, size_t)); |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
231 #endif |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
232 |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
233 |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
234 int |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
235 main () |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
236 { |
c997d62ee3e9
Tests of module 'unistd' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
237 } |