Add _MAXCOMLEN to syslimits, it is 24, and includes the NUL. Following
authorderaadt <deraadt@openbsd.org>
Tue, 22 Feb 2022 16:58:08 +0000 (16:58 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 22 Feb 2022 16:58:08 +0000 (16:58 +0000)
commit78a301e00d05a0a9b60423794ef6b8ebc91d57b8
tree555754ff5a41a3ae936d590a7b7d8293c6bf567e
parent78fd53900a0c6dce7ee1e6bba0bdd3c226cbdea6
Add _MAXCOMLEN to syslimits, it is 24, and includes the NUL.  Following
commits will change sys/param.h MAXCOMLEN, sys/sysctl.h KI_MAXCOMLEN,
sys/acct.h ac_comm[], dev/ic/dtvar.h DTMAXCOMLEN to use this, and also
adapt most to the included NUL correctly.  This will allow us to remove
sys/param.h include from userland base.
sys/syslimits.h is chosen as the best place for this define because it
has very small namespace which is already pulled in often.
ok millert
sys/sys/syslimits.h