Back to index

glibc  2.9
statfs.h
Go to the documentation of this file.
00001 /* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 #ifndef _SYS_STATFS_H
00020 # error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
00021 #endif
00022 
00023 #include <bits/types.h>  /* for __fsid_t and __fsblkcnt_t*/
00024 
00025 struct statfs
00026   {
00027     int f_version;
00028     int f_type;
00029     int f_bsize;
00030     /* The following five elements have type `int' since AIX's fsfilcnt_t
00031        and fsblkcnt_t types do not fit.  */
00032     int f_blocks;
00033     int f_bfree;
00034     int f_bavail;
00035     int f_files;
00036     int f_ffree;
00037     __fsid_t f_fsid;
00038     int f_vfstype;
00039     int f_fsize;
00040     int f_vfsnumber;
00041     int f_vfsoff;
00042     int f_vfslen;
00043     int f_vfsvers;
00044     char f_fname[32];
00045     char f_fpack[32];
00046     int f_name_max;
00047   };
00048 
00049 #ifdef __USE_LARGEFILE64
00050 /* XXX There seems to be no 64-bit versio of this structure.  */
00051 struct statfs64
00052   {
00053     int f_version;
00054     int f_type;
00055     int f_bsize;
00056     /* The following five elements have type `int' since AIX's fsfilcnt_t
00057        and fsblkcnt_t types do not fit.  */
00058     int f_blocks;
00059     int f_bfree;
00060     int f_bavail;
00061     int f_files;
00062     int f_ffree;
00063     __fsid_t f_fsid;
00064     int f_vfstype;
00065     int f_fsize;
00066     int f_vfsnumber;
00067     int f_vfsoff;
00068     int f_vfslen;
00069     int f_vfsvers;
00070     char f_fname[32];
00071     char f_fpack[32];
00072     int f_name_max;
00073   };
00074 #endif
00075 
00076 /* Tell code we have these members.  */
00077 #define _STATFS_F_NAME_MAX