summaryrefslogtreecommitdiffstats
path: root/src/basic/psi-util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Include <threads.h> if possible to get thread_local definitionCristian Rodríguez2023-03-061-0/+1
| | | | | | | | | | | | IN C23, thread_local is a reserved keyword and we shall therefore do nothing to redefine it. glibc has it defined for older standard version with the right conditions. v2 by Yu Watanabe: Move the definition to missing_threads.h like the way we define e.g. missing syscalls or missing definitions, and include it by the users. Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>
* psi-util: fix error handlingLennart Poettering2023-02-281-9/+15
| | | | | | | We checked ERRNO_IS_NOT_SUPPORTED on a possible positive non-error code, which isn't right. Fix that. Also add caching, since we are about to call this more often.
* shared: move psi-util.[ch] to basic/ so that we can use it in sd-eventLennart Poettering2023-02-181-0/+123