summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add OpenBSD to the CIfraggerfox2024-02-291-0/+23
|
* Add NetBSD to the CIfraggerfox2024-02-291-0/+25
|
* Add FreeBSD to the CIfraggerfox2024-02-291-0/+21
|
* Fix warnings in OpenBSD build.fraggerfox2024-02-291-1/+1
|
* Merge branch 'kew24-patch-1'Nathan Scott2024-02-291-1/+1
|\
| * documentation update "pcp htop" –> "pcp-htop"kew242024-02-281-1/+1
|/ | | | | Rarely (if ever) do we see references in the documentation to `pcp htop` (it's mainly just `pcp-htop`, with a hyphen instead of a space). I fixed the documentation to reflect this. Feel free to ignore this if the space is intentional.
* Update Settings.cKen McDonell2024-02-051-1/+1
| | | Co-authored-by: BenBE <BenBE@geshi.org>
* Minor bug fixes for Coverity issuesKen McDonell2024-02-052-1/+4
| | | | | | | | | | | | | | | | | Over in the PCP project, Coverity has spotted a couple of minor issues in the htop code. This commit addresses them: Settings.c need to take control of the umask before calling mkstemp() pcp/Platform.c Although Platform_getMaxPid() returns a pid_t (which strictly speaking is signed), the value is used to call Row_setPidColumnWidth() and a negative value here is not good ... using INT_MAX instead of UNIT_MAX on the (unlikely) error path makes no practical difference but may keep Coverity quiet
* darwin/Platform.c: use mach/port.hSergey Fedorov2024-02-041-1/+1
| | | | | Unbreak builds on macOS versions where _mach_port_t.h does not exist. mach/port.h exists on every macOS and has needed defines.
* Disable basename matching for kernel threadsChristian Göttsche2024-01-281-2/+8
| | | | | | | | | | | Kernel threads are commonly not based on an executable and their cmdline therefore just a human readable string. On Linux this string might contain slashes, e.g. kworker/7:5H-ttm, which cause Process_writeCommand() to print only the trailing parts if the option *Show Program Path* is disabled. Reported-and-Suggested-By: mmrmaximuzz Fixes: #1391
* Read executable name before checking the command lineBenny Baumann2024-01-271-39/+48
| | | | This potentially avoids guessing the right path in the presence of spaces inside the executable path.
* Properly track if we actually hit any token while scanning cmdlineBenny Baumann2024-01-271-49/+78
|
* Explicitly check sscanf(3) and fscanf(3) return valuesChristian Göttsche2024-01-255-16/+15
| | | | | | | | | Compare the return value of sscanf(3) and fscanf(3) explicitly against the expected number of parsed items and avoid implicit boolean conversion. Such an implicit conversion would treat EOF (-1) the same as at least one item parsed successfully. Reported by CodeQL.
* Linux: drop preconditions for free_and_xStrdup()Christian Göttsche2024-01-201-6/+0
| | | | | free_and_xStrdup() internally skips the strdup() allocation if both strings exist are are the same. Drop such conditions prior of a call.
* Linux: rename variable for clearer intentChristian Göttsche2024-01-201-2/+2
| | | | | | Make it more clear the variable stores the previous tty number (similar to lasttimes), while the current one gets set in the intermediate LinuxProcessTable_readStatFile().
* RichString: add access function annotationsChristian Göttsche2024-01-201-0/+3
|
* Handle invalid multi-byte strings gracefullyChristian Göttsche2024-01-201-4/+37
| | | | | | | In case the string to be printed contains invalid wide characters, continue to translate after the invalid character instead of aborting. Closes: #1373
* Fix usage of RichString_appendnWide()Christian Göttsche2024-01-201-3/+2
| | | | | | The last argument of RichString_appendnWide() should be the number of bytes of the source multi-byte string, not the number of characters in the resulting wide-character string.
* DragonFlyBSD: support Disk IO meterChristian Göttsche2024-01-202-3/+59
|
* DragonFlyBSD: support Network IO meterChristian Göttsche2024-01-201-3/+26
|
* DragonFlyBSD: build fixesChristian Göttsche2024-01-205-11/+20
|
* Clicking on column headers needs to also update the sort direction arrowDaniel Lange2024-01-171-1/+1
|
* Undo too-aggressive code collapsing from tree mode refactoringNathan Scott2024-01-171-1/+4
| | | | | | | | | While abstracting processes from row display, code relating to row parent sorting was moved to row-level that in fact must be done at process-level (using the Row_compareByParent_Base call circumvented this unintentially). Resolves #1378
* CRT: print message with pending changes onlyChristian Hesse2024-01-151-0/+3
|
* CRT: print a warning when exiting on signalChristian Hesse2024-01-151-1/+9
| | | | | | | | Every now and then users complain about settings to being persisted. Most of the time this turns out to be caused by user: Exiting with signal causes htop not to save settings to htoprc. Make htop print a warning when exiting on signal.
* Fix the display of number of running tasksBenny Baumann2024-01-121-2/+1
| | | | | | This was broken by a logic change in 72235d8e. Fixes: #1369
* fixes for illumos/Solaris platformsDominik Hassler2024-01-116-10/+16
|
* Fix static linking with libsystemdChristian Göttsche2024-01-102-1/+2
| | | | | | libsystemd requires libcap for static linking. Add missing macro for function alias.
* Add -dev prefix again for the next (planned) releaseDaniel Lange2024-01-101-1/+1
|
* Release 3.3.03.3.0Daniel Lange2024-01-102-1/+54
|
* Linux: use fseek(3)Christian Göttsche2024-01-101-5/+2
| | | | Use fseek(3) instead of rewind(3) to check for success.
* Refactor the goThroughEntries.fraggerfox2024-01-091-15/+11
|
* Fix build in NetBSD.fraggerfox2024-01-093-7/+7
|
* Attempt to "Fix" OpenBSD BuildSamuel Venable2024-01-092-4/+4
| | | | Co-authored-by: Benny Baumann <BenBE@geshi.org>
* Clarify isNonnegative() behavior in commentsExplorer092024-01-081-4/+5
| | | | | Also fix some comments of isNaN() and isPositive() functions. No code changes.
* Updates for 2024. Happy New Year!Daniel Lange2024-01-013-4/+4
|
* Shorten docker container IDs to 12 charactersBenny Baumann2023-12-311-0/+35
|
* Settings: preserve empty headerChristian Göttsche2023-12-311-5/+15
| | | | | | | | | | | | | If the user removes all meters from the header on exit htop will write no values for the settings column_meters_X and column_meter_modes_X. The parser skips all configuration settings with no value, so on the next start no header meter related key is processed and htop will add a set of default meters to the header. Write instead an invalid value of `!`, so the keys are parsed and htop will not add the default meters back. Closes: #1248
* Fix execlp() argument without pointer castExplorer092023-12-291-1/+2
| | | | Regression from c55401b82b1bb278947f9d2a3aed13a9f0de85a9
* Row_printTime() code shrinkExplorer092023-12-291-7/+7
| | | | Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Row_printKBytes() improvementsExplorer092023-12-292-77/+99
| | | | | | | | | | * Allow the maximum value of "15.9Z" ((2^64 - 2) KiB) to be printed. (The previous version supports the maximum of "99.9P" (99.9 PiB) before the printing format goes weird.) * Print up to 2 fraction digits for values between "9.76G" (10000 MiB) and "9.99G" (< 10 GiB), "9.76T" and "9.99T", and so on. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Clarify magic number for data/cols fieldsBenny Baumann2023-12-291-2/+5
|
* Fix naming convention inconsistencyBenny Baumann2023-12-291-7/+7
|
* OpenFilesScreen: Make column sizing dynamic for file size, offset and inodeнаб2023-12-291-1/+26
| | | | | | | Previously this limited the size to single-digit-gigabytes(!). Now it can be single-digit-petabytes before going out of alignment. Fixes: Debian#1059369
* Add support for "truss" (FreeBSD equivalent of "strace")Daniel (dmilith) Dettlaff2023-12-291-6/+17
|
* Darwin: add NetworkIOMeter supportUeiWang2023-12-291-3/+63
|
* Relocate include of config.h from header to source modeuleBenny Baumann2023-12-2642-56/+26
|
* Document compilation issues and changed config.h inclusion rulesBenny Baumann2023-12-261-0/+5
|
* Minor code simplificationBenny Baumann2023-12-261-3/+1
|
* Convince IWYU to keep size_t/ssize_t via stddef.hBenny Baumann2023-12-261-1/+1
|

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