summaryrefslogtreecommitdiffstats
path: root/src/analyze/analyze-verify-util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* various: use RET_GATHERZbigniew Jędrzejewski-Szmek2023-07-131-39/+17
| | | | No functional change indentended.
* basic: add RuntimeScope enumLennart Poettering2023-03-101-1/+8
| | | | | | | | | | | | In various tools and services we have a per-system and per-user concept. So far we sometimes used a boolean indicating whether we are in system mode, or a reversed boolean indicating whether we are in user mode, or the LookupScope enum used by the lookup path logic. Let's address that, in introduce a common enum for this, we can use all across the board. This is mostly just search/replace, no actual code changes.
* analyze: basename() → path_extract_filename()Lennart Poettering2022-12-231-6/+6
|
* analyze: use the same error variable name as everywhere elseZbigniew Jędrzejewski-Szmek2022-10-111-3/+3
|
* tree-wide: use ASSERT_PTR moreDavid Tardon2022-09-131-2/+1
|
* tree-wide: port things dirname_malloc() → path_extract_directory()Lennart Poettering2022-08-231-10/+17
|
* Rename UnitFileScope to LookupScopeZbigniew Jędrzejewski-Szmek2022-03-291-1/+1
| | | | | | | | | As suggested in https://github.com/systemd/systemd/pull/22649/commits/8b3ad3983f5440eef812b34e5ed862ca59fdf7f7#r837345892 The define is generalized and moved to path-lookup.h, where it seems to fit better. This allows a recursive include to be removed and in general makes things simpler.
* strv: make iterator in STRV_FOREACH() declaread in the loopYu Watanabe2022-03-191-5/+1
| | | | This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
* analyze: split out "verify" verb into own .c/.h fileLennart Poettering2022-02-211-0/+351
This renames the old analyze-verify.[ch] pair → analyze-verify-util.[ch], because it's used by the test logic as well, and by keeping it separate from the verify verb logic we don't have to import the arg_xyz variables.