summaryrefslogtreecommitdiffstats
path: root/openbsd/Platform.h
Commit message (Collapse)AuthorAgeFilesLines
* OpenBSD updateChristian Göttsche2020-12-061-0/+3
| | | | | | - compilation failures like `return &this->this;` -> `return &this->super;` - iwyu update - misc cleanup
* Unify naming of first argument of Platform_getBatteryChristian Göttsche2020-11-251-1/+1
| | | | Use percent throughout
* Minor cleanups to platform-specific init and doneNathan Scott2020-11-191-2/+6
| | | | | | | Move platform-specific code out of the htop.c main function and into the platform sub-directories - primarily this is the Linux procfs path check and sensors setup/teardown; not needed on any other platforms. No functional changes here.
* Add missing OpenBSD battery function declarationNathan Scott2020-11-191-0/+2
|
* Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBEDaniel Lange2020-11-151-4/+4
|\
| * Spacing around operatorsBenny Baumann2020-11-021-4/+4
| |
* | Split platform dependent parts for file locks screenBenny Baumann2020-11-141-0/+8
|/
* FreeBSD: implement Platform_getDiskIO()Christian Goettsche2020-10-291-3/+2
|
* Improve handling of no data in Disk and Network IO MetersChristian Göttsche2020-10-261-2/+4
|
* Drop unused Platform functions Platform_setTasksValuesChristian Göttsche2020-10-221-2/+0
|
* Add NetworkIOMeterChristian Göttsche2020-10-161-0/+5
|
* Mark Object instances constChristian Göttsche2020-10-071-1/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Add DiskIOMeter for IO read/write usageChristian Göttsche2020-10-031-0/+2
|
* Use strict function prototypesChristian Göttsche2020-09-181-2/+2
| | | | int foo(); declares a function taking any number of arguments.
* Further, minor cleanups to headers post-MakeHeadersNathan Scott2020-09-081-11/+1
| | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
* Axe automated header generation.Zev Weiss2020-09-031-2/+0
| | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
* Fix CPU usage on OpenBSDAntoine Motet2018-12-161-15/+0
| | | | | | | | | | | | | | | | | | The current OpenBSD-specific CPU usage code is broken. The `cpu` parameter of `Platform_setCPUValues` is an integer in the interval [0, cpuCount], not [0, cpuCount-1]: Actual CPUs are numbered from 1, the “zero” CPU is a “virtual” one which represents the average of actual CPUs (I guess it’s inherited from Linux’s `/proc/stats`). This off-by-one error leads to random crashes. Moreover, the displayed CPU usage is more detailed with system, user and nice times. I made the OpenBSD CPU code more similar to the Linux CPU code, removing a few old bits from OpenBSD’s top(1). I think it will be easier to understand, maintain and evolve. I’d love some feedback from experienced OpenBSD people.
* Mark signal tables 'const'Explorer092016-08-301-2/+2
| | | | | | | | | Specifically, Platform_signals[] and Platform_numberOfSignals. Both are not supposed to be mutable. Marking them 'const' puts them into rodata sections in binary. And for Platform_numberOfSignals, this aids optimization (aids only Link Time Optimization for now). :) Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Update generated headers.Hisham2016-02-021-1/+3
|
* OpenBSD fixes and updatesMichael McConville2016-01-021-0/+1
| | | | | | | I forgot how awful the process name logic was. It was an initial hack to get it running, and I forgot to clean it up. I also had to change a few includes and error function uses.
* Regenerate platform-dependent headers.Hisham Muhammad2015-10-191-1/+3
| | | | Closes #293.
* Add OpenBSD signalsMichael McConville2015-10-061-0/+5
|
* (Very) initial working OpenBSD portMichael McConville2015-09-181-0/+63

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