summaryrefslogtreecommitdiffstats
path: root/Affinity.h
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Enable affinity support for non-LinuxChristian Göttsche2021-07-181-5/+5
| | | | | sched_getaffinity() and sched_setaffinity() are also available on BSDs. Remove the Linux restraint.
* Use unsigned types for CPU counts and associated variablesChristian Göttsche2021-03-191-4/+4
|
* Mark several non-modified pointer variables constChristian Göttsche2021-01-111-1/+1
|
* IWYU update (FreeBSD)Christian Goettsche2020-11-191-4/+9
|
* Make all required includes explicitBenny Baumann2020-10-181-0/+5
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Make --enable-hwloc and --enable-linux-affinity mutual exclusiveChristian Göttsche2020-09-241-0/+4
| | | | | They can not be supported both at the same time. Fail configure step instead of silently only use hwloc.
* Merge identical ifdefs in Affinity.hHugo Musso Gualandi2020-09-121-7/+1
|
* Clean up some code duplication in the header filesHugo Musso Gualandi2020-09-121-8/+0
| | | | | | | | | | | | | PR htop-dev/htop#70 got rid of the infrastructure for generating header files, but it left behind some code duplication. Some of cases are things that belong in the header file and don't need to be repeated in the C file. Other cases are things that belong in the C file and don't need to be in the header file. In this commit I tried to fix all of these that I could find. When given a choice I preferred keeping things out of the header file, unless they were being used by someone else.
* Further, minor cleanups to headers post-MakeHeadersNathan Scott2020-09-081-2/+0
| | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
* Remove superfluous 'extern's from function declarations.Zev Weiss2020-09-031-7/+7
| | | | | | | | Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
* 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.
* Resolve compiler warnings and errors relating to the Arg unionNathan Scott2020-08-201-2/+3
| | | | | | | | | | | | Promote the Arg union to a core data type in Object.c such that it is visible everywhere (many source files need it), and correct declarations of several functions that use it. The Process_sendSignal function is also corrected to have the expected return type (bool, not void) - an error being masked by ignoring this not-quite-harmless warning. I've also added error checking to the kill(2) call here, which was previously overlooked / missing (?).
* Re-generate all headers with latest scripts/MakeHeader.pyNathan Scott2020-08-181-7/+7
| | | | Sync-up missing extern declarations for many functions.
* Portable affinity using hwlocHisham2016-02-141-2/+7
|
* Sorry about the mega-patch.Hisham Muhammad2015-01-211-1/+21
| | | | | This is a work-in-progress, code is currently broken. (Some actions, and notably, the header, are missing.)
* Changes in object model: separate class objects to store vtable. Also, nicer ↵Hisham Muhammad2012-12-051-0/+27
UTF-8 display of big numbers.

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