/systemd-251/src/shared/ |
D | install.c | 103 static int in_search_path(const LookupPaths *lp, const char *path) { in in_search_path() argument 112 return path_strv_contains(lp->search_path, parent); in in_search_path() 136 static int path_is_generator(const LookupPaths *lp, const char *path) { in path_is_generator() argument 139 assert(lp); in path_is_generator() 146 return path_equal_ptr(parent, lp->generator) || in path_is_generator() 147 path_equal_ptr(parent, lp->generator_early) || in path_is_generator() 148 path_equal_ptr(parent, lp->generator_late); in path_is_generator() 151 static int path_is_transient(const LookupPaths *lp, const char *path) { in path_is_transient() argument 154 assert(lp); in path_is_transient() 161 return path_equal_ptr(parent, lp->transient); in path_is_transient() [all …]
|
D | dns-domain.c | 612 char ln[DNS_LABEL_MAX], lp[DNS_LABEL_MAX]; in dns_name_startswith() local 614 r = dns_label_unescape(&p, lp, sizeof lp, 0); in dns_name_startswith() 626 if (ascii_strcasecmp_n(ln, lp, r) != 0) in dns_name_startswith()
|
/systemd-251/src/basic/ |
D | path-lookup.c | 511 LookupPaths *lp, in lookup_paths_init() argument 529 assert(lp); in lookup_paths_init() 719 *lp = (LookupPaths) { in lookup_paths_init() 744 int lookup_paths_init_or_warn(LookupPaths *lp, LookupScope scope, LookupPathsFlags flags, const cha… in lookup_paths_init_or_warn() argument 747 r = lookup_paths_init(lp, scope, flags, root_dir); in lookup_paths_init_or_warn() 754 void lookup_paths_free(LookupPaths *lp) { in lookup_paths_free() argument 755 if (!lp) in lookup_paths_free() 758 lp->search_path = strv_free(lp->search_path); in lookup_paths_free() 760 lp->persistent_config = mfree(lp->persistent_config); in lookup_paths_free() 761 lp->runtime_config = mfree(lp->runtime_config); in lookup_paths_free() [all …]
|
D | unit-file.c | 200 static bool lookup_paths_mtime_exclude(const LookupPaths *lp, const char *path) { in lookup_paths_mtime_exclude() argument 203 return streq_ptr(path, lp->generator) || in lookup_paths_mtime_exclude() 204 streq_ptr(path, lp->generator_early) || in lookup_paths_mtime_exclude() 205 streq_ptr(path, lp->generator_late) || in lookup_paths_mtime_exclude() 206 streq_ptr(path, lp->transient) || in lookup_paths_mtime_exclude() 207 streq_ptr(path, lp->persistent_control) || in lookup_paths_mtime_exclude() 208 streq_ptr(path, lp->runtime_control); in lookup_paths_mtime_exclude() 213 bool lookup_paths_timestamp_hash_same(const LookupPaths *lp, uint64_t timestamp_hash, uint64_t *ret… in lookup_paths_timestamp_hash_same() argument 218 STRV_FOREACH(dir, lp->search_path) { in lookup_paths_timestamp_hash_same() 221 if (lookup_paths_mtime_exclude(lp, *dir)) in lookup_paths_timestamp_hash_same() [all …]
|
D | unit-file.h | 37 bool lookup_paths_timestamp_hash_same(const LookupPaths *lp, uint64_t timestamp_hash, uint64_t *ret… 49 const LookupPaths *lp,
|
D | path-lookup.h | 62 int lookup_paths_init(LookupPaths *lp, LookupScope scope, LookupPathsFlags flags, const char *root_… 63 int lookup_paths_init_or_warn(LookupPaths *lp, LookupScope scope, LookupPathsFlags flags, const cha…
|
/systemd-251/src/systemctl/ |
D | systemctl-edit.c | 27 _cleanup_(lookup_paths_free) LookupPaths lp = {}; in verb_cat() 40 r = lookup_paths_init_or_warn(&lp, arg_scope, 0, arg_root); in verb_cat() 62 …r = unit_find_paths(bus, *name, &lp, false, &cached_name_map, &cached_id_map, &fragment_path, &dro… in verb_cat() 379 _cleanup_(lookup_paths_free) LookupPaths lp = {}; in find_paths_to_edit() 385 r = lookup_paths_init(&lp, arg_scope, 0, arg_root); in find_paths_to_edit() 394 … r = unit_find_paths(bus, *name, &lp, false, &cached_name_map, &cached_id_map, &path, &unit_paths); in find_paths_to_edit() 399 … r = unit_find_paths(bus, *name, &lp, true, &cached_name_map, &cached_id_map, &path, &unit_paths); in find_paths_to_edit() 417 r = unit_file_create_new(&lp, unit_name, in find_paths_to_edit() 439 … r = unit_file_create_copy(&lp, unit_name, path, &new_path, &tmp_path); in find_paths_to_edit() 445 … r = unit_file_create_new(&lp, unit_name, ".d/override.conf", unit_paths, &new_path, &tmp_path); in find_paths_to_edit() [all …]
|
D | systemctl-util.c | 386 int unit_file_find_path(LookupPaths *lp, const char *unit_name, char **ret_unit_path) { in unit_file_find_path() argument 387 assert(lp); in unit_file_find_path() 390 STRV_FOREACH(p, lp->search_path) { in unit_file_find_path() 421 LookupPaths *lp, in unit_find_paths() argument 448 assert(lp); in unit_find_paths() 509 … r = unit_file_build_name_map(lp, NULL, cached_id_map, cached_name_map, NULL); in unit_find_paths() 525 r = unit_file_find_dropin_paths(arg_root, lp->search_path, NULL, in unit_find_paths() 558 LookupPaths *lp, in unit_find_template_path() argument 567 r = unit_file_find_path(lp, unit_name, &f); in unit_find_template_path() 590 r = unit_file_find_path(lp, t, ret_fragment_path); in unit_find_template_path() [all …]
|
D | systemctl-util.h | 37 int unit_file_find_path(LookupPaths *lp, const char *unit_name, char **ret_unit_path); 38 int unit_find_paths(sd_bus *bus, const char *unit_name, LookupPaths *lp, bool force_client_side, Ha… 40 int unit_is_masked(sd_bus *bus, LookupPaths *lp, const char *name); 41 int unit_exists(LookupPaths *lp, const char *unit);
|
D | systemctl-enable.c | 142 _cleanup_(lookup_paths_free) LookupPaths lp = {}; in verb_enable() 144 r = lookup_paths_init_or_warn(&lp, arg_scope, 0, arg_root); in verb_enable() 149 r = unit_exists(&lp, *name); in verb_enable()
|
/systemd-251/test/fuzz/fuzz-udev-rules/ |
D | 50-udev-default.rules | 52 KERNEL=="parport[0-9]*", GROUP="lp" 53 SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp" 54 SUBSYSTEM=="ppdev", GROUP="lp" 55 KERNEL=="lp[0-9]*", GROUP="lp" 56 KERNEL=="irlpt[0-9]*", GROUP="lp" 57 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
|
D | 99-systemd.rules | 54 SUBSYSTEM=="usb", KERNEL=="lp*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="printer.target"
|
/systemd-251/rules.d/ |
D | 50-udev-default.rules.in | 67 KERNEL=="parport[0-9]*", GROUP="lp" 68 SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp" 69 SUBSYSTEM=="ppdev", GROUP="lp" 70 KERNEL=="lp[0-9]*", GROUP="lp" 71 KERNEL=="irlpt[0-9]*", GROUP="lp" 72 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
|
D | 99-systemd.rules.in | 54 SUBSYSTEM=="usb", KERNEL=="lp*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="printer.target", ENV{SYSTEMD_…
|
/systemd-251/src/test/ |
D | test-unit-file.c | 28 _cleanup_(lookup_paths_free) LookupPaths lp = {}; in TEST() 38 assert_se(lookup_paths_init(&lp, LOOKUP_SCOPE_SYSTEM, 0, NULL) >= 0); in TEST() 40 assert_se(unit_file_build_name_map(&lp, &mtime, &unit_ids, &unit_names, NULL) == 1); in TEST() 53 r = unit_file_build_name_map(&lp, &mtime, &unit_ids, &unit_names, NULL); in TEST()
|
/systemd-251/src/analyze/ |
D | analyze-unit-files.c | 18 _cleanup_(lookup_paths_free) LookupPaths lp = {}; in verb_unit_files() 24 r = lookup_paths_init_or_warn(&lp, arg_scope, 0, NULL); in verb_unit_files() 28 r = unit_file_build_name_map(&lp, NULL, &unit_ids, &unit_names, NULL); in verb_unit_files()
|
/systemd-251/src/sysv-generator/ |
D | sysv-generator.c | 707 static int enumerate_sysv(const LookupPaths *lp, Hashmap *all_services) { in enumerate_sysv() argument 711 assert(lp); in enumerate_sysv() 750 r = unit_file_exists(LOOKUP_SCOPE_SYSTEM, lp, name); in enumerate_sysv() 788 static int set_dependencies_from_rcnd(const LookupPaths *lp, Hashmap *all_services) { in set_dependencies_from_rcnd() argument 794 assert(lp); in set_dependencies_from_rcnd() 888 _cleanup_(lookup_paths_free) LookupPaths lp = {}; in run() 894 … r = lookup_paths_init_or_warn(&lp, LOOKUP_SCOPE_SYSTEM, LOOKUP_PATHS_EXCLUDE_GENERATED, NULL); in run() 902 r = enumerate_sysv(&lp, all_services); in run() 906 r = set_dependencies_from_rcnd(&lp, all_services); in run()
|
/systemd-251/src/libsystemd/sd-path/ |
D | sd-path.c | 603 _cleanup_(lookup_paths_free) LookupPaths lp = {}; in get_search() 607 r = lookup_paths_init(&lp, scope, 0, NULL); in get_search() 611 *list = TAKE_PTR(lp.search_path); in get_search()
|
/systemd-251/test/test-sysusers/ |
D | test-5.expected-group | 30 lp:x:7:
|
D | test-5.expected-passwd | 8 lp:x:7:7::/var/spool/lpd:NOLOGIN
|
D | test-5.input | 38 u lp 7 - /var/spool/lpd
|
/systemd-251/sysusers.d/ |
D | basic.conf.in | 32 g lp {{LP_GID }} - -
|
/systemd-251/test/fuzz/fuzz-unit-file/ |
D | syslog.socket | 106 TCPCongestion=lp
|
/systemd-251/ |
D | meson_options.txt | 268 option('lp-gid', type : 'integer', value : '-1', 269 description : 'soft-static allocation for the "lp" group')
|
/systemd-251/src/libsystemd/sd-journal/ |
D | journal-file.c | 2418 uint64_t left, right, k, lp; in generic_array_bisect() local 2430 lp = p = le64toh(array->entry_array.items[i]); in generic_array_bisect() 2546 last_p = lp; in generic_array_bisect()
|