/systemd/factory/etc/ |
H A D | nsswitch.conf | 3 passwd: files 4 shadow: files 5 group: files 6 hosts: files mymachines resolve myhostname
|
/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/shared/ |
H A D | install.h | 126 int unit_file_enable(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes); 127 int unit_file_disable(UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFileChange **changes, unsigned *n_changes); 128 int unit_file_reenable(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes); 129 int unit_file_link(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes); 130 int unit_file_preset(UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFilePresetMode mode, bool force, UnitFileChange **changes, unsigned *n_changes); 132 int unit_file_mask(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes); 133 int unit_file_unmask(UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFileChange **changes, unsigned *n_changes); 136 int 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);
|
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...] |
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) {
|
/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/kernel-install/ |
H A D | kernel-install | 32 local -a files 35 readarray -t files < <( 45 for f in "${files[@]}"; do
|
/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/tools/ |
H A D | make-man-rules.py | 46 # 1. Create, update, or remove source .xml files in man/ 106 def mjoin(files): 107 return ' \\\n\t'.join(sorted(files) or '#')
|
/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 | sd-journal.c | 125 ORDERED_HASHMAP_FOREACH(f, j->files, i) 796 * in two (or more) journal files, and which shall all be 831 ORDERED_HASHMAP_FOREACH(f, j->files, i) { 1242 if (ordered_hashmap_get(j->files, path)) 1245 if (ordered_hashmap_size(j->files) >= JOURNAL_FILES_MAX) { 1246 log_debug("Too many open journal files, not adding %s.", path); 1259 r = ordered_hashmap_put(j->files, f->path, f); 1311 f = ordered_hashmap_get(j->files, path); 1322 ordered_hashmap_remove(j->files, f->path); 1333 j->unique_file = ordered_hashmap_next(j->files, [all...] |
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/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/bus-proxyd/ |
H A D | bus-xml-policy.h | 86 int policy_load(Policy *p, char **files);
|
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/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);
|
/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/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/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");
|