static long pgsz;
static char sbuff[32];
-void
+static void
usage(void)
{
fprintf(stderr, "usage: %s [-bghkmpt]\n", getprogname());
exit(2);
}
-long long
+static long long
getphysmem(int unused)
{
(void)unused;
return physcnt;
}
-long long
+static long long
getavailmem(int flag)
{
size_t len;
return (long long)((freecnt + inactcnt) * pgsz);
}
-long long
+static long long
getwiredmem(int unused)
{
(void)unused;
}
-long long
+static long long
getbufcachestats(int unused)
{
(void)unused;
return (long long)(cachecnt * pgsz + bufspace + arcspace);
}
-long long
+static long long
getswapstats(int flag)
{
int nswap;
return (long long)((swap.ksw_total - swap.ksw_used) * pgsz);
}
-int
+static int
tohumansize(long long bytes, char **buff, ConvFlags flag)
{
int i = 0;
return asprintf(buff, "%.0f%c", size, units[i]);
}
-void
+static void
sprintfaligned(char *buff, size_t len)
{
size_t blen;