Page MenuHomeFreeBSD

ps(1): Constify the array of valid keywords
ClosedPublic

Authored by olce on Apr 1 2025, 1:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 21, 2:35 AM
Unknown Object (File)
Mon, Apr 20, 6:17 AM
Unknown Object (File)
Mon, Apr 20, 6:08 AM
Unknown Object (File)
Sat, Apr 18, 1:47 AM
Unknown Object (File)
Sun, Apr 12, 1:20 AM
Unknown Object (File)
Mon, Apr 6, 9:10 PM
Unknown Object (File)
Mar 8 2026, 9:36 PM
Unknown Object (File)
Mar 2 2026, 5:25 PM
Subscribers

Details

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