home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !gcc / include / unixlib / sys / h / statfs < prev    next >
Encoding:
Text File  |  2006-09-17  |  1.0 KB  |  46 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/clib/sys/statfs.h,v $
  4.  * $Date: 2004/04/17 10:51:15 $
  5.  * $Revision: 1.4 $
  6.  * $State: Exp $
  7.  * $Author: nick $
  8.  *
  9.  ***************************************************************************/
  10.  
  11. /* Definitions for getting information about a filesystem.  */
  12.  
  13. #ifndef    __SYS_STATFS_H
  14. #define    __SYS_STATFS_H 1
  15.  
  16. #ifndef __UNIXLIB_FEATURES_H
  17. #include <features.h>
  18. #endif
  19.  
  20. __BEGIN_DECLS
  21.  
  22. struct statfs
  23. {
  24.   unsigned int f_type;
  25.   unsigned int f_bsize;
  26.   unsigned int f_blocks;
  27.   unsigned int f_bfree;
  28.   unsigned int f_bavail;
  29.   unsigned int f_files;
  30.   unsigned int f_ffree;
  31.   __fsid_t f_fsid;
  32.   unsigned int f_namelen;
  33.   unsigned int f_spare[6];
  34. };
  35.  
  36. /* Return information about the filesystem on which FILE resides.  */
  37. extern int statfs (const char *file, struct statfs *buf) __THROW;
  38.  
  39. /* Return information about the filesystem containing the file fd
  40.    refers to.  */
  41. extern int fstatfs (int fd, struct statfs *buf) __THROW;
  42.  
  43. __END_DECLS
  44.  
  45. #endif
  46.