Add an extra column for inode numbers, and pull back the mode field to
just 5 columns if in "numeric" mode. Other fields should dynamically resize, but not today...
This commit is contained in:
parent
63c8419002
commit
ba31699a83
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fstat.c,v 1.54 2001/11/25 18:49:02 jdolecek Exp $ */
|
||||
/* $NetBSD: fstat.c,v 1.55 2002/02/12 03:28:20 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1988, 1993
|
||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)fstat.c 8.3 (Berkeley) 5/2/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: fstat.c,v 1.54 2001/11/25 18:49:02 jdolecek Exp $");
|
||||
__RCSID("$NetBSD: fstat.c,v 1.55 2002/02/12 03:28:20 simonb Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -267,10 +267,10 @@ main(argc, argv)
|
|||
}
|
||||
if (nflg)
|
||||
printf("%s",
|
||||
"USER CMD PID FD DEV INUM MODE SZ|DV R/W");
|
||||
"USER CMD PID FD DEV INUM MODE SZ|DV R/W");
|
||||
else
|
||||
printf("%s",
|
||||
"USER CMD PID FD MOUNT INUM MODE SZ|DV R/W");
|
||||
"USER CMD PID FD MOUNT INUM MODE SZ|DV R/W");
|
||||
if (checkfile && fsflg == 0)
|
||||
printf(" NAME\n");
|
||||
else
|
||||
|
@ -509,7 +509,7 @@ vtrans(vp, i, flag)
|
|||
(void)snprintf(mode, sizeof mode, "%o", fst.mode);
|
||||
else
|
||||
strmode(fst.mode, mode);
|
||||
(void)printf(" %6ld %10s", (long)fst.fileid, mode);
|
||||
(void)printf(" %7ld %*s", (long)fst.fileid, nflg ? 5 : 10, mode);
|
||||
switch (vn.v_type) {
|
||||
case VBLK:
|
||||
case VCHR: {
|
||||
|
|
Loading…
Reference in New Issue