freebsd-nq/usr.bin/top
Eitan Adler 51c834c490 top(1): reimplement header formatting as sbuf
The current header formatting is a giant format string that changes
global state during the format process.

Make the following changes:
- use sbuf to build up the header rather than use the above
pseudo-dynamic one
- Change name length to 10
- Reduce size of RES and SIZE by making humanize more aggressive
- Restore a version number line to the copyright. This may be required
by the copyright (and may not be; its unclear)

This is also a pre-req to implementing TOPCOLOR from newer versions of
top(1)

Discussed with:	allanjude, rpolka, danfe, rgrimes
Differential Revision: https://reviews.freebsd.org/D15801
2018-06-22 09:21:01 +00:00
..
commands.c top(1): reimplement header formatting as sbuf 2018-06-22 09:21:01 +00:00
commands.h top(1): move command mapping to commands.c 2018-06-12 06:53:31 +00:00
display.c top(1): style(9) 2018-06-13 08:52:22 +00:00
display.h top(1): include what you use 2018-06-04 04:59:32 +00:00
layout.h top(1): Migrate top to usr.bin 2018-05-19 22:40:23 +00:00
loadavg.h top(1): filter fewer warnings; clean up 2018-06-10 06:21:51 +00:00
machine.c top(1): reimplement header formatting as sbuf 2018-06-22 09:21:01 +00:00
machine.h top(1): reimplement header formatting as sbuf 2018-06-22 09:21:01 +00:00
Makefile top(1): reimplement header formatting as sbuf 2018-06-22 09:21:01 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
screen.c top(1): move command mapping to commands.c 2018-06-12 06:53:31 +00:00
screen.h top(1): cleanup memory allocation and warnings 2018-06-02 21:40:45 +00:00
top.1 top(1): remove myself from top.1 2018-06-14 12:14:51 +00:00
top.c top(1): behave as documented for -t 2018-06-22 00:02:36 +00:00
top.h top(1): remove trailing whitespace 2018-06-12 07:31:59 +00:00
username.c top(1): style(9) 2018-06-13 08:52:22 +00:00
username.h top(1): partial revert of r334517 2018-06-03 05:20:11 +00:00
utils.c top(1): reimplement header formatting as sbuf 2018-06-22 09:21:01 +00:00
utils.h top(1): format_time, format_k, etc. 2018-06-13 08:52:09 +00:00