summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-11-21 01:30:28 +0000
committertjr <tjr@FreeBSD.org>2003-11-21 01:30:28 +0000
commitab50de63d8c022e10167178fbb5881b5f7c69a71 (patch)
tree1fe9c0bea8f23b4feeff0deaf2441691aa6defdf /lib/libc
parent292627dcefda962b78629e984043688aff37ba81 (diff)
downloadFreeBSD-src-ab50de63d8c022e10167178fbb5881b5f7c69a71.zip
FreeBSD-src-ab50de63d8c022e10167178fbb5881b5f7c69a71.tar.gz
Replace out of date struct statfs definition with a reference to statfs(2).
Approved by: re
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/getfsstat.267
1 files changed, 3 insertions, 64 deletions
diff --git a/lib/libc/sys/getfsstat.2 b/lib/libc/sys/getfsstat.2
index 1f8619a..41d9904 100644
--- a/lib/libc/sys/getfsstat.2
+++ b/lib/libc/sys/getfsstat.2
@@ -32,7 +32,7 @@
.\" @(#)getfsstat.2 8.3 (Berkeley) 5/25/95
.\" $FreeBSD$
.\"
-.Dd May 25, 1995
+.Dd November 20, 2003
.Dt GETFSSTAT 2
.Os
.Sh NAME
@@ -56,69 +56,8 @@ The
argument
is a pointer to
.Vt statfs
-structures defined as follows:
-.Bd -literal
-typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */
-
-/*
- * file system statistics
- */
-
-#define MFSNAMELEN 16 /* length of fs type name, including null */
-#define MNAMELEN 90 /* length of buffer for returned name */
-
-struct statfs {
- long f_spare2; /* placeholder */
- 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 file system */
- int f_type; /* type of file system (see below) */
- int f_flags; /* copy of mount flags */
- long f_spare[2]; /* spare for later */
- char f_fstypename[MFSNAMELEN];/* fs type name */
- char f_mntonname[MNAMELEN];/* directory on which mounted */
- char f_mntfromname[MNAMELEN];/* mounted file system */
-};
-.Ed
-.Pp
-The flags that may be returned include:
-.Bl -tag -width MNT_ASYNCHRONOUS
-.It Dv MNT_RDONLY
-The file system is mounted read-only;
-Even the super-user may not write on it.
-.It Dv MNT_NOEXEC
-Files may not be executed from the file system.
-.It Dv MNT_NOSUID
-Setuid and setgid bits on files are not honored when they are executed.
-.It Dv MNT_NODEV
-Special files in the file system may not be opened.
-.It Dv MNT_SYNCHRONOUS
-All I/O to the file system is done synchronously.
-.It Dv MNT_ASYNCHRONOUS
-No file system I/O is done synchronously.
-.It Dv MNT_LOCAL
-The file system resides locally.
-.It Dv MNT_QUOTA
-The file system has quotas enabled on it.
-.It Dv MNT_ROOTFS
-Identifies the root file system.
-.It Dv MNT_EXRDONLY
-The file system is exported read-only.
-.It Dv MNT_EXPORTED
-The file system is exported for both reading and writing.
-.It Dv MNT_DEFEXPORTED
-The file system is exported for both reading and writing to any Internet host.
-.It Dv MNT_EXPORTANON
-The file system maps all remote accesses to the anonymous user.
-.It Dv MNT_EXKERB
-The file system is exported with Kerberos uid mapping.
-.El
+structures, as described in
+.Xr statfs 2 .
.Pp
Fields that are undefined for a particular file system are set to -1.
The buffer is filled with an array of
OpenPOWER on IntegriCloud