maint: update almost all copyright ranges to include 2011
[gnulib.git] / tests / test-sys_stat-c++.cc
1 /* Test of <sys/stat.h> substitute in C++ mode.
2    Copyright (C) 2010-2011 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 <sys/stat.h>
23
24 #include "signature.h"
25
26
27 #if GNULIB_TEST_FCHMODAT
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::fchmodat, int,
29                  (int, char const *, mode_t, int));
30 #endif
31
32 SIGNATURE_CHECK (GNULIB_NAMESPACE::fstat, int, (int, struct stat *));
33
34 #if GNULIB_TEST_FSTATAT
35 SIGNATURE_CHECK (GNULIB_NAMESPACE::fstatat, int,
36                  (int, char const *, struct stat *, int));
37 #endif
38
39 #if GNULIB_TEST_FUTIMENS
40 SIGNATURE_CHECK (GNULIB_NAMESPACE::futimens, int,
41                  (int, struct timespec const[2]));
42 #endif
43
44 #if GNULIB_TEST_LCHMOD
45 SIGNATURE_CHECK (GNULIB_NAMESPACE::lchmod, int, (const char *, mode_t));
46 #endif
47
48 #if GNULIB_TEST_LSTAT
49 SIGNATURE_CHECK (GNULIB_NAMESPACE::lstat, int, (const char *, struct stat *));
50 #endif
51
52 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdir, int, (char const *, mode_t));
53
54 #if GNULIB_TEST_MKDIRAT
55 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdirat, int, (int, char const *, mode_t));
56 #endif
57
58 #if GNULIB_TEST_MKFIFO
59 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkfifo, int, (char const *, mode_t));
60 #endif
61
62 #if GNULIB_TEST_MKFIFOAT
63 SIGNATURE_CHECK (GNULIB_NAMESPACE::mkfifoat, int, (int, char const *, mode_t));
64 #endif
65
66 #if GNULIB_TEST_MKNOD
67 SIGNATURE_CHECK (GNULIB_NAMESPACE::mknod, int, (char const *, mode_t, dev_t));
68 #endif
69
70 #if GNULIB_TEST_MKNODAT
71 SIGNATURE_CHECK (GNULIB_NAMESPACE::mknodat, int,
72                  (int, char const *, mode_t, dev_t));
73 #endif
74
75 #if GNULIB_TEST_STAT
76 //SIGNATURE_CHECK (GNULIB_NAMESPACE::stat, int, (const char *, struct stat *));
77 #endif
78
79 #if GNULIB_TEST_UTIMENSAT
80 SIGNATURE_CHECK (GNULIB_NAMESPACE::utimensat, int,
81                  (int, char const *, struct timespec const[2], int));
82 #endif
83
84
85 int
86 main ()
87 {
88 }