.
[glibc-ports.git] / sysdeps / unix / sysv / aix / bits / statfs.h
blob0a1c0a5e655c457e131a1b3bd36c87a47087f2fd
1 /* Copyright (C) 1997, 1998, 2000 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 Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the 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 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #ifndef _SYS_STATFS_H
20 # error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
21 #endif
23 #include <bits/types.h> /* for __fsid_t and __fsblkcnt_t*/
25 struct statfs
27 int f_version;
28 int f_type;
29 int f_bsize;
30 /* The following five elements have type `int' since AIX's fsfilcnt_t
31 and fsblkcnt_t types do not fit. */
32 int f_blocks;
33 int f_bfree;
34 int f_bavail;
35 int f_files;
36 int f_ffree;
37 __fsid_t f_fsid;
38 int f_vfstype;
39 int f_fsize;
40 int f_vfsnumber;
41 int f_vfsoff;
42 int f_vfslen;
43 int f_vfsvers;
44 char f_fname[32];
45 char f_fpack[32];
46 int f_name_max;
49 #ifdef __USE_LARGEFILE64
50 /* XXX There seems to be no 64-bit versio of this structure. */
51 struct statfs64
53 int f_version;
54 int f_type;
55 int f_bsize;
56 /* The following five elements have type `int' since AIX's fsfilcnt_t
57 and fsblkcnt_t types do not fit. */
58 int f_blocks;
59 int f_bfree;
60 int f_bavail;
61 int f_files;
62 int f_ffree;
63 __fsid_t f_fsid;
64 int f_vfstype;
65 int f_fsize;
66 int f_vfsnumber;
67 int f_vfsoff;
68 int f_vfslen;
69 int f_vfsvers;
70 char f_fname[32];
71 char f_fpack[32];
72 int f_name_max;
74 #endif
76 /* Tell code we have these members. */
77 #define _STATFS_F_NAME_MAX