summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2000-12-04 09:21:05 +0000
committeralfred <alfred@FreeBSD.org>2000-12-04 09:21:05 +0000
commit8b68111f1892abe78129bd479b50fb403b65e498 (patch)
treec59d77d7bc2f9efc3edb56eedc1229c600d0438e
parent644a5df9448046fccace90b55aa19c715d75e297 (diff)
downloadFreeBSD-src-8b68111f1892abe78129bd479b50fb403b65e498.zip
FreeBSD-src-8b68111f1892abe78129bd479b50fb403b65e498.tar.gz
remove struct mount from useland visibility
-rw-r--r--sys/sys/mount.h4
-rw-r--r--usr.bin/fstat/fstat.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index c7879521..77ee4e5 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -39,7 +39,9 @@
#include <sys/ucred.h>
#include <sys/queue.h>
+#ifdef _KERNEL
#include <sys/lock.h>
+#endif
typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */
@@ -92,6 +94,7 @@ struct statfs {
long f_spare[2]; /* unused spare */
};
+#ifdef _KERNEL
/*
* Structure per mounted file system. Each mounted file system has an
* array of operations and an instance record. The file systems are
@@ -116,6 +119,7 @@ struct mount {
time_t mnt_time; /* last time written*/
u_int mnt_iosize_max; /* max IO request size */
};
+#endif /* _KERNEL */
/*
* User specifiable flags.
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c
index 9bbe502..02da6cc 100644
--- a/usr.bin/fstat/fstat.c
+++ b/usr.bin/fstat/fstat.c
@@ -66,8 +66,8 @@ static const char rcsid[] =
#include <sys/file.h>
#include <ufs/ufs/quota.h>
#include <ufs/ufs/inode.h>
-#undef _KERNEL
#include <sys/mount.h>
+#undef _KERNEL
#include <nfs/nfsproto.h>
#include <nfs/rpcv2.h>
#include <nfs/nfs.h>
OpenPOWER on IntegriCloud