/* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */
-/* $OpenBSD: vmstat.c,v 1.140 2016/07/27 14:44:59 tedu Exp $ */
+/* $OpenBSD: vmstat.c,v 1.141 2016/08/14 22:47:26 guenther Exp $ */
/*
* Copyright (c) 1980, 1986, 1991, 1993
/*
* Force a header to be prepended to the next output.
*/
-/* ARGSUSED */
void
-needhdr(int signo)
+needhdr(__unused int signo)
{
hdrcnt = 1;
inttotal = 0;
for (i = 0; i < nintr; i++) {
char name[128];
- u_quad_t cnt;
+ uint64_t cnt;
int vector;
mib[0] = CTL_KERN;
int i, j, len, size, first, mib[4];
u_long totuse = 0, totfree = 0;
char buf[BUFSIZ], *bufp, *ap;
- quad_t totreq = 0;
+ unsigned long long totreq = 0;
const char *name;
size_t siz;
totreq += ks->ks_calls;
}
(void)printf("\nMemory Totals: In Use Free Requests\n");
- (void)printf(" %7luK %6luK %8qu\n",
+ (void)printf(" %7luK %6luK %8llu\n",
(totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq);
}
-/* $OpenBSD: pstat.c,v 1.107 2016/07/18 11:48:55 guenther Exp $ */
+/* $OpenBSD: pstat.c,v 1.108 2016/08/14 22:47:26 guenther Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
else
(void)printf(" %7s", name);
else
- (void)printf(" %7qd", ip->i_ffs1_size);
+ (void)printf(" %7lld", (long long)ip->i_ffs1_size);
return (0);
}
else
(void)printf(" %7s", name);
else
- (void)printf(" %7qd", np->n_size);
+ (void)printf(" %7lld", (long long)np->n_size);
return (0);
}