summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-02-10 07:29:25 +0000
committermpp <mpp@FreeBSD.org>1997-02-10 07:29:25 +0000
commit376473c9704d42be409fd33ad154bb6b1dafd1cd (patch)
tree183db4efe64609f93156c605965d526044cdfd05 /lib/libc
parentd556a1264a8ca4b42af3e7c7b32b91970dbba3ac (diff)
downloadFreeBSD-src-376473c9704d42be409fd33ad154bb6b1dafd1cd.zip
FreeBSD-src-376473c9704d42be409fd33ad154bb6b1dafd1cd.tar.gz
Update to reflect new Lite2 mount.h.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/getfsstat.28
-rw-r--r--lib/libc/sys/statfs.214
2 files changed, 16 insertions, 6 deletions
diff --git a/lib/libc/sys/getfsstat.2 b/lib/libc/sys/getfsstat.2
index 9b8dad8..26363fa 100644
--- a/lib/libc/sys/getfsstat.2
+++ b/lib/libc/sys/getfsstat.2
@@ -51,13 +51,14 @@ is a pointer to
.Xr statfs
structures defined as follows:
.Bd -literal
-typedef struct fsid { long val[2]; } fsid_t; /* file system id type */
+typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */
/*
* file system statistics
*/
-#define MNAMELEN 90 /* 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 {
long f_spare2; /* placeholder */
@@ -72,7 +73,8 @@ struct statfs {
uid_t f_owner; /* user that mounted the filesystem */
int f_type; /* type of filesystem (see below) */
int f_flags; /* copy of mount flags */
- long f_spare[6]; /* spare for later */
+ 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 filesystem */
};
diff --git a/lib/libc/sys/statfs.2 b/lib/libc/sys/statfs.2
index 40aba83..f5641a59 100644
--- a/lib/libc/sys/statfs.2
+++ b/lib/libc/sys/statfs.2
@@ -54,9 +54,14 @@ is a pointer to a
.Fn statfs
structure defined as follows:
.Bd -literal
-typedef quad fsid_t;
+typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */
-#define MNAMELEN 90 /* length of buffer for returned name */
+/*
+ * 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 */
@@ -71,7 +76,8 @@ fsid_t f_fsid; /* file system id */
uid_t f_owner; /* user that mounted the filesystem */
int f_type; /* type of filesystem (see below) */
int f_flags; /* copy of mount flags */
-long f_spare[6]; /* spare for later */
+long f_spare[2]; /* spare for later */
+char f_fstypename[MFSNAMELEN];/* fs type name */
char f_mntonname[MNAMELEN]; /* mount point */
char f_mntfromname[MNAMELEN]; /* mounted filesystem */
};
@@ -95,6 +101,8 @@ char f_mntfromname[MNAMELEN]; /* mounted filesystem */
#define MOUNT_UNION 15 /* Union (translucent) Filesystem */
#define MOUNT_DEVFS 16 /* existing device Filesystem */
#define MOUNT_EXT2FS 17 /* Linux EXT2FS */
+#define MOUNT_TFS 18 /* Netcon Novell filesystem */
+#define MOUNT_MAXTYPE 18
.Ed
.Pp
Fields that are undefined for a particular file system are set to -1.
OpenPOWER on IntegriCloud