HomeFreeBSD

top(1): move command mapping to commands.c

Description

top(1): move command mapping to commands.c

This eliminates the difficult to follow mapping of a string list. It
moves numbers from "#define" into (more) debuggable enums. More
generally, it follows the trend of moving more data into a more central
mechanism.

The help output is a little worse: " " is not rendered well, and there
are duplicate entries, but that will be fixed in a followup.

Details

Provenance
eadlerAuthored on Jun 12 2018, 6:53 AM
Parents
rG1bb577b4c2d7: cxgbe(4): Remove homemade version of htobe32 from the driver.
Branches
Unknown
Tags
Unknown