update to reflect new fsstat structure
[unix-history] / usr / src / lib / libc / sys / getfsstat.2
index 93608c3..f65c721 100644 (file)
@@ -3,7 +3,7 @@
 .\"
 .\" %sccs.include.redist.roff%
 .\"
 .\"
 .\" %sccs.include.redist.roff%
 .\"
-.\"    @(#)getfsstat.2 8.1 (Berkeley) %G%
+.\"    @(#)getfsstat.2 8.2 (Berkeley) %G%
 .\"
 .Dd 
 .Dt GETFSSTAT 2
 .\"
 .Dd 
 .Dt GETFSSTAT 2
@@ -27,29 +27,26 @@ structures defined as follows:
 .Bd -literal
 typedef quad fsid_t;
 
 .Bd -literal
 typedef quad fsid_t;
 
-#define MNAMELEN 32    /* length of buffer for returned name */
+#define MFSNAMELEN     16      /* length of fs type name, including null */
+#define        MNAMELEN        90      /* length of buffer for returned name */
 
 struct statfs {
 
 struct statfs {
-    short   f_type;    /* type of filesystem (see below) */
-    short   f_flags;   /* copy of mount flags */
-    long    f_bsize;   /* fundamental filesystem block size */
-    long    f_iosize;  /* optimal transfer block size */
-    long    f_blocks;  /* total data blocks in filesystem */
-    long    f_bfree;   /* free blocks in fs */
-    long    f_bavail;  /* free blocks avail to non-superuser */
-    long    f_files;   /* total file nodes in filesystem */
-    long    f_ffree;   /* free file nodes in fs */
-    fsid_t  f_fsid;    /* filesystem id */
-    long    f_spare[6];        /* spare for later */
-    char    f_mntonname[MNAMELEN]; /* directory on which mounted */
-    char    f_mntfromname[MNAMELEN]; /* mounted filesystem */
+       short   f_type;                 /* filesystem type number */
+       short   f_flags;                /* copy of mount flags */
+       long    f_bsize;                /* fundamental file system block size */
+       long    f_iosize;               /* optimal transfer block size */
+       long    f_blocks;               /* total data blocks in file system */
+       long    f_bfree;                /* free blocks in fs */
+       long    f_bavail;               /* free blocks avail to non-superuser */
+       long    f_files;                /* total file nodes in file system */
+       long    f_ffree;                /* free file nodes in fs */
+       fsid_t  f_fsid;                 /* file system id */
+       uid_t   f_owner;                /* user that mounted the filesystem */
+       long    f_spare[4];             /* spare for later */
+       char    f_fstypename[MFSNAMELEN]; /* fs type name */
+       char    f_mntonname[MNAMELEN];  /* directory on which mounted */
+       char    f_mntfromname[MNAMELEN];/* mounted filesystem */
 };
 };
-/*
- * File system types.
- */
-#define        MOUNT_UFS       1
-#define        MOUNT_NFS       2
-#define        MOUNT_PC        3
 .Ed
 .Pp
 Fields that are undefined for a particular filesystem are set to -1.
 .Ed
 .Pp
 Fields that are undefined for a particular filesystem are set to -1.