+.\" $OpenBSD: pstat.8,v 1.4 1996/05/05 16:15:46 deraadt Exp $
+.\" $NetBSD: pstat.8,v 1.9 1996/05/02 00:13:08 cgd Exp $
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
.\"
.\" SUCH DAMAGE.
.\"
.\" from: @(#)pstat.8 8.4 (Berkeley) 4/19/94
-.\" $Id: pstat.8,v 1.3 1996/01/11 17:54:00 deraadt Exp $
+.\" $Id: pstat.8,v 1.4 1996/05/05 16:15:46 deraadt Exp $
.\"
.Dd April 19, 1994
.Dt PSTAT 8
\- VROOT
.It T
\- VTEXT
+.It S
+\- VSYSTEM
+.It I
+\- VISTTY
.It L
\- VXLOCK
.It W
\- VXWANT
-.It E
-\- VEXLOCK
-.It S
-\- VSHLOCK
-.It T
-\- VLWAIT
-.It A
-\- VALIASED
.It B
\- VBWAIT
+.It A
+\- VALIASED
.El
.Pp
.It USE
-/* $OpenBSD: pstat.c,v 1.3 1996/03/25 15:56:06 niklas Exp $ */
-/* $NetBSD: pstat.c,v 1.17 1996/02/21 02:27:57 cgd Exp $ */
+/* $OpenBSD: pstat.c,v 1.4 1996/05/05 16:15:48 deraadt Exp $ */
+/* $NetBSD: pstat.c,v 1.19 1996/05/02 00:13:19 cgd Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993
#ifndef lint
#if 0
from: static char sccsid[] = "@(#)pstat.c 8.9 (Berkeley) 2/16/94";
-from: static char *rcsid = "$NetBSD: pstat.c,v 1.17 1996/02/21 02:27:57 cgd Exp $";
+from: static char *rcsid = "$NetBSD: pstat.c,v 1.19 1996/05/02 00:13:19 cgd Exp $";
#else
-static char *rcsid = "$OpenBSD: pstat.c,v 1.3 1996/03/25 15:56:06 niklas Exp $";
+static char *rcsid = "$OpenBSD: pstat.c,v 1.4 1996/05/05 16:15:48 deraadt Exp $";
#endif
#endif /* not lint */
*fp++ = 'T';
if (flag & VSYSTEM)
*fp++ = 'S';
+ if (flag & VISTTY)
+ *fp++ = 'I';
if (flag & VXLOCK)
*fp++ = 'L';
if (flag & VXWANT)
flags &= ~MNT_QUOTA;
comma = ",";
}
+ if (flags & MNT_ROOTFS) {
+ (void)printf("%srootfs", comma);
+ flags &= ~MNT_ROOTFS;
+ comma = ",";
+ }
/* filesystem control flags */
if (flags & MNT_UPDATE) {
(void)printf("%supdate", comma);
bp = vbuf;
evbuf = vbuf + (numvnodes + 20) * (VPTRSZ + VNODESZ);
KGET(V_MOUNTLIST, mountlist);
- for (num = 0, mp = mountlist.cqh_first; ; mp = mp->mnt_list.cqe_next) {
+ for (num = 0, mp = mountlist.cqh_first; ; mp = mount.mnt_list.cqe_next) {
KGET2(mp, &mount, sizeof(mount), "mount entry");
for (vp = mount.mnt_vnodelist.lh_first;
- vp != NULL; vp = vp->v_mntvnodes.le_next) {
+ vp != NULL; vp = vnode.v_mntvnodes.le_next) {
KGET2(vp, &vnode, sizeof(vnode), "vnode");
if ((bp + VPTRSZ + VNODESZ) > evbuf)
/* XXX - should realloc */