diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-05-24 03:24:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-05-24 03:24:24 +0000 |
commit | 5360851968704aa00f8d38eb6aefa5f17841dc0a (patch) | |
tree | fc7de72afc3f47c81ce4740e99035883ee96e4e5 /usr.sbin | |
parent | de58cd4f435b83c6260d3edfaae7d24632b72a98 (diff) |
handle 64 bit arch in -f; janjaap@stack.nl
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pstat/pstat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 0a46fdd7022..e2da38f0c67 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pstat.c,v 1.22 1999/12/05 08:49:18 art Exp $ */ +/* $OpenBSD: pstat.c,v 1.23 2000/05/24 03:24:23 deraadt Exp $ */ /* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 from: static char sccsid[] = "@(#)pstat.c 8.9 (Berkeley) 2/16/94"; #else -static char *rcsid = "$OpenBSD: pstat.c,v 1.22 1999/12/05 08:49:18 art Exp $"; +static char *rcsid = "$OpenBSD: pstat.c,v 1.23 2000/05/24 03:24:23 deraadt Exp $"; #endif #endif /* not lint */ @@ -857,7 +857,9 @@ filemode() nfile = (len - sizeof(struct filelist)) / sizeof(struct file); (void)printf("%d/%d open files\n", nfile, maxfile); - (void)printf(" LOC TYPE FLG CNT MSG DATA OFFSET\n"); + + (void)printf("%*s TYPE FLG CNT MSG %*s OFFSET\n", + sizeof (long) * 2, "LOC", sizeof (long) *2, "DATA"); for (; (char *)ffp < buf + len; addr = ffp->f_list.le_next, ffp++) { memmove(&fp, ffp, sizeof fp); if ((unsigned)fp.f_type > DTYPE_SOCKET) |