initial commit
[glibc.git] / sysdeps / unix / bsd / bsd4.4 / kfreebsd / bits / statfs.h
1 /* Definition of `struct statfs', information about a filesystem.
2 Copyright (C) 1996-1997, 2002 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
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.
9
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.
14
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
18 02111-1307 USA. */
19
20 #ifndef _BITS_STATFS_H
21 #define _BITS_STATFS_H 1
22
23 #if !defined _SYS_STATFS_H && !defined _SYS_MOUNT_H
24 # error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
25 #endif
26
27 #include <bits/types.h>
28
29 struct statfs
30 {
31 unsigned long f_version;
32 unsigned long f_bsize;
33 unsigned long f_iosize;
34 #ifndef __USE_FILE_OFFSET64
35 __fsblkcnt_t f_blocks;
36 __fsblkcnt_t f_bfree;
37 __fsblkcnt_t f_bavail;
38 __fsfilcnt_t f_files;
39 __fsfilcnt_t f_ffree;
40 #else
41 __fsblkcnt64_t f_blocks;
42 __fsblkcnt64_t f_bfree;
43 __fsblkcnt64_t f_bavail;
44 __fsfilcnt64_t f_files;
45 __fsfilcnt64_t f_ffree;
46 #endif
47 __fsid_t f_fsid;
48 __uid_t f_owner;
49 int f_type;
50 int f_flags;
51 unsigned long int f_syncwrites;
52 unsigned long int f_asyncwrites;
53 char f_fstypename[16];
54 char f_mntonname[80];
55 unsigned long int f_syncreads;
56 unsigned long int f_asyncreads;
57 unsigned short f_namemax;
58 char f_mntfromname[80];
59 short __unused3;
60 long __unused4[2];
61 };
62
63 #ifdef __USE_LARGEFILE64
64 struct statfs64
65 {
66 unsigned long f_version;
67 unsigned long f_bsize;
68 unsigned long f_iosize;
69 __fsblkcnt64_t f_blocks;
70 __fsblkcnt64_t f_bfree;
71 __fsblkcnt64_t f_bavail;
72 __fsfilcnt64_t f_files;
73 __fsfilcnt64_t f_ffree;
74 __fsid_t f_fsid;
75 __uid_t f_owner;
76 int f_type;
77 int f_flags;
78 unsigned long int f_syncwrites;
79 unsigned long int f_asyncwrites;
80 char f_fstypename[16];
81 char f_mntonname[80];
82 unsigned long int f_syncreads;
83 unsigned long int f_asyncreads;
84 unsigned short f_namemax;
85 char f_mntfromname[80];
86 short __unused3;
87 long __unused4[2];
88 };
89 #endif
90
91 #endif /* _BITS_STATFS_H */