home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / statvfs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.7 KB  |  51 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_STATVFS_H
  11. #define _SYS_STATVFS_H
  12.  
  13. #ident    "@(#)/usr/include/sys/statvfs.h.sl 1.1 4.0 12/08/90 28446 AT&T-USL"
  14. /*
  15.  * Structure returned by statvfs(2).
  16.  */
  17.  
  18. #define    FSTYPSZ    16
  19.  
  20. typedef struct statvfs {
  21.     u_long    f_bsize;    /* fundamental file system block size */
  22.     u_long    f_frsize;    /* fragment size */
  23.     u_long    f_blocks;    /* total # of blocks of f_frsize on fs */
  24.     u_long    f_bfree;    /* total # of free blocks of f_frsize */
  25.     u_long    f_bavail;    /* # of free blocks avail to non-superuser */
  26.     u_long    f_files;    /* total # of file nodes (inodes) */
  27.     u_long    f_ffree;    /* total # of free file nodes */
  28.     u_long    f_favail;    /* # of free nodes avail to non-superuser */
  29.     u_long    f_fsid;        /* file system id (dev for now) */
  30.     char    f_basetype[FSTYPSZ]; /* target fs type name, null-terminated */
  31.     u_long    f_flag;        /* bit-mask of flags */
  32.     u_long    f_namemax;    /* maximum file name length */
  33.     char    f_fstr[32];    /* filesystem-specific string */
  34.     u_long    f_filler[16];    /* reserved for future expansion */
  35. } statvfs_t;
  36.  
  37. /*
  38.  * Flag definitions.
  39.  */
  40.  
  41. #define    ST_RDONLY    0x01    /* read-only file system */
  42. #define    ST_NOSUID    0x02    /* does not support setuid/setgid semantics */
  43. #define ST_NOTRUNC    0x04    /* does not truncate long file names */
  44.  
  45. #if defined(__STDC__) && !defined(_KERNEL)
  46. int statvfs(const char *, struct statvfs *);
  47. int fstatvfs(int, struct statvfs *);
  48. #endif
  49.  
  50. #endif    /* _SYS_STATVFS_H */
  51.