summaryrefslogtreecommitdiffstats
path: root/man/sd_path_lookup.xml (follow)
Commit message (Collapse)AuthorAgeFilesLines
* man: condense version information for functionsAbderrahim Kitouni2023-09-191-2/+2
| | | | Use a more compact form like 'a, b, and c were added in version x'
* man: add version information for functionsAbderrahim Kitouni2023-09-041-0/+6
|
* man: add version infoAbderrahim Kitouni2023-08-291-4/+12
| | | | | | | | This tries to add information about when each option was added. It goes back to version 183. The version info is included from a separate file to allow generating it, which would allow more control on the formatting of the final output.
* sd-path: add support for XDG_STATE_HOMELennart Poettering2023-06-281-0/+1
|
* sd-path: export env. generators pathsDavid Tardon2023-01-211-0/+5
|
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* sd-path: drop "-dir" and "-path" suffixes from path enumsLennart Poettering2020-05-281-24/+24
| | | | | | | | | | | | | | | | | | | | | | | Clean up the naming of the sd-path enums. Previously, the more recently added fields where named in the form SD_PATH_xyz_DIR and SD_PATH_xyz_PATH, while the older fields where called just SD_PATH_xyz and SD_PATH_SEARCH_xyz. Let's clean this up, to come to a more unified way how we name this stuff. I opted to stick to the old naming, i.e. dropthe suffixes. It's a bit of a bike-shedding question of course, but I think there's a good reason to avoid the additional DIR and PATH suffixes: the enum prefix contains "PATH" anyway (i.e. "SD_PATH_"), so including PATH twice in each name is redundant. Moreover, the key difference between the enums with the "dir" and the "path" in the name is that the latter are *seach* paths, and I think this is better emphasized by sticking to the "SEARCH" in the name. Moreover dropping the suffixes makes the identifiers a lot shorter, in particular in the "systemd-path" list output. And that's always good. This means the naming pkgconfig file and in sd-path slightly deviate (though the mapping is very simple), but I think that's OK, given that this is developer facing and not user facing.
* sd-path: handle case of missing runtime dir in testZbigniew Jędrzejewski-Szmek2020-03-271-0/+8
| | | | Also document it in the man page.
* sd-path: export "systemd-network-path"Zbigniew Jędrzejewski-Szmek2020-03-271-0/+2
| | | | Inspired by https://lists.freedesktop.org/archives/systemd-devel/2020-March/044169.html.
* path: show various systemd directories and search paths tooZbigniew Jędrzejewski-Szmek2020-03-271-0/+23
| | | | | | | | | | | | | | | | | | | | So far we had various ad hoc APIs to query search paths: systemd-analyze unit-paths, lookup_paths_log(), the pkgconfig file, debug logs emitted by systemd-analyze cat-config. But answering a simple question "what is the search path for tmpfiles, sysusers, .network files, ..." is surprisingly hard. I think we should have an api that makes it easy to query this. Pkgconfig is not bad, but it is primarily a development tool, so it's not available in many context. Also it can't provide support for paths which are influenced by environment variables, and I'd like to be able to answer the question "what is the search path for ..., assuming that VAR_FOO=... is set?". Extending sd-path to support more of our internal paths seems to be most flexible solution. We already have systemd-path which provides a nice way to query, and we can add stuff like optional descriptions later on. We we essentially get a nice programmatic and commmandline apis for the price of one.
* man: add sd_path_lookup(3)Zbigniew Jędrzejewski-Szmek2020-03-271-0/+182