statfs.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Definitions for getting information about a filesystem.
  2. Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
  3. 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 Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public
  13. License along with the GNU C Library; see the file COPYING.LIB. If not,
  14. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA. */
  16. #ifndef _SYS_STATFS_H
  17. #define _SYS_STATFS_H 1
  18. #include <features.h>
  19. /* Get the system-specific definition of `struct statfs'. */
  20. #include <bits/statfs.h>
  21. __BEGIN_DECLS
  22. /* Return information about the filesystem on which FILE resides. */
  23. #ifndef __USE_FILE_OFFSET64
  24. extern int statfs __P ((__const char *__file, struct statfs *__buf));
  25. #else
  26. # ifdef __REDIRECT
  27. extern int __REDIRECT (statfs, __P ((__const char *__file,
  28. struct statfs *__buf)), statfs64);
  29. # else
  30. # define statfs statfs64
  31. # endif
  32. #endif
  33. #ifdef __USE_LARGEFILE64
  34. extern int statfs64 __P ((__const char *__file, struct statfs64 *__buf));
  35. #endif
  36. /* Return information about the filesystem containing the file FILDES
  37. refers to. */
  38. #ifndef __USE_FILE_OFFSET64
  39. extern int fstatfs __P ((int __fildes, struct statfs *__buf));
  40. #else
  41. # ifdef __REDIRECT
  42. extern int __REDIRECT (fstatfs, __P ((int __fildes, struct statfs *__buf)),
  43. fstatfs64);
  44. # else
  45. # define fstatfs fstatfs64
  46. # endif
  47. #endif
  48. #ifdef __USE_LARGEFILE64
  49. extern int fstatfs64 __P ((int __fildes, struct statfs64 *__buf));
  50. #endif
  51. __END_DECLS
  52. #endif /* sys/statfs.h */