5838 a Linux-like free(1M) would probably not be a bad thing
Review Request #657 — Created Sept. 6, 2017 and discarded
a "free" command to display memory usage
Executed inside global zone and non global zones with and without memory cap on OmniOS.
While testing this on OI I noticed that this depends on functionality not yet upstreamed from SmartoS:
commit f3861a7cccef3296d09052f75b91c493572fd94a "OS-399 zone phys. mem. cap should be a rctl and have associated kstat"
So this will have to wait.
Just use the
extern const char *__progname, which libc does provide -- even if non-standard, it seems to be supported everywhere nowadays.
I guess here (and everywhere else) the stupid lint won't be happy about you not casting the return value to
Don't think this is really needed, usage isn't intended for descriptions, even if someone thinks it is...
caseindented same as
err(3C)here instead, i.e.
err(1, "get_free_info");, and drop the
.Dd June 18, 2017,
Mdocdateis OpenBSD stuff related to CVS.
note testing update which revealed that this can't go upstream yet