Page MenuHomeFreeBSD

ps(1): Constify the array of valid keywords
Needs ReviewPublic

Authored by olce on Tue, Apr 1, 1:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 3, 7:31 PM
Unknown Object (File)
Thu, Apr 3, 3:54 PM
Unknown Object (File)
Thu, Apr 3, 1:03 PM
Subscribers

Details

Reviewers
emaste
pstef
kib
Summary

Building on the previous commit that moved the 'width' field from VAR to
VARENT, it is now possible to constify the var[] array containing all
the recognized keywords.

As a side-effect, in parsefmt(), forget about allocating a new VAR for
the selected keyword to be pointed by the corresponding column (VARENT),
and instead just keep a pointer to that structure in var[].

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63253
Build 60137: arc lint + arc unit