/systemd/src/test/ |
H A D | test-conf-files.c | 24 #include "conf-files.h" 34 static void setup_test_dir(char *tmp_dir, const char *files, ...) { argument 39 va_start(ap, files); 40 while (files != NULL) { 41 _cleanup_free_ char *path = strappend(tmp_dir, files); 43 files = va_arg(ap, const char *); 49 char tmp_dir[] = "/tmp/test-conf-files-XXXXXX";
|
H A D | test-install.c | 43 const char *const files[] = { "avahi-daemon.service", NULL }; local 70 r = unit_file_enable(UNIT_FILE_SYSTEM, false, NULL, (char**) files, false, &changes, &n_changes); 75 r = unit_file_enable(UNIT_FILE_SYSTEM, false, NULL, (char**) files, false, &changes, &n_changes); 81 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, files[0], &state); 90 r = unit_file_disable(UNIT_FILE_SYSTEM, false, NULL, (char**) files, &changes, &n_changes); 96 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, files[0], &state); 104 r = unit_file_mask(UNIT_FILE_SYSTEM, false, NULL, (char**) files, false, &changes, &n_changes); 107 r = unit_file_mask(UNIT_FILE_SYSTEM, false, NULL, (char**) files, false, &changes, &n_changes); 113 r = unit_file_get_state(UNIT_FILE_SYSTEM, NULL, files[0], &state); 121 r = unit_file_unmask(UNIT_FILE_SYSTEM, false, NULL, (char**) files, [all...] |
H A D | test-copy.c | 89 char **files = STRV_MAKE("file", "dir1/file", "dir1/dir2/file", "dir1/dir2/dir3/dir4/dir5/file"); local 97 STRV_FOREACH(p, files) { 114 STRV_FOREACH(p, files) {
|
/systemd/src/binfmt/ |
H A D | binfmt.c | 29 #include "conf-files.h" 182 _cleanup_strv_free_ char **files = NULL; local 185 r = conf_files_list_nulstr(&files, ".conf", NULL, conf_file_dirs); 187 log_error_errno(r, "Failed to enumerate binfmt.d files: %m"); 194 STRV_FOREACH(f, files) {
|
/systemd/src/sysctl/ |
H A D | sysctl.c | 28 #include "conf-files.h" 262 _cleanup_strv_free_ char **files = NULL; local 265 r = conf_files_list_nulstr(&files, ".conf", NULL, conf_file_dirs); 267 log_error_errno(r, "Failed to enumerate sysctl.d files: %m"); 271 STRV_FOREACH(f, files) {
|
/systemd/src/basic/ |
H A D | conf-files.c | 27 #include "conf-files.h" 93 char **files, **p; local 112 log_debug_errno(r, "Failed to search for files in %s, ignoring: %m", *p); 115 files = hashmap_get_strv(fh); 116 if (!files) 119 qsort_safe(files, hashmap_size(fh), sizeof(char *), base_cmp); 120 *strv = files;
|
/systemd/src/journal/ |
H A D | journal-internal.h | 88 OrderedHashmap *files; member in struct:sd_journal 122 files, so sd_j_enumerate_unique
|
H A D | catalog.c | 32 #include "conf-files.h" 460 _cleanup_strv_free_ char **files = NULL; local 481 r = conf_files_list_strv(&files, ".catalog", root, dirs); 483 log_error_errno(r, "Failed to get catalog files: %m"); 487 STRV_FOREACH(f, files) {
|
/systemd/src/modules-load/ |
H A D | modules-load.c | 27 #include "conf-files.h" 254 _cleanup_strv_free_ char **files = NULL; local 263 k = conf_files_list_nulstr(&files, ".conf", NULL, conf_file_dirs); 265 log_error_errno(k, "Failed to enumerate modules-load.d files: %m"); 271 STRV_FOREACH(fn, files) {
|
/systemd/src/network/ |
H A D | networkd-netdev.c | 23 #include "conf-files.h" 691 _cleanup_strv_free_ char **files = NULL; local 701 r = conf_files_list_strv(&files, ".netdev", NULL, network_dirs); 703 return log_error_errno(r, "Failed to enumerate netdev files: %m"); 705 STRV_FOREACH_BACKWARDS(f, files) {
|
H A D | networkd-network.c | 24 #include "conf-files.h" 186 _cleanup_strv_free_ char **files = NULL; local 195 r = conf_files_list_strv(&files, ".network", NULL, network_dirs); 197 return log_error_errno(r, "Failed to enumerate network files: %m"); 199 STRV_FOREACH_BACKWARDS(f, files) {
|
/systemd/src/udev/net/ |
H A D | link-config.c | 26 #include "conf-files.h" 213 _cleanup_strv_free_ char **files; local 226 r = conf_files_list_strv(&files, ".link", NULL, link_dirs); 228 return log_error_errno(r, "failed to enumerate link files: %m"); 230 STRV_FOREACH_BACKWARDS(f, files) {
|
/systemd/src/resolve/ |
H A D | resolved-dns-trust-anchor.c | 23 #include "conf-files.h" 397 _cleanup_strv_free_ char **files = NULL; local 405 r = conf_files_list_nulstr(&files, suffix, NULL, trust_anchor_dirs); 407 return log_error_errno(r, "Failed to enumerate %s trust anchor files: %m", suffix); 409 STRV_FOREACH(f, files) {
|
/systemd/src/shared/ |
H A D | conf-parser.c | 29 #include "conf-files.h" 402 _cleanup_strv_free_ char **files = NULL; local 406 r = conf_files_list_nulstr(&files, ".conf", NULL, conf_file_dirs); 416 STRV_FOREACH(fn, files) {
|
H A D | install.c | 33 #include "conf-files.h" 430 * path that is marked, as well as all files 1498 char **files, 1518 STRV_FOREACH(i, files) { 1544 char **files, 1566 STRV_FOREACH(i, files) { 1623 char **files, 1650 STRV_FOREACH(i, files) { 1709 char **files, 1753 STRV_FOREACH(f, files) { 1494 unit_file_mask( UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) argument 1540 unit_file_unmask( UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFileChange **changes, unsigned *n_changes) argument 1619 unit_file_link( UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) argument 1705 unit_file_add_dependency( UnitFileScope scope, bool runtime, const char *root_dir, char **files, const char *target, UnitDependency dep, bool force, UnitFileChange **changes, unsigned *n_changes) argument 1782 unit_file_enable( UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) argument 1831 unit_file_disable( UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFileChange **changes, unsigned *n_changes) argument 1877 unit_file_reenable( UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) argument 2073 _cleanup_strv_free_ char **files = NULL; local 2161 execute_preset( UnitFileScope scope, InstallContext *plus, InstallContext *minus, const LookupPaths *paths, const char *config_path, const char *root_dir, char **files, UnitFilePresetMode mode, bool force, UnitFileChange **changes, unsigned *n_changes) argument 2241 unit_file_preset( UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFilePresetMode mode, bool force, UnitFileChange **changes, unsigned *n_changes) argument [all...] |
/systemd/src/hwdb/ |
H A D | hwdb.c | 26 #include "conf-files.h" 597 char **files, **f; local 616 r = conf_files_list_strv(&files, ".hwdb", arg_root, conf_file_dirs); 618 return log_error_errno(r, "failed to enumerate hwdb files: %m"); 620 STRV_FOREACH(f, files) { 624 strv_free(files);
|
/systemd/src/udev/ |
H A D | udevadm-hwdb.c | 26 #include "conf-files.h" 602 char **files, **f; local 626 err = conf_files_list_strv(&files, ".hwdb", root, conf_file_dirs); 628 log_error_errno(err, "failed to enumerate hwdb files: %m"); 632 STRV_FOREACH(f, files) { 636 strv_free(files);
|
H A D | udev-rules.c | 33 #include "conf-files.h" 1643 char **files, **f; local 1665 r = conf_files_list_strv(&files, ".rules", NULL, rules_dirs); 1667 log_error_errno(r, "failed to enumerate rules files: %m"); 1675 STRV_FOREACH(f, files) 1678 STRV_FOREACH(f, files) 1681 strv_free(files);
|
/systemd/src/bus-proxyd/ |
H A D | bus-xml-policy.c | 25 #include "conf-files.h" 1013 int policy_load(Policy *p, char **files) { argument 1019 STRV_FOREACH(i, files) {
|
/systemd/src/core/ |
H A D | dbus-manager.c | 1620 int (*call)(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], bool force, UnitFileChange **changes, unsigned *n_changes), 1670 static int unit_file_preset_without_mode(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes) { argument 1671 return unit_file_preset(scope, runtime, root_dir, files, UNIT_FILE_PRESET_FULL, force, changes, n_changes); 1731 int (*call)(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], UnitFileChange **changes, unsigned *n_changes), 1616 method_enable_unit_files_generic( sd_bus_message *message, Manager *m, const char *verb, int (*call)(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], bool force, UnitFileChange **changes, unsigned *n_changes), bool carries_install_info, sd_bus_error *error) argument 1727 method_disable_unit_files_generic( sd_bus_message *message, Manager *m, const char *verb, int (*call)(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], UnitFileChange **changes, unsigned *n_changes), sd_bus_error *error) argument
|
/systemd/src/sysusers/ |
H A D | sysusers.c | 28 #include "conf-files.h" 695 /* Make a backup of the old files */ 720 /* And make the new files count */ 784 /* Let's check the files directly */ 1838 _cleanup_strv_free_ char **files = NULL; local 1841 r = conf_files_list_nulstr(&files, ".conf", arg_root, conf_file_dirs); 1843 log_error_errno(r, "Failed to enumerate sysusers.d files: %m"); 1847 STRV_FOREACH(f, files) { 1893 log_error_errno(r, "Failed to write files: %m");
|
/systemd/src/tmpfiles/ |
H A D | tmpfiles.c | 44 #include "conf-files.h" 75 /* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates 416 /* Do not delete read-only files owned by root */ 507 /* Skip files for which the sticky bit is 537 /* Keep files on this level around if this is 964 log_error("Setting file flags is only supported on regular files and directories, cannot set on '%s'.", path); 1191 return log_error_errno(r, "Failed to copy files to %s: %m", i->path); 2101 "Creates, deletes and cleans up volatile and temporary files and directories.\n\n" 2104 " --create Create marked files/directories\n" 2106 " --remove Remove marked files/directorie 2313 _cleanup_strv_free_ char **files = NULL; local [all...] |