statfs.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* Definitions for getting information about a filesystem.
  2. Copyright (C) 1996, 1997, 1998, 1999 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 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.
  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. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, write to the Free
  14. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  15. 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 (__const char *__file, struct statfs *__buf) __THROW;
  25. #else
  26. # ifdef __REDIRECT
  27. extern int __REDIRECT (statfs,
  28. (__const char *__file, struct statfs *__buf) __THROW,
  29. statfs64);
  30. # else
  31. # define statfs statfs64
  32. # endif
  33. #endif
  34. #ifdef __USE_LARGEFILE64
  35. extern int statfs64 (__const char *__file, struct statfs64 *__buf) __THROW;
  36. #endif
  37. /* Return information about the filesystem containing the file FILDES
  38. refers to. */
  39. #ifndef __USE_FILE_OFFSET64
  40. extern int fstatfs (int __fildes, struct statfs *__buf) __THROW;
  41. #else
  42. # ifdef __REDIRECT
  43. extern int __REDIRECT (fstatfs, (int __fildes, struct statfs *__buf) __THROW,
  44. fstatfs64);
  45. # else
  46. # define fstatfs fstatfs64
  47. # endif
  48. #endif
  49. #ifdef __USE_LARGEFILE64
  50. extern int fstatfs64 (int __fildes, struct statfs64 *__buf) __THROW;
  51. #endif
  52. __END_DECLS
  53. #endif /* sys/statfs.h */