fix issues with gdb 8.0
[uclibc-ng.git] / include / sys / statvfs.h
blobe5e0c23625a80128cbb976fa462ddff4bd20dd7e
1 /* Definitions for getting information about a filesystem.
2 Copyright (C) 1998, 1999, 2000, 2004 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 #ifndef _SYS_STATVFS_H
20 #define _SYS_STATVFS_H 1
22 #include <features.h>
24 /* Get the system-specific definition of `struct statfs'. */
25 #include <bits/statvfs.h>
27 #ifndef __USE_FILE_OFFSET64
28 # ifndef __fsblkcnt_t_defined
29 typedef __fsblkcnt_t fsblkcnt_t; /* Type to count file system blocks. */
30 # define __fsblkcnt_t_defined
31 # endif
32 # ifndef __fsfilcnt_t_defined
33 typedef __fsfilcnt_t fsfilcnt_t; /* Type to count file system inodes. */
34 # define __fsfilcnt_t_defined
35 # endif
36 #else
37 # ifndef __fsblkcnt_t_defined
38 typedef __fsblkcnt64_t fsblkcnt_t; /* Type to count file system blocks. */
39 # define __fsblkcnt_t_defined
40 # endif
41 # ifndef __fsfilcnt_t_defined
42 typedef __fsfilcnt64_t fsfilcnt_t; /* Type to count file system inodes. */
43 # define __fsfilcnt_t_defined
44 # endif
45 #endif
47 __BEGIN_DECLS
49 /* Return information about the filesystem on which FILE resides. */
50 #ifndef __USE_FILE_OFFSET64
51 extern int statvfs (const char *__restrict __file,
52 struct statvfs *__restrict __buf)
53 __THROW __nonnull ((1, 2));
54 libc_hidden_proto(statvfs)
55 #else
56 # ifdef __REDIRECT_NTH
57 extern int __REDIRECT_NTH (statvfs,
58 (const char *__restrict __file,
59 struct statvfs *__restrict __buf), statvfs64)
60 __nonnull ((1, 2));
61 # else
62 # define statvfs statvfs64
63 # endif
64 #endif
65 #ifdef __USE_LARGEFILE64
66 extern int statvfs64 (const char *__restrict __file,
67 struct statvfs64 *__restrict __buf)
68 __THROW __nonnull ((1, 2));
69 #endif
71 /* Return information about the filesystem containing the file FILDES
72 refers to. */
73 #ifndef __USE_FILE_OFFSET64
74 extern int fstatvfs (int __fildes, struct statvfs *__buf)
75 __THROW __nonnull ((2));
76 libc_hidden_proto(fstatvfs)
77 #else
78 # ifdef __REDIRECT_NTH
79 extern int __REDIRECT_NTH (fstatvfs, (int __fildes, struct statvfs *__buf),
80 fstatvfs64) __nonnull ((2));
81 # else
82 # define fstatvfs fstatvfs64
83 # endif
84 #endif
85 #ifdef __USE_LARGEFILE64
86 extern int fstatvfs64 (int __fildes, struct statvfs64 *__buf)
87 __THROW __nonnull ((2));
88 #endif
90 __END_DECLS
92 #endif /* sys/statvfs.h */