summaryrefslogtreecommitdiffstats
path: root/Compat.h
Commit message (Collapse)AuthorAgeFilesLines
* Update '__STDC_VERSION__' check with C23Explorer0912 days1-3/+2
| | | | `__STDC_VERSION__` will be defined as 202311L for C23.
* Relocate include of config.h from header to source modeuleBenny Baumann2023-12-261-2/+0
|
* Convince IWYU to keep size_t/ssize_t via stddef.hBenny Baumann2023-12-261-1/+1
|
* Compat: implement static_assert() shim for pre-C11Ivan Shapovalov2023-04-231-0/+23
|
* Linux: support openat() without readlinkat()Christian Göttsche2022-08-091-0/+5
| | | | | | | | | | | | | linux/LinuxProcessList.c:1094:52: error: format specifies type 'char *' but the argument has type 'openat_arg_t' (aka 'int') [-Werror,-Wformat] xSnprintf(filename, sizeof(filename), "%s/cwd", procFd); ~~ ^~~~~~ %d linux/LinuxProcessList.c:1333:44: error: format specifies type 'char *' but the argument has type 'openat_arg_t' (aka 'int') [-Werror,-Wformat] xSnprintf(path, sizeof(path), "%s/exe", procFd); ~~ ^~~~~~ %d Supersedes: #1025
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Request the realtime and monotonic clock times once per sampleNathan Scott2021-04-051-2/+0
| | | | | | | | | | | | | | | | 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
* Support clock_gettime() on OSX El Capitan and earlierChristian Göttsche2020-12-181-0/+2
|
* IWYU updateChristian Göttsche2020-12-061-1/+1
|
* Resolve conversion from ssize_t to int for readlink return valueChristian Göttsche2020-12-051-5/+5
|
* Convert personal copyright authorship to teamChristian Göttsche2020-12-041-1/+1
|
* Add compat mode for systems without openat(2)Christian Göttsche2020-11-281-0/+28
|
* Compatibility function for faccessatBenny Baumann2020-11-241-0/+5
|
* Add compat wrapper for readlinkatBenny Baumann2020-11-091-0/+7
|
* Add compat wrapper for fstatatChristian Göttsche2020-10-291-0/+19

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