freebsd-src/usr.bin/proccontrol
Brooks Davis 7ca260df8c proccontrol: use a table for modes
Add a central table of modes and loop over it rather than spelling out
10 essentialy identical strcmp if statemnts.  Use the stable to generate
usage as well reducing the number of ifdefs.

Disallow multiple -m options.  Previouly multiple were allowed, but only
the last one was used and there was no indication this happened.

Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D46426
2024-09-12 12:35:04 +01:00
..
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
proccontrol.1 proccontrol.1: bump doc date 2024-08-23 18:59:46 +01:00
proccontrol.c proccontrol: use a table for modes 2024-09-12 12:35:04 +01:00