Searched defs:names (Results 1 - 21 of 21) sorted by relevance

/systemd/src/shared/
H A Dfstab-util.h29 int fstab_filter_options(const char *opts, const char *names, const char **namefound, char **value, char **filtered);
33 static inline bool fstab_test_option(const char *opts, const char *names) { argument
34 return !!fstab_filter_options(opts, names, NULL, NULL, NULL);
H A Ddropin.c224 Set *names,
234 SET_FOREACH(t, names, i) {
221 unit_file_find_dropin_paths( char **lookup_path, Set *unit_path_cache, Set *names, char ***paths) argument
H A Dfstab-util.c52 int fstab_filter_options(const char *opts, const char *names, argument
58 assert(names && *names);
70 NULSTR_FOREACH(name, names) {
106 NULSTR_FOREACH(name, names) {
/systemd/src/bus-proxyd/
H A Ddriver.c400 _cleanup_strv_free_ char **names = NULL; local
405 r = sd_bus_list_names(a, NULL, &names);
409 /* Let's sort the names list to make it stable */
410 strv_sort(names);
412 return synthetic_reply_method_return_strv(m, names);
415 _cleanup_strv_free_ char **names = NULL; local
420 r = sd_bus_list_names(a, &names, NULL);
424 r = strv_extend(&names, "org.freedesktop.DBus");
428 /* Let's sort the names list to make it stable */
429 strv_sort(names);
[all...]
H A Dbus-xml-policy.c900 Set *names,
913 if (set_isempty(names) && strv_isempty(namesv)) {
916 SET_FOREACH(n, names, i) {
969 Set *names,
983 if (set_isempty(names) && strv_isempty(namesv)) {
986 SET_FOREACH(n, names, i) {
896 policy_check_recv(Policy *p, uid_t uid, gid_t gid, int message_type, Set *names, char **namesv, const char *path, const char *interface, const char *member, bool dbus_to_kernel) argument
965 policy_check_send(Policy *p, uid_t uid, gid_t gid, int message_type, Set *names, char **namesv, const char *path, const char *interface, const char *member, bool dbus_to_kernel, char **out_used_name) argument
/systemd/src/fstab-generator/
H A Dfstab-generator.c169 _cleanup_strv_free_ char **names = NULL, **units = NULL; local
177 r = fstab_extract_values(opts, "x-systemd.requires", &names);
183 STRV_FOREACH(s, names) {
/systemd/src/journal-remote/
H A Dmicrohttpd-util.c108 const char *const names[4]; member in struct:__anon111
129 log_internal(gnutls_log_map[level].level, 0, NULL, 0, NULL, "gnutls %d/%s: %s", level, gnutls_log_map[level].names[1], message);
157 if (strv_contains((char**)gnutls_log_map[i].names, cat)) {
/systemd/src/libsystemd/sd-bus/
H A Dbus-track.c32 Hashmap *names; member in struct:sd_bus_track
136 while ((n = hashmap_first_key(track->names)))
140 hashmap_free(track->names);
172 r = hashmap_ensure_allocated(&track->names, &string_hash_ops);
186 r = hashmap_put(track->names, n, slot);
196 hashmap_remove(track->names, n);
218 slot = hashmap_remove2(track->names, (char*) name, (void**) &n);
222 if (hashmap_isempty(track->names))
234 return hashmap_size(track->names);
241 return hashmap_get(track->names, (voi
[all...]
H A Dbus-objects.c1880 char **names) {
1934 if (names) {
1939 STRV_FOREACH(property, names) {
2033 if (names) {
2034 STRV_FOREACH(property, names) {
2084 char **names) {
2099 /* A non-NULL but empty names list means nothing needs to be
2103 if (names && names[0] == NULL)
2109 r = emit_properties_changed_on_interface(bus, path, path, interface, false, &found_interface, names);
1873 emit_properties_changed_on_interface( sd_bus *bus, const char *prefix, const char *path, const char *interface, bool require_fallback, bool *found_interface, char **names) argument
2080 sd_bus_emit_properties_changed_strv( sd_bus *bus, const char *path, const char *interface, char **names) argument
2135 char **names; local
[all...]
H A Dbusctl.c80 _cleanup_hashmap_free_ Hashmap *names = NULL; local
96 return log_error_errno(r, "Failed to list names: %m");
100 names = hashmap_new(&string_hash_ops);
101 if (!names)
107 r = hashmap_put(names, *i, NAME_IS_ACQUIRED);
115 r = hashmap_put(names, *i, NAME_IS_ACTIVATABLE);
120 merged = new(char*, hashmap_size(names) + 1);
121 HASHMAP_FOREACH_KEY(v, k, names, iterator)
141 if (hashmap_get(names, *i) == NAME_IS_ACTIVATABLE) {
434 _cleanup_strv_free_ char **names local
[all...]
/systemd/src/libsystemd/sd-daemon/
H A Dsd-daemon.c107 _public_ int sd_listen_fds_with_names(int unset_environment, char ***names) { argument
114 if (!names)
142 *names = l;
/systemd/src/libsystemd-network/
H A Ddhcp6-option.c343 _cleanup_free_ char **names = NULL; local
400 r = strv_extend(&names, ret);
407 *str_arr = names;
408 names = NULL;
/systemd/src/resolve/
H A Dresolved-etc-hosts.c36 char **names; member in struct:EtcHostsItem
51 strv_free(item->names);
98 static int add_item(Manager *m, int family, const union in_addr_union *address, char **names) { argument
119 /* If this is a normal address, then, simply add entry mapping it to the specified names */
123 r = strv_extend_strv(&item->names, names, true);
138 item->names = names;
148 STRV_FOREACH(n, names) {
188 _cleanup_strv_free_ char **names local
[all...]
H A Dresolved-dns-packet.h76 Hashmap *names; /* For name compression */ member in struct:DnsPacket
/systemd/src/core/
H A Ddbus.c736 _cleanup_strv_free_ char **names = NULL; local
745 r = sd_bus_list_names(bus, &names, NULL);
747 return log_error_errno(r, "Failed to get initial list of names: %m");
749 /* We have to synchronize the current bus names with the
751 * all units with bus names. */
763 * active names */
764 if (strv_contains(names, name)) {
H A Dunit.h79 char *id; /* One name is special because we use it for identification. Points to an entry in the names set */
82 Set *names; member in struct:Unit
410 /* Can units of this type have multiple names? */
H A Dload-fragment.c3514 static int open_follow(char **filename, FILE **_f, Set *names, char **_final) { argument
3523 assert(names);
3537 * the names of this unit, but only if it is a valid
3543 id = set_get(names, name);
3549 r = set_consume(names, id);
3583 static int merge_by_names(Unit **u, Set *names, const char *id) { argument
3589 assert(names);
3591 /* Let's try to add in all symlink names we found */
3592 while ((k = set_steal_first(names))) {
3611 return merge_by_names(u, names, NUL
[all...]
/systemd/src/udev/
H A Dudev-builtin-net_id.c21 * Predictable network interface device names based on:
35 * Type of names:
136 static int dev_pci_onboard(struct udev_device *dev, struct netnames *names) { argument
144 attr = udev_device_get_sysattr_value(names->pcidev, "acpi_index");
147 attr = udev_device_get_sysattr_value(names->pcidev, "index");
167 s = names->pci_onboard;
168 l = sizeof(names->pci_onboard);
173 names->pci_onboard[0] = '\0';
175 names->pci_onboard_label = udev_device_get_sysattr_value(names
200 dev_pci_slot(struct udev_device *dev, struct netnames *names) argument
288 names_pci(struct udev_device *dev, struct netnames *names) argument
319 names_usb(struct udev_device *dev, struct netnames *names) argument
375 names_bcma(struct udev_device *dev, struct netnames *names) argument
397 names_ccw(struct udev_device *dev, struct netnames *names) argument
445 names_mac(struct udev_device *dev, struct netnames *names) argument
479 ieee_oui(struct udev_device *dev, struct netnames *names, bool test) argument
500 struct netnames names = {}; local
[all...]
/systemd/src/locale/
H A Dlocaled.c68 static const char * const names[_LOCALE_MAX] = { variable
171 assert(names[p]);
174 nonempty(getenv(names[p])));
290 assert(names[p]);
293 l = strv_env_unset(l, names[p]);
297 if (asprintf(&t, "%s=%s", names[p], c->locale[p]) < 0)
343 assert(names[p]);
346 l_unset[c_set++] = (char*) names[p];
350 if (asprintf(&s, "%s=%s", names[p], c->locale[p]) < 0)
875 if (asprintf(&t, "%s=%s", names[
[all...]
/systemd/src/analyze/
H A Danalyze.c947 static int analyze_critical_chain(sd_bus *bus, char *names[]) { argument
973 if (!strv_isempty(names)) {
975 STRV_FOREACH(name, names)
/systemd/src/systemctl/
H A Dsystemctl.c635 return log_error_errno(r, "Failed to get machine names: %m");
2356 _cleanup_set_free_ Set *names; local
2358 names = set_new(NULL);
2359 if (!names)
2362 r = set_put(names, unit_name);
2384 r = unit_file_find_dropin_paths(lp->unit_path, NULL, names, &dropins);
2629 static int expand_names(sd_bus *bus, char **names, const char* suffix, char ***ret) { argument
2637 STRV_FOREACH(name, names) {
2655 /* Query the manager only if any of the names are a glob, since
2722 _cleanup_strv_free_ char **names local
3162 _cleanup_strv_free_ char **names = NULL; local
3201 _cleanup_strv_free_ char **names = NULL; local
4703 _cleanup_strv_free_ char **names = NULL; local
4780 _cleanup_strv_free_ char **names = NULL; local
4946 _cleanup_strv_free_ char **names = NULL; local
5378 _cleanup_strv_free_ char **names = NULL; local
5559 _cleanup_strv_free_ char **names = NULL; local
5706 _cleanup_strv_free_ char **names = NULL; local
6058 find_paths_to_edit(sd_bus *bus, char **names, char ***paths) argument
6103 _cleanup_strv_free_ char **names = NULL; local
[all...]

Completed in 105 milliseconds