summaryrefslogtreecommitdiffstats
path: root/generic/fdstat_sysctl.c
Commit message (Collapse)AuthorAgeFilesLines
* DragonFlyBSD: build fixesChristian Göttsche2024-01-201-2/+2
|
* Merge branch 'style-header-consistency' of https://github.com/BenBE/htop ↵Nathan Scott2023-10-101-2/+2
|\ | | | | | | into BenBE-style-header-consistency
| * 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-191-0/+83

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