Back to index

glibc  2.9
statfs.h
Go to the documentation of this file.
00001 /* Definitions for getting information about a filesystem.
00002    Copyright (C) 1996, 1997, 1998, 1999, 2004 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA.  */
00019 
00020 #ifndef       _SYS_STATFS_H
00021 #define       _SYS_STATFS_H 1
00022 
00023 #include <features.h>
00024 
00025 /* Get the system-specific definition of `struct statfs'.  */
00026 #include <bits/statfs.h>
00027 
00028 __BEGIN_DECLS
00029 
00030 /* Return information about the filesystem on which FILE resides.  */
00031 #ifndef __USE_FILE_OFFSET64
00032 extern int statfs (__const char *__file, struct statfs *__buf)
00033      __THROW __nonnull ((1, 2));
00034 #else
00035 # ifdef __REDIRECT_NTH
00036 extern int __REDIRECT_NTH (statfs,
00037                         (__const char *__file, struct statfs *__buf),
00038                         statfs64) __nonnull ((1, 2));
00039 # else
00040 #  define statfs statfs64
00041 # endif
00042 #endif
00043 #ifdef __USE_LARGEFILE64
00044 extern int statfs64 (__const char *__file, struct statfs64 *__buf)
00045      __THROW __nonnull ((1, 2));
00046 #endif
00047 
00048 /* Return information about the filesystem containing the file FILDES
00049    refers to.  */
00050 #ifndef __USE_FILE_OFFSET64
00051 extern int fstatfs (int __fildes, struct statfs *__buf)
00052      __THROW __nonnull ((2));
00053 #else
00054 # ifdef __REDIRECT_NTH
00055 extern int __REDIRECT_NTH (fstatfs, (int __fildes, struct statfs *__buf),
00056                         fstatfs64) __nonnull ((2));
00057 # else
00058 #  define fstatfs fstatfs64
00059 # endif
00060 #endif
00061 #ifdef __USE_LARGEFILE64
00062 extern int fstatfs64 (int __fildes, struct statfs64 *__buf)
00063      __THROW __nonnull ((2));
00064 #endif
00065 
00066 __END_DECLS
00067 
00068 #endif /* sys/statfs.h */