summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Use 'fp' name for local 'FILE*' variables.Explorer092024-04-171-5/+5
| | | | | | | | | | | It is inappropriate to use the 'fd' name for 'FILE*' variables. POSIX file descriptiors are of type 'int' and are distinguished from ISO C stream pointers (type 'FILE*'). Rename these variables to 'fp', which is a preferred naming in POSIX. (Note that ISO C preferred the 'stream' name for the variables.) No code changes.
* DragonFlyBSD: build fixesChristian Göttsche2024-01-201-2/+2
|
* Merge branch 'style-header-consistency' of https://github.com/BenBE/htop ↵Nathan Scott2023-10-104-2/+5
|\ | | | | | | into BenBE-style-header-consistency
| * Make header sort order consistent againBenny Baumann2023-05-243-0/+3
| |
| * Always mark config.h with IWYU pragma: keepBenny Baumann2023-05-241-2/+2
| |
* | Replace isnan() with better comparisons (isgreater(), etc.)Explorer092023-08-181-3/+0
|/ | | | | | | | | | | | | | | | | | The standard isnan() function is defined to never throw FP exceptions even when the argument is a "signaling" NaN. This makes isnan() more expensive than (x != x) expression unless the compiler flag '-fno-signaling-nans' is given. Introduce functions isNaN(), isNonnegative(), isPositive(), sumPositiveValues() and compareRealNumbers(), and replace isnan() in htop's codebase with the new functions. These functions utilize isgreater() and isgreaterequal() comparisons, which do not throw FP exceptions on "quiet" NaNs, which htop uses extensively. With isnan() removed, there is no need to suppress the warning '-Wno-c11-extensions' in FreeBSD. Remove the code from 'configure.ac'. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Update include order for fdstat_sysctl.cXimalas2023-02-251-1/+1
| | | | Some weird systems need you to include sys/types.h before any other sys/ headers (e.g. on FreeBSD).
* Implement File Descriptor Meter support for DragonflyBSD/FreeBSD/NetBSDBenny Baumann2023-02-192-0/+96
|
* Implement FreeBSD support for minimum ZFS ARC sizeBenny Baumann2022-05-301-0/+6
|
* Improve String_contains_i to allow for multiple termsDaniel Lange2022-03-251-1/+1
| | | | | | | | | | | This enables: * Multiple filters in the main panel and strace etc. views * Multiple search terms The search terms are separated by "|" and are still fixed strings matched case-insensitive. Added a multi flag at request of BenBE.
* Add a fix to use gettimeofday if monotonic is not available.Lutz Mader2021-11-281-2/+6
|
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-228-8/+8
|
* Align descriptive commentsBenny Baumann2021-07-151-1/+1
|
* Fix typo in Generic_gettime_realtime on old MacBenny Baumann2021-07-011-1/+1
| | | | Fixes #673
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-102-3/+4
|
* cleaned up includes with iwyumayurdahibhate2021-05-102-4/+6
|
* Align parameter name of Generic_gettime_realtimeChristian Göttsche2021-05-101-1/+1
| | | | Align with name in implementation.
* Request the realtime and monotonic clock times once per sampleNathan Scott2021-04-052-0/+76
| | | | | | | | | | | | | | | | Refactor the sample time code to make one call to gettimeofday (aka the realtime clock in clock_gettime, when available) and one to the monotonic clock. Stores each in more appropriately named ProcessList fields for ready access when needed. Every platform gets the opportunity to provide their own clock code, and the existing Mac OS X specific code is moved below darwin instead of in Compat. A couple of leftover time(2) calls are converted to use these ProcessList fields as well, instead of yet again sampling the system clock. Related to https://github.com/htop-dev/htop/pull/574
* Ensure buffer for gethostname(2) is properly terminatedBenny Baumann2021-03-041-0/+1
|
* Resolve trailing-whitespace failure in CI (merge issue)Nathan Scott2021-03-041-1/+1
|
* Fix include file ordering of generic headersNathan Scott2021-03-043-4/+7
|
* Move generic (shared) code into its own sub-directoryNathan Scott2021-03-046-0/+249
Code that is shared across some (but not all) platforms is moved into a 'generic' home. Makefile.am cleanups to match plus some minor alphabetic reordering/formatting. As discussed in https://github.com/htop-dev/htop/pull/553

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