Update.
[glibc.git] / sysdeps / unix / sysv / linux / mips / bits / statfs.h
blob2727b272579124de24934c5404e0c0d0a179a16a
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 long int f_type;
31 #define f_fstyp f_type
32 long int f_bsize;
33 long int f_frsize; /* Fragment size - unsupported */
34 #ifndef __USE_FILE_OFFSET64
35 __fsblkcnt_t f_blocks;
36 __fsblkcnt_t f_bfree;
37 __fsblkcnt_t f_files;
38 __fsblkcnt_t f_ffree;
39 __fsblkcnt_t f_bavail;
40 #else
41 __fsblkcnt64_t f_blocks;
42 __fsblkcnt64_t f_bfree;
43 __fsblkcnt64_t f_files;
44 __fsblkcnt64_t f_ffree;
45 __fsblkcnt64_t f_bavail;
46 #endif
48 /* Linux specials */
49 __fsid_t f_fsid;
50 long int f_namelen;
51 long int f_spare[6];
54 #ifdef __USE_LARGEFILE64
55 struct statfs64
57 long int f_type;
58 #define f_fstyp f_type
59 long int f_bsize;
60 long int f_frsize; /* Fragment size - unsupported */
61 __fsblkcnt64_t f_blocks;
62 __fsblkcnt64_t f_bfree;
63 __fsblkcnt64_t f_files;
64 __fsblkcnt64_t f_ffree;
65 __fsblkcnt64_t f_bavail;
67 /* Linux specials */
68 __fsid_t f_fsid;
69 long int f_namelen;
70 long int f_spare[6];
72 #endif
74 #endif /* bits/statfs.h */