1 /* Definition of `struct statvfs', information about a filesystem.
2 Copyright (C) 1998, 2000-2002 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, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 #ifndef _SYS_STATVFS_H
21 # error "Never include <bits/statvfs.h> directly; use <sys/statvfs.h> instead."
24 #include <bits/types.h>
27 #define _STATVFSBUF_F_UNUSED
32 unsigned long int f_bsize
;
33 unsigned long int f_frsize
;
34 #ifndef __USE_FILE_OFFSET64
35 __fsblkcnt_t f_blocks
;
37 __fsblkcnt_t f_bavail
;
40 __fsfilcnt_t f_favail
;
42 __fsblkcnt64_t f_blocks
;
43 __fsblkcnt64_t f_bfree
;
44 __fsblkcnt64_t f_bavail
;
45 __fsfilcnt64_t f_files
;
46 __fsfilcnt64_t f_ffree
;
47 __fsfilcnt64_t f_favail
;
49 unsigned long int f_fsid
;
50 #ifdef _STATVFSBUF_F_UNUSED
53 unsigned long int f_flag
;
54 unsigned long int f_namemax
;
55 unsigned int f_spare
[6];
58 #ifdef __USE_LARGEFILE64
61 unsigned long int f_bsize
;
62 unsigned long int f_frsize
;
63 __fsblkcnt64_t f_blocks
;
64 __fsblkcnt64_t f_bfree
;
65 __fsblkcnt64_t f_bavail
;
66 __fsfilcnt64_t f_files
;
67 __fsfilcnt64_t f_ffree
;
68 __fsfilcnt64_t f_favail
;
69 unsigned long int f_fsid
;
70 #ifdef _STATVFSBUF_F_UNUSED
73 unsigned long int f_flag
;
74 unsigned long int f_namemax
;
75 unsigned int f_spare
[6];
79 /* Definitions for the flag in `f_flag'. */
82 ST_RDONLY
= 1, /* Mount read-only. */
83 #define ST_RDONLY ST_RDONLY
84 ST_NOSUID
= 2 /* Ignore suid and sgid bits. */
85 #define ST_NOSUID ST_NOSUID
88 ST_NODEV
= 4, /* Disallow access to device special files. */
89 # define ST_NODEV ST_NODEV
90 ST_NOEXEC
= 8, /* Disallow program execution. */
91 # define ST_NOEXEC ST_NOEXEC
92 ST_SYNCHRONOUS
= 16, /* Writes are synced at once. */
93 # define ST_SYNCHRONOUS ST_SYNCHRONOUS
94 ST_NOATIME
= 0x10000000 /* Do not update access times. */
95 # define ST_NOATIME ST_NOATIME