summaryrefslogtreecommitdiffstats
path: root/netbsd/NetBSDProcess.c
Commit message (Collapse)AuthorAgeFilesLines
* Work around GCC14 memleak diagnosticBenny Baumann2024-04-081-1/+1
| | | | | While both pointers are identical, GCC-14 with -fanalyzer complains about these return statements to leak memory. The leak is only reported with LTO though.
* Introduce autoTitleRightAlign column flagChristian Göttsche2024-03-271-0/+1
| | | | | | Instead of handling PERCENT_CPU as a special case for whether to align the title of a dynamically sized column to the right or the left introduce a new flag, which can be reused by other columns.
* Fix build in NetBSD.fraggerfox2024-01-091-1/+1
|
* Use consistent style for process field output/compare functionsBenny Baumann2023-12-261-2/+5
|
* Add includes for config.h as per the discussion in PR #1337Daniel Lange2023-12-261-0/+2
| | | | | | Many thanks to @Explorer09 Kang-Che Sung (宋岡哲). Also add a #error stanza to XUtils.h in case somebody forgets the beautiful mess GNU forces on us.
* Introduce Row and Table classes for screens beyond top-processesNathan Scott2023-08-301-6/+14
| | | | | | | | | This commit refactors the Process and ProcessList structures such they each have a new parent - Row and Table, respectively. These new classes handle screen updates relating to anything that could be represented in tabular format, e.g. cgroups, filesystems, etc, without us having to reimplement the display logic repeatedly for each new entity.
* Introduce Machine class for host-specific info (split from ProcessList)Nathan Scott2023-05-081-2/+2
| | | | | | | | | | | First stage in sanitizing the process list structure so that htop can support other types of lists too (cgroups, filesystems, ...), in the not-too-distant future. This introduces struct Machine for system-wide information while keeping process-list information in ProcessList (now much less). Next step is to propogate this separation into each platform, to match these core changes.
* Process: Display single digit precision for CPU% greater than 99.9%Kumar2022-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | Since commit edf319e[1], we're dynamically adjusting column width of "CPU%", showing single digit precision also for values greater than "99.9%" makes "CPU%" column consistent with all other values. [1]: edf319e53d1fb77546505e238d75160a3febe56e Change "Process_printPercentage()" function's logic to always display value (i.e. "val") with single precision. Except when value is greater than "99.9%" for columns like "MEM%", whose width is fixed to "4" and value cannot go beyond "100%". Credits: @Explorer09, thanks for the patch[2] to fix title alignment issue. [2]: https://github.com/htop-dev/htop/pull/959#issuecomment-1092480951 Closes: #957
* Auto-size (normalized) CPU usage columnsBenny Baumann2022-03-061-0/+2
|
* Correct the order of xCalloc parameters in a couple of placesNathan Scott2021-11-051-1/+1
| | | | No functional change. Thanks to @BenBE for pointing these out.
* Dynamically scale the ST_UID size to support 32-bit UIDsSilke Hofstra2021-10-271-2/+2
| | | | | | | | | | | | | | | | | | While most Unix-like systems use 16-bit user IDs, Linux supports 32-bit UIDs since version 2.6. UIDs above 65535 are used for UID namespacing of containers, where a container has its own set of 16-bit user IDs. Processes in such containers will have (much) larger UIDs than 65535. Because the current format strings for `ST_UID` and `USER` are `%5d` and `%9d` respectively, processes with such UIDs lead to misaligned columns. Dynamically scale the `ST_UID` column and increase the size of `USER` to 10 characters (length of UINT32_MAX) to ensure that the user ID always fits. Additionally: clean up how the titlebuffer size calculation and ensure the PID column has a minimum size of 5.
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Adds support for PROC_EXE and CWD.fraggerfox2021-06-261-0/+13
|
* Adds the ELAPSED column for NetBSD.fraggerfox2021-06-261-0/+6
| | | | Additional details regarding ELAPSED column can be found in #627.
* Implements the NetBSD specific changes for makeCommandStr refactor.fraggerfox2021-06-261-4/+6
| | | | Refer to #388 PR for more details.
* Fix include paths and minor whitespace issuesfraggerfox2021-06-261-1/+1
|
* Remove unwanted code, updates the commentsfraggerfox2021-06-261-2/+1
|
* Update copyright noticesBenny Baumann2021-06-261-0/+2
|
* Add NetBSD platform support without procfs dependencyfraggerfox2021-06-261-0/+240
- TODO, clean up the code base and update comments in code.

© 2014-2024 Faster IT GmbH | imprint | privacy policy