Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 25 of 27) sorted by relevance

12

/systemd-251/src/shared/
Dinstall.c103 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 …]
Ddns-domain.c612 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/
Dpath-lookup.c511 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 …]
Dunit-file.c200 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 …]
Dunit-file.h37 bool lookup_paths_timestamp_hash_same(const LookupPaths *lp, uint64_t timestamp_hash, uint64_t *ret…
49 const LookupPaths *lp,
Dpath-lookup.h62 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/
Dsystemctl-edit.c27 _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 …]
Dsystemctl-util.c386 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 …]
Dsystemctl-util.h37 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);
Dsystemctl-enable.c142 _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/
D50-udev-default.rules52 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"
D99-systemd.rules54 SUBSYSTEM=="usb", KERNEL=="lp*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="printer.target"
/systemd-251/rules.d/
D50-udev-default.rules.in67 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"
D99-systemd.rules.in54 SUBSYSTEM=="usb", KERNEL=="lp*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="printer.target", ENV{SYSTEMD_…
/systemd-251/src/test/
Dtest-unit-file.c28 _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/
Danalyze-unit-files.c18 _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/
Dsysv-generator.c707 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/
Dsd-path.c603 _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/
Dtest-5.expected-group30 lp:x:7:
Dtest-5.expected-passwd8 lp:x:7:7::/var/spool/lpd:NOLOGIN
Dtest-5.input38 u lp 7 - /var/spool/lpd
/systemd-251/sysusers.d/
Dbasic.conf.in32 g lp {{LP_GID }} - -
/systemd-251/test/fuzz/fuzz-unit-file/
Dsyslog.socket106 TCPCongestion=lp
/systemd-251/
Dmeson_options.txt268 option('lp-gid', type : 'integer', value : '-1',
269 description : 'soft-static allocation for the "lp" group')
/systemd-251/src/libsystemd/sd-journal/
Djournal-file.c2418 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()

12