Update.
[glibc.git] / sysdeps / unix / sysv / linux / bits / statfs.h
blobc79c80e84cd055d2dc27f9587326494686dd25f9
1 /* Copyright (C) 1997 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library 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 GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
20 * Never include this file directly; use <sys/statfs.h> instead.
23 #ifndef _BITS_STATFS_H
24 #define _BITS_STATFS_H
26 #include <bits/types.h> /* for __fsid_t and __fsblkcnt_t*/
28 struct statfs
30 int f_type;
31 int f_bsize;
32 #ifndef __USE_FILE_OFFSET64
33 __fsblkcnt_t f_blocks;
34 __fsblkcnt_t f_bfree;
35 __fsblkcnt_t f_bavail;
36 __fsblkcnt_t f_files;
37 __fsblkcnt_t f_ffree;
38 #else
39 __fsblkcnt64_t f_blocks;
40 __fsblkcnt64_t f_bfree;
41 __fsblkcnt64_t f_bavail;
42 __fsblkcnt64_t f_files;
43 __fsblkcnt64_t f_ffree;
44 #endif
45 __fsid_t f_fsid;
46 int f_namelen;
47 int f_spare[6];
50 #ifdef __USE_LARGEFILE64
51 struct statfs64
53 int f_type;
54 int f_bsize;
55 __fsblkcnt64_t f_blocks;
56 __fsblkcnt64_t f_bfree;
57 __fsblkcnt64_t f_bavail;
58 __fsblkcnt64_t f_files;
59 __fsblkcnt64_t f_ffree;
60 __fsid_t f_fsid;
61 int f_namelen;
62 int f_spare[6];
64 #endif
66 #endif /* bits/statfs.h */