Home
last modified time | relevance | path

Searched refs:names (Results 1 – 25 of 106) sorted by relevance

12345

/systemd-251/src/udev/
Dudev-builtin-net_id.c167 static int dev_pci_onboard(sd_device *dev, const LinkInfo *info, NetNames *names) { in dev_pci_onboard() argument
176 assert(names); in dev_pci_onboard()
179 if (sd_device_get_sysattr_value(names->pcidev, "acpi_index", &attr) >= 0) in dev_pci_onboard()
180 log_device_debug(names->pcidev, "acpi_index=%s", attr); in dev_pci_onboard()
183 r = sd_device_get_sysattr_value(names->pcidev, "index", &attr); in dev_pci_onboard()
186 log_device_debug(names->pcidev, "index=%s", attr); in dev_pci_onboard()
191 return log_device_debug_errno(names->pcidev, r, in dev_pci_onboard()
194 return log_device_debug_errno(names->pcidev, SYNTHETIC_ERRNO(EINVAL), in dev_pci_onboard()
197 return log_device_debug_errno(names->pcidev, SYNTHETIC_ERRNO(ENOENT), in dev_pci_onboard()
208 s = names->pci_onboard; in dev_pci_onboard()
[all …]
/systemd-251/src/systemctl/
Dsystemctl-enable.c14 static int normalize_filenames(char **names) { in normalize_filenames() argument
17 STRV_FOREACH(u, names) in normalize_filenames()
41 static int normalize_names(char **names) { in normalize_names() argument
44 STRV_FOREACH(u, names) { in normalize_names()
64 _cleanup_strv_free_ char **names = NULL; in verb_enable() local
75 r = mangle_names("to enable", strv_skip(argv, 1), &names); in verb_enable()
79 r = enable_sysv_units(verb, names); in verb_enable()
84 if (strv_isempty(names)) { in verb_enable()
93 r = normalize_names(names); in verb_enable()
99 r = normalize_filenames(names); in verb_enable()
[all …]
Dsystemctl-edit.c28 _cleanup_strv_free_ char **names = NULL; in verb_cat() local
48 r = expand_unit_names(bus, strv_skip(argv, 1), NULL, &names, NULL); in verb_cat()
52 r = maybe_extend_with_unit_dependencies(bus, &names); in verb_cat()
58 STRV_FOREACH(name, names) { in verb_cat()
377 static int find_paths_to_edit(sd_bus *bus, char **names, char ***paths) { in find_paths_to_edit() argument
382 assert(names); in find_paths_to_edit()
389 STRV_FOREACH(name, names) { in find_paths_to_edit()
499 _cleanup_strv_free_ char **names = NULL; in verb_edit() local
522 r = expand_unit_names(bus, strv_skip(argv, 1), NULL, &names, NULL); in verb_edit()
525 if (strv_isempty(names)) in verb_edit()
[all …]
Dsystemctl-is-enabled.c60 _cleanup_strv_free_ char **names = NULL; in verb_is_enabled() local
64 r = mangle_names("to check", strv_skip(argv, 1), &names); in verb_is_enabled()
68 r = enable_sysv_units(argv[0], names); in verb_is_enabled()
75 STRV_FOREACH(name, names) { in verb_is_enabled()
110 STRV_FOREACH(name, names) { in verb_is_enabled()
Dsystemctl-add-dependency.c11 _cleanup_strv_free_ char **names = NULL; in verb_add_dependency() local
28 r = mangle_names("as dependency", strv_skip(argv, 2), &names); in verb_add_dependency()
40 …nit_file_add_dependency(arg_scope, unit_file_flags_from_args(), arg_root, names, target, dep, &cha… in verb_add_dependency()
60 r = sd_bus_message_append_strv(m, names); in verb_add_dependency()
Dsystemctl-reset-failed.c11 _cleanup_strv_free_ char **names = NULL; in verb_reset_failed() local
24 r = expand_unit_names(bus, strv_skip(argv, 1), NULL, &names, NULL); in verb_reset_failed()
28 STRV_FOREACH(name, names) { in verb_reset_failed()
Dsystemctl-kill.c10 _cleanup_strv_free_ char **names = NULL; in verb_kill() local
28 r = expand_unit_names(bus, strv_skip(argv, 1), NULL, &names, NULL); in verb_kill()
32 STRV_FOREACH(name, names) { in verb_kill()
Dsystemctl-is-active.c13 _cleanup_strv_free_ char **names = NULL; in check_unit_generic() local
23 r = expand_unit_names(bus, args, NULL, &names, NULL); in check_unit_generic()
27 STRV_FOREACH(name, names) { in check_unit_generic()
Dsystemctl-set-property.c48 _cleanup_strv_free_ char **names = NULL; in verb_set_property() local
57 r = expand_unit_names(bus, STRV_MAKE(argv[1]), NULL, &names, NULL); in verb_set_property()
62 STRV_FOREACH(name, names) { in verb_set_property()
Dsystemctl-clean-or-freeze.c12 _cleanup_strv_free_ char **names = NULL; in verb_clean_or_freeze() local
29 r = expand_unit_names(bus, strv_skip(argv, 1), NULL, &names, NULL); in verb_clean_or_freeze()
48 STRV_FOREACH(name, names) { in verb_clean_or_freeze()
/systemd-251/src/libsystemd/sd-bus/
Dbus-track.c22 Hashmap *names; member
72 if (hashmap_size(track->names) > 0) in bus_track_add_to_queue()
103 i = hashmap_remove(track->names, name); in bus_track_remove_name_fully()
155 track->names = hashmap_free(track->names); in track_free()
191 i = hashmap_get(track->names, name); in sd_bus_track_add_name()
210 r = hashmap_ensure_allocated(&track->names, &track_item_hash_ops); in sd_bus_track_add_name()
237 r = hashmap_put(track->names, n->name, n); in sd_bus_track_add_name()
248 hashmap_remove(track->names, name); in sd_bus_track_add_name()
269 i = hashmap_get(track->names, name); in sd_bus_track_remove_name()
291 return hashmap_size(track->names); in sd_bus_track_count()
[all …]
Dbus-introspect.c161 …write_arguments(struct introspect *i, const char *signature, const char **names, const char *direc… in introspect_write_arguments() argument
176 if (**names != '\0') { in introspect_write_arguments()
177 fprintf(i->f, " name=\"%s\"", *names); in introspect_write_arguments()
178 *names += strlen(*names) + 1; in introspect_write_arguments()
196 const char *names = ""; in introspect_write_interface() local
226 names = strempty(v->x.method.names); in introspect_write_interface()
227 … introspect_write_arguments(i, strempty(v->x.method.signature), &names, "in"); in introspect_write_interface()
228 introspect_write_arguments(i, strempty(v->x.method.result), &names, "out"); in introspect_write_interface()
246 names = strempty(v->x.signal.names); in introspect_write_interface()
247 … introspect_write_arguments(i, strempty(v->x.signal.signature), &names, NULL); in introspect_write_interface()
Dbus-objects.c1684 static bool names_are_valid(const char *signature, const char **names, names_flags *flags) { in names_are_valid() argument
1687 if ((*flags & NAMES_FIRST_PART || *flags & NAMES_SINGLE_PART) && **names != '\0') in names_are_valid()
1700 if (**names != '\0') { in names_are_valid()
1701 if (!member_name_is_valid(*names)) in names_are_valid()
1703 *names += strlen(*names) + 1; in names_are_valid()
1710 if (*flags & NAMES_PRESENT && **names != '\0' && !(*flags & NAMES_FIRST_PART)) in names_are_valid()
1783 const char *names = ""; in add_object_vtable_internal() local
1856 names = strempty(v->x.method.names); in add_object_vtable_internal()
1861 !names_are_valid(strempty(v->x.method.signature), &names, &nf) || in add_object_vtable_internal()
1862 !names_are_valid(strempty(v->x.method.result), &names, &nf) || in add_object_vtable_internal()
[all …]
/systemd-251/docs/
DUSER_NAMES.md10 The precise set of allowed user and group names on Linux systems is weakly
12 restrictions on the syntax of user/group names are enforced — on some
21 Generally, the same rules apply for user as for group names.
26 names](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_437)
52 allowed as user/group names.
54 * sssd is known to generate user names with embedded `@` and white-space
55 characters, as well as non-ASCII (i.e. UTF-8) user/group names.
57 * winbindd is known to generate user/group names with embedded `\` and
58 white-space characters, as well as non-ASCII (i.e. UTF-8) user/group names.
64 names also valid according to Windows rules.
[all …]
DPREDICTABLE_INTERFACE_NAMES.md10 …temd/udev will automatically assign predictable, stable network interface names for all local Ethe…
14names beginning with `eth0`, `eth1`, ... to all interfaces as they are probed by the drivers. As t…
16names to certain interfaces based on their MAC addresses. This turned out to have a multitude of p…
18 … information in certain firmware interfaces and uses them to assign fixed names to interfaces whic…
20names (think: `internet0`, `dmz0`, ...) keyed off their MAC addresses or physical locations as par…
22 …`biosdevname`. Assigning fixed names based on firmware/topology/location information has the big a…
44 * Stable interface names across reboots
45 * Stable interface names even when hardware is added or removed, i.e. no re-enumeration takes place…
46 * Stable interface names when kernels or drivers are updated/changed
47 * Stable interface names even if you have to replace broken ethernet cards by new ones
[all …]
/systemd-251/src/test/
Dtest-nss-users.c165 char **names) { in test_one_module() argument
173 STRV_FOREACH(name, names) in test_one_module()
176 STRV_FOREACH(name, names) { in test_one_module()
195 _cleanup_strv_free_ char **modules = NULL, **names = NULL; in parse_argv() local
220 names = strv_copy(strv_skip(argv, 2)); in parse_argv()
222 names = strv_new("root", in parse_argv()
227 assert_se(names); in parse_argv()
230 *the_names = TAKE_PTR(names); in parse_argv()
236 _cleanup_strv_free_ char **modules = NULL, **names = NULL; in run() local
241 r = parse_argv(argc, argv, &modules, &names); in run()
[all …]
Dtest-nss-hosts.c375 char **names, in test_one_module() argument
385 STRV_FOREACH(name, names) in test_one_module()
403 _cleanup_strv_free_ char **modules = NULL, **names = NULL; in parse_argv() local
439 r = strv_extend(&names, *name); in parse_argv()
452 … assert_se(names = strv_new("localhost", "_gateway", "_outbound", "foo_no_such_host", hostname)); in parse_argv()
459 *the_names = TAKE_PTR(names); in parse_argv()
467 _cleanup_strv_free_ char **modules = NULL, **names = NULL; in run() local
474 r = parse_argv(argc, argv, &modules, &names, &addresses, &n_addresses); in run()
481 r = test_one_module(dir, *module, names, addresses, n_addresses); in run()
/systemd-251/src/timesync/
Dtimesyncd-server.c91 LIST_APPEND(names, m->system_servers, n); in server_name_new()
94 LIST_APPEND(names, m->link_servers, n); in server_name_new()
97 LIST_APPEND(names, m->fallback_servers, n); in server_name_new()
100 LIST_APPEND(names, m->runtime_servers, n); in server_name_new()
127 LIST_REMOVE(names, n->manager->system_servers, n); in server_name_free()
129 LIST_REMOVE(names, n->manager->link_servers, n); in server_name_free()
131 LIST_REMOVE(names, n->manager->fallback_servers, n); in server_name_free()
133 LIST_REMOVE(names, n->manager->runtime_servers, n); in server_name_free()
/systemd-251/src/network/
Dtest-networkd-conf.c224 _cleanup_strv_free_ char **names = NULL; in TEST() local
226 …names("network", "filename", 1, "section", 1, "Name", 0, "!hoge hogehoge foo", &names, NULL) == 0); in TEST()
227 …parse_match_ifnames("network", "filename", 1, "section", 1, "Name", 0, "!baz", &names, NULL) == 0); in TEST()
228 …atch_ifnames("network", "filename", 1, "section", 1, "Name", 0, "aaa bbb ccc", &names, NULL) == 0); in TEST()
230 …assert_se(strv_equal(names, STRV_MAKE("!hoge", "!hogehoge", "!foo", "!baz", "aaa", "bbb", "ccc"))); in TEST()
234 _cleanup_strv_free_ char **names = NULL; in TEST() local
236 …_strv("network", "filename", 1, "section", 1, "Name", 0, "!hoge hogehoge foo", &names, NULL) == 0); in TEST()
237 …ig_parse_match_strv("network", "filename", 1, "section", 1, "Name", 0, "!baz", &names, NULL) == 0); in TEST()
239 … "KEY=val \"KEY2=val with space\" \"KEY3=val with \\\"quotation\\\"\"", &names, NULL) == 0); in TEST()
241 assert_se(strv_equal(names, in TEST()
/systemd-251/src/activate/
Dactivate.c170 _cleanup_free_ char *names = NULL; in exec_process() local
183 names = strv_join(arg_fdnames, ":"); in exec_process()
184 if (!names) in exec_process()
187 char *t = strjoin("LISTEN_FDNAMES=", names); in exec_process()
389 _cleanup_strv_free_ char **names = NULL; in parse_argv() local
391 names = strv_split(optarg, ":"); in parse_argv()
392 if (!names) in parse_argv()
395 STRV_FOREACH(s, names) in parse_argv()
405 strv_isempty(names) ? STRV_MAKE("") : names, in parse_argv()
/systemd-251/src/basic/
Dunit-file.c389 _cleanup_hashmap_free_ Hashmap *ids = NULL, *names = NULL; in unit_file_build_name_map() local
613 r = string_strv_hashmap_put(&names, dst, src); in unit_file_build_name_map()
622 hashmap_free_and_replace(*unit_names_map, names); in unit_file_build_name_map()
631 Set **names, in add_name() argument
635 assert(names); in add_name()
638 r = set_put_strdup(names, name); in add_name()
653 Set **names, in add_names() argument
664 r = add_name(unit_name, names, name); in add_names()
698 r = set_consume(*names, TAKE_PTR(inst)); in add_names()
702 r = add_name(unit_name, names, *alias); in add_names()
[all …]
/systemd-251/src/shared/
Dfstab-util.c84 const char *names, in fstab_filter_options() argument
95 assert(names && *names); in fstab_filter_options()
124 NULSTR_FOREACH(name, names) { in fstab_filter_options()
173 NULSTR_FOREACH(name, names) { in fstab_filter_options()
Dfstab-util.h15 const char *names,
21 static inline bool fstab_test_option(const char *opts, const char *names) { in fstab_test_option() argument
22 return !!fstab_filter_options(opts, names, NULL, NULL, NULL, NULL); in fstab_test_option()
/systemd-251/src/nspawn/
Dnspawn-util.c29 _cleanup_strv_free_ char **names = NULL; in systemd_installation_has_version() local
37 r = glob_extend(&names, path, 0); in systemd_installation_has_version()
46 STRV_FOREACH(name, names) { in systemd_installation_has_version()
/systemd-251/src/resolve/
Dresolved-etc-hosts.c22 strv_free(item->names); in etc_hosts_item_free()
130 r = strv_extend(&item->names, name); in parse_line()
202 STRV_FOREACH(i, item->names) in strip_localhost()
214 STRV_FOREACH(i, item->names) { in strip_localhost()
240 STRV_FOREACH(i, item->names) { in strip_localhost()
394 r = dns_answer_reserve(answer, strv_length(item->names)); in manager_etc_hosts_lookup()
398 STRV_FOREACH(n, item->names) { in manager_etc_hosts_lookup()

12345