Searched refs:files (Results 1 - 25 of 30) sorted by relevance

12

/systemd/factory/etc/
H A Dnsswitch.conf3 passwd: files
4 shadow: files
5 group: files
6 hosts: files mymachines resolve myhostname
/systemd/src/test/
H A Dtest-conf-files.c24 #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 Dtest-install.c43 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 Dtest-copy.c89 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 Dinstall.h126 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 Dinstall.c33 #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 Dconf-parser.c29 #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 Dconf-files.c27 #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 Dkernel-install32 local -a files
35 readarray -t files < <(
45 for f in "${files[@]}"; do
/systemd/src/binfmt/
H A Dbinfmt.c29 #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 Dsysctl.c28 #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 Dmake-man-rules.py46 # 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 Djournal-internal.h88 OrderedHashmap *files; member in struct:sd_journal
122 files, so sd_j_enumerate_unique
H A Dsd-journal.c125 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 Dcatalog.c32 #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 Dmodules-load.c27 #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 Dlink-config.c26 #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 Dbus-xml-policy.h86 int policy_load(Policy *p, char **files);
H A Dbus-xml-policy.c25 #include "conf-files.h"
1013 int policy_load(Policy *p, char **files) { argument
1019 STRV_FOREACH(i, files) {
/systemd/src/hwdb/
H A Dhwdb.c26 #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 Dudevadm-hwdb.c26 #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 Dnetworkd-netdev.c23 #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 Dnetworkd-network.c24 #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 Dresolved-dns-trust-anchor.c23 #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 Dsysusers.c28 #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");

Completed in 57 milliseconds

12