usleep tests: Avoid failure due to known Cygwin 3.5.3 bug.
[gnulib.git] / tests / test-sys_stat-c++.cc
blob08b69b14a2c0977037f9db094d7b3824d164d345
1 /* Test of <sys/stat.h> substitute in C++ mode.
2 Copyright (C) 2010-2024 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 <https://www.gnu.org/licenses/>. */
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
19 #define GNULIB_NAMESPACE gnulib
20 #include <config.h>
22 #include <sys/stat.h>
24 #include "signature.h"
27 #if GNULIB_TEST_FCHMODAT
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::fchmodat, int,
29 (int, char const *, mode_t, int));
30 #endif
32 #if GNULIB_TEST_FSTAT
33 SIGNATURE_CHECK (GNULIB_NAMESPACE::fstat, int, (int, struct stat *));
34 #endif
36 #if GNULIB_TEST_FSTATAT
37 SIGNATURE_CHECK (GNULIB_NAMESPACE::fstatat, int,
38 (int, char const *, struct stat *, int));
39 #endif
41 #if GNULIB_TEST_FUTIMENS
42 SIGNATURE_CHECK (GNULIB_NAMESPACE::futimens, int,
43 (int, struct timespec const[2]));
44 #endif
46 #if GNULIB_TEST_GETUMASK
47 SIGNATURE_CHECK (GNULIB_NAMESPACE::getumask, mode_t, (void));
48 #endif
50 #if GNULIB_TEST_LCHMOD
51 SIGNATURE_CHECK (GNULIB_NAMESPACE::lchmod, int, (const char *, mode_t));
52 #endif
54 #if GNULIB_TEST_LSTAT
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::lstat, int, (const char *, struct stat *));
56 #endif
58 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdir, int, (char const *, mode_t));
60 #if GNULIB_TEST_MKDIRAT
61 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdirat, int, (int, char const *, mode_t));
62 #endif
64 #if GNULIB_TEST_MKFIFO
65 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkfifo, int, (char const *, mode_t));
66 #endif
68 #if GNULIB_TEST_MKFIFOAT
69 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkfifoat, int, (int, char const *, mode_t));
70 #endif
72 #if GNULIB_TEST_MKNOD
73 SIGNATURE_CHECK (GNULIB_NAMESPACE::mknod, int, (char const *, mode_t, dev_t));
74 #endif
76 #if GNULIB_TEST_MKNODAT
77 SIGNATURE_CHECK (GNULIB_NAMESPACE::mknodat, int,
78 (int, char const *, mode_t, dev_t));
79 #endif
81 #if GNULIB_TEST_STAT
82 //SIGNATURE_CHECK (GNULIB_NAMESPACE::stat, int, (const char *, struct stat *));
83 #endif
85 #if GNULIB_TEST_UTIMENSAT
86 SIGNATURE_CHECK (GNULIB_NAMESPACE::utimensat, int,
87 (int, char const *, struct timespec const[2], int));
88 #endif
91 int
92 main ()