Home
last modified time | relevance | path

Searched refs:l (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/systemd-251/src/resolve/
Dresolved-link.c26 _cleanup_(link_freep) Link *l = NULL; in link_new()
32 l = new(Link, 1); in link_new()
33 if (!l) in link_new()
36 *l = (Link) { in link_new()
46 if (asprintf(&l->state_file, "/run/systemd/resolve/netif/%i", ifindex) < 0) in link_new()
49 r = hashmap_ensure_put(&m->links, NULL, INT_TO_PTR(ifindex), l); in link_new()
53 l->manager = m; in link_new()
56 *ret = l; in link_new()
57 TAKE_PTR(l); in link_new()
62 void link_flush_settings(Link *l) { in link_flush_settings() argument
[all …]
Dresolved-link-bus.c35 Link *l = userdata; in property_get_dns_over_tls_mode() local
38 assert(l); in property_get_dns_over_tls_mode()
40 …turn sd_bus_message_append(reply, "s", dns_over_tls_mode_to_string(link_get_dns_over_tls_mode(l))); in property_get_dns_over_tls_mode()
53 Link *l = userdata; in property_get_dns_internal() local
57 assert(l); in property_get_dns_internal()
63 LIST_FOREACH(servers, s, l->dns_servers) { in property_get_dns_internal()
145 Link *l = userdata; in property_get_domains() local
149 assert(l); in property_get_domains()
155 LIST_FOREACH(domains, d, l->search_domains) { in property_get_domains()
173 Link *l = userdata; in property_get_default_route() local
[all …]
Dresolved-link.h86 Link *link_free(Link *l);
87 int link_process_rtnl(Link *l, sd_netlink_message *m);
88 int link_update(Link *l);
89 bool link_relevant(Link *l, int family, bool local_multicast);
90 LinkAddress* link_find_address(Link *l, int family, const union in_addr_union *in_addr);
91 void link_add_rrs(Link *l, bool force_remove);
93 void link_flush_settings(Link *l);
94 void link_set_dnssec_mode(Link *l, DnssecMode mode);
95 void link_set_dns_over_tls_mode(Link *l, DnsOverTlsMode mode);
96 void link_allocate_scopes(Link *l);
[all …]
Dresolved-dnssd-bus.c16 Link *l; in bus_dnssd_method_unregister() local
33 HASHMAP_FOREACH(l, m->links) { in bus_dnssd_method_unregister()
34 if (l->mdns_ipv4_scope) { in bus_dnssd_method_unregister()
35 r = dns_scope_announce(l->mdns_ipv4_scope, true); in bus_dnssd_method_unregister()
39 dns_zone_remove_rr(&l->mdns_ipv4_scope->zone, s->ptr_rr); in bus_dnssd_method_unregister()
40 dns_zone_remove_rr(&l->mdns_ipv4_scope->zone, s->srv_rr); in bus_dnssd_method_unregister()
42 dns_zone_remove_rr(&l->mdns_ipv4_scope->zone, txt_data->rr); in bus_dnssd_method_unregister()
45 if (l->mdns_ipv6_scope) { in bus_dnssd_method_unregister()
46 r = dns_scope_announce(l->mdns_ipv6_scope, true); in bus_dnssd_method_unregister()
50 dns_zone_remove_rr(&l->mdns_ipv6_scope->zone, s->ptr_rr); in bus_dnssd_method_unregister()
[all …]
Dresolved-manager.c49 Link *l; in manager_process_link() local
64 l = hashmap_get(m->links, INT_TO_PTR(ifindex)); in manager_process_link()
69 bool is_new = !l; in manager_process_link()
71 if (!l) { in manager_process_link()
72 r = link_new(m, &l, ifindex); in manager_process_link()
77 r = link_process_rtnl(l, mm); in manager_process_link()
81 r = link_update(l); in manager_process_link()
86 log_debug("Found new link %i/%s", ifindex, l->ifname); in manager_process_link()
92 if (l) { in manager_process_link()
93 log_debug("Removing link %i/%s", l->ifindex, l->ifname); in manager_process_link()
[all …]
Dresolved-dns-stub.c23 static int manager_dns_stub_fd_extra(Manager *m, DnsStubListenerExtra *l, int type);
67 DnsStubListenerExtra *l; in dns_stub_listener_extra_new() local
69 l = new(DnsStubListenerExtra, 1); in dns_stub_listener_extra_new()
70 if (!l) in dns_stub_listener_extra_new()
73 *l = (DnsStubListenerExtra) { in dns_stub_listener_extra_new()
77 *ret = TAKE_PTR(l); in dns_stub_listener_extra_new()
500 DnsStubListenerExtra *l, in find_socket_fd() argument
509 if (l) in find_socket_fd()
510 return manager_dns_stub_fd_extra(m, l, type); in find_socket_fd()
517 DnsStubListenerExtra *l, in dns_stub_send() argument
[all …]
/systemd-251/src/network/wait-online/
Dlink.c12 _cleanup_(link_freep) Link *l = NULL; in link_new()
24 l = new(Link, 1); in link_new()
25 if (!l) in link_new()
28 *l = (Link) { in link_new()
35 r = hashmap_ensure_put(&m->links_by_index, NULL, INT_TO_PTR(ifindex), l); in link_new()
39 r = hashmap_ensure_put(&m->links_by_name, &string_hash_ops, l->ifname, l); in link_new()
44 *ret = l; in link_new()
46 TAKE_PTR(l); in link_new()
50 Link *link_free(Link *l) { in link_free() argument
52 if (!l) in link_free()
[all …]
Dmanager.c35 static int manager_link_is_online(Manager *m, Link *l, LinkOperationalStateRange s) { in manager_link_is_online() argument
41 assert(l); in manager_link_is_online()
48 if (!l->state || streq(l->state, "pending")) in manager_link_is_online()
54 return log_link_debug_errno(l, SYNTHETIC_ERRNO(EAGAIN), in manager_link_is_online()
56 strna(l->state)); in manager_link_is_online()
58 if (streq(l->state, "unmanaged")) { in manager_link_is_online()
61 if (!hashmap_contains(m->command_line_interfaces_by_name, l->ifname)) { in manager_link_is_online()
62 log_link_debug(l, "link is not managed by networkd (yet?)."); in manager_link_is_online()
66 } else if (!streq(l->state, "configured")) in manager_link_is_online()
68 return log_link_debug_errno(l, SYNTHETIC_ERRNO(EAGAIN), in manager_link_is_online()
[all …]
/systemd-251/src/basic/
Dstrv.c19 char* strv_find(char * const *l, const char *name) { in strv_find() argument
22 STRV_FOREACH(i, l) in strv_find()
29 char* strv_find_case(char * const *l, const char *name) { in strv_find_case() argument
32 STRV_FOREACH(i, l) in strv_find_case()
39 char* strv_find_prefix(char * const *l, const char *name) { in strv_find_prefix() argument
42 STRV_FOREACH(i, l) in strv_find_prefix()
49 char* strv_find_startswith(char * const *l, const char *name) { in strv_find_startswith() argument
55 STRV_FOREACH(i, l) { in strv_find_startswith()
66 char** strv_free(char **l) { in strv_free() argument
67 STRV_FOREACH(k, l) in strv_free()
[all …]
Dstrv.h16 char* strv_find(char * const *l, const char *name) _pure_;
17 char* strv_find_case(char * const *l, const char *name) _pure_;
18 char* strv_find_prefix(char * const *l, const char *name) _pure_;
19 char* strv_find_startswith(char * const *l, const char *name) _pure_;
21 #define strv_contains(l, s) (!!strv_find((l), (s))) argument
22 #define strv_contains_case(l, s) (!!strv_find_case((l), (s))) argument
24 char** strv_free(char **l);
28 char** strv_free_erase(char **l);
32 char** strv_copy(char * const *l);
33 size_t strv_length(char * const *l) _pure_;
[all …]
Dparse-util.c193 unsigned long long l, tmp; in parse_size() local
201 l = strtoull(p, &e, 10); in parse_size()
237 if (l + (frac > 0) > ULLONG_MAX / table[i].factor) in parse_size()
240 tmp = l * table[i].factor + (unsigned long long) (frac * table[i].factor); in parse_size()
261 unsigned l, u; in parse_range() local
274 r = safe_atou(word, &l); in parse_range()
281 u = l; in parse_range()
291 *lower = l; in parse_range()
344 unsigned long l; in safe_atou_full() local
376l = strtoul(s, &x, SAFE_ATO_MASK_FLAGS(base) /* Let's mask off the flags bits so that only the act… in safe_atou_full()
[all …]
Dhexdecoct.c58 char *hexmem(const void *p, size_t l) { in hexmem() argument
62 z = r = new(char, l * 2 + 1); in hexmem()
66 for (x = p; x < (const uint8_t*) p + l; x++) { in hexmem()
75 static int unhex_next(const char **p, size_t *l) { in unhex_next() argument
79 assert(l); in unhex_next()
85 if (*l == 0) in unhex_next()
92 (*p)++, (*l)--; in unhex_next()
100 (*p)++, (*l)--; in unhex_next()
102 if (*l == 0 || !strchr(WHITESPACE, **p)) in unhex_next()
111 int unhexmem_full(const char *p, size_t l, bool secure, void **ret, size_t *ret_len) { in unhexmem_full() argument
[all …]
Denv-util.c115 bool strv_env_name_is_valid(char **l) { in strv_env_name_is_valid() argument
116 STRV_FOREACH(p, l) { in strv_env_name_is_valid()
127 bool strv_env_name_or_assignment_is_valid(char **l) { in strv_env_name_or_assignment_is_valid() argument
128 STRV_FOREACH(p, l) { in strv_env_name_or_assignment_is_valid()
192 char **l; in _strv_env_merge() local
194 l = va_arg(ap, char**); in _strv_env_merge()
195 if (l == POINTER_MAX) in _strv_env_merge()
198 n += strv_length(l); in _strv_env_merge()
212 char **l; in _strv_env_merge() local
214 l = va_arg(ap, char**); in _strv_env_merge()
[all …]
Denv-util.h13 long l = sysconf(_SC_ARG_MAX); in sc_arg_max() local
14 assert(l > 0); in sc_arg_max()
15 return (size_t) l; in sc_arg_max()
36 #define strv_env_clean(l) strv_env_clean_with_callback(l, NULL, NULL) argument
37 char **strv_env_clean_with_callback(char **l, void (*invalid_callback)(const char *p, void *userdat…
39 bool strv_env_name_is_valid(char **l);
40 bool strv_env_name_or_assignment_is_valid(char **l);
46 char **strv_env_unset(char **l, const char *p); /* In place ... */
47 char **strv_env_unset_many(char **l, ...) _sentinel_;
48 int strv_env_replace_consume(char ***l, char *p); /* In place ... */
[all …]
Dmemory-util.h14 #define PAGE_ALIGN(l) ALIGN_TO((l), page_size()) argument
15 #define PAGE_ALIGN_DOWN(l) ((l) & ~(page_size() - 1)) argument
16 #define PAGE_OFFSET(l) ((l) & (page_size() - 1)) argument
49 #define memzero(x,l) \ argument
51 size_t _l_ = (l); \
95 static inline void* explicit_bzero_safe(void *p, size_t l) { in explicit_bzero_safe() argument
96 if (l > 0) in explicit_bzero_safe()
97 explicit_bzero(p, l); in explicit_bzero_safe()
102 void *explicit_bzero_safe(void *p, size_t l);
106 size_t l; in erase_and_free() local
[all …]
Dhexdecoct.h20 char *hexmem(const void *p, size_t l);
21 int unhexmem_full(const char *p, size_t l, bool secure, void **mem, size_t *len);
22 static inline int unhexmem(const char *p, size_t l, void **mem, size_t *len) { in unhexmem() argument
23 return unhexmem_full(p, l, false, mem, len); in unhexmem()
33 char *base32hexmem(const void *p, size_t l, bool padding);
34 int unbase32hexmem(const char *p, size_t l, bool padding, void **mem, size_t *len);
36 ssize_t base64mem_full(const void *p, size_t l, size_t line_break, char **ret);
37 static inline ssize_t base64mem(const void *p, size_t l, char **ret) { in base64mem() argument
38 return base64mem_full(p, l, SIZE_MAX, ret); in base64mem()
42 const void *p, size_t l,
[all …]
/systemd-251/test/
Dsys-script.py15 def l(path, src): function
4271 l('sys/firmware/edd/int13_dev80/pci_dev', '../../../devices/pci0000:00/0000:00:1f.2')
7770 l('sys/bus/pci_express/devices/0000:00:1c.2:pcie02', '../../../devices/pci0000:00/0000:00:1c.2/0000…
7771 l('sys/bus/pci_express/devices/0000:00:1c.2:pcie00', '../../../devices/pci0000:00/0000:00:1c.2/0000…
7772 l('sys/bus/pci_express/devices/0000:00:1c.0:pcie03', '../../../devices/pci0000:00/0000:00:1c.0/0000…
7773 l('sys/bus/pci_express/devices/0000:00:01.0:pcie03', '../../../devices/pci0000:00/0000:00:01.0/0000…
7774 l('sys/bus/pci_express/devices/0000:00:1c.2:pcie03', '../../../devices/pci0000:00/0000:00:1c.2/0000…
7775 l('sys/bus/pci_express/devices/0000:00:1c.1:pcie02', '../../../devices/pci0000:00/0000:00:1c.1/0000…
7776 l('sys/bus/pci_express/devices/0000:00:1c.0:pcie00', '../../../devices/pci0000:00/0000:00:1c.0/0000…
7777 l('sys/bus/pci_express/devices/0000:00:1c.3:pcie02', '../../../devices/pci0000:00/0000:00:1c.3/0000…
[all …]
/systemd-251/src/test/
Dtest-strv.c264 _cleanup_(strv_free_erasep) char **l = NULL; in TEST()
267 l = strv_split(str, ","); in TEST()
268 assert_se(l); in TEST()
269 assert_se(strv_equal(l, (char**) input_table_multiple)); in TEST()
271 strv_free_erase(l); in TEST()
273 l = strv_split(" one two\t three", WHITESPACE); in TEST()
274 assert_se(l); in TEST()
275 assert_se(strv_equal(l, (char**) input_table_multiple)); in TEST()
277 strv_free_erase(l); in TEST()
280 l = strv_split(" one two\t three", NULL); in TEST()
[all …]
Dtest-parse-util.c422 long long l; in TEST() local
424 r = safe_atolli("12345", &l); in TEST()
426 assert_se(l == 12345); in TEST()
428 r = safe_atolli(" 12345", &l); in TEST()
430 assert_se(l == 12345); in TEST()
432 r = safe_atolli("-12345", &l); in TEST()
434 assert_se(l == -12345); in TEST()
436 r = safe_atolli(" -12345", &l); in TEST()
438 assert_se(l == -12345); in TEST()
440 r = safe_atolli("0x5", &l); in TEST()
[all …]
/systemd-251/src/network/
Dnetworkd-link-bus.c71 static int verify_managed_link(Link *l, sd_bus_error *error) { in verify_managed_link() argument
72 assert(l); in verify_managed_link()
74 if (l->flags & IFF_LOOPBACK) in verify_managed_link()
75 … return sd_bus_error_setf(error, BUS_ERROR_LINK_BUSY, "Link %s is loopback device.", l->ifname); in verify_managed_link()
82 Link *l = userdata; in bus_link_method_set_ntp_servers() local
86 assert(l); in bus_link_method_set_ntp_servers()
88 r = verify_managed_link(l, error); in bus_link_method_set_ntp_servers()
107 &l->manager->polkit_registry, error); in bus_link_method_set_ntp_servers()
113 strv_free_and_replace(l->ntp, ntp); in bus_link_method_set_ntp_servers()
115 link_dirty(l); in bus_link_method_set_ntp_servers()
[all …]
/systemd-251/src/core/
Dunit-serialize.c241 #define MATCH_DESERIALIZE(key, l, v, parse_func, target) \ argument
243 bool _deserialize_matched = streq(l, key); \
248 … "Failed to parse \"%s=%s\", ignoring.", l, v); \
255 #define MATCH_DESERIALIZE_IMMEDIATE(key, l, v, parse_func, target) \ argument
257 bool _deserialize_matched = streq(l, key); \
262 "Failed to parse \"%s=%s\", ignoring", l, v); \
276 char *l, *v; in unit_deserialize() local
286 l = strstrip(line); in unit_deserialize()
287 if (isempty(l)) /* End marker */ in unit_deserialize()
290 k = strcspn(l, "="); in unit_deserialize()
[all …]
Dmanager-serialize.c328 const char *val, *l; in manager_deserialize() local
336 l = strstrip(line); in manager_deserialize()
337 if (isempty(l)) /* end marker */ in manager_deserialize()
340 if ((val = startswith(l, "current-job-id="))) { in manager_deserialize()
348 } else if ((val = startswith(l, "n-installed-jobs="))) { in manager_deserialize()
356 } else if ((val = startswith(l, "n-failed-jobs="))) { in manager_deserialize()
364 } else if ((val = startswith(l, "taint-usr="))) { in manager_deserialize()
373 } else if ((val = startswith(l, "ready-sent="))) { in manager_deserialize()
382 } else if ((val = startswith(l, "taint-logged="))) { in manager_deserialize()
391 } else if ((val = startswith(l, "service-watchdogs="))) { in manager_deserialize()
[all …]
/systemd-251/src/import/
Dqcow2-util.c70 ssize_t l; in copy_cluster() local
77 l = pread(sfd, buffer, cluster_size, soffset); in copy_cluster()
78 if (l < 0) in copy_cluster()
80 if ((uint64_t) l != cluster_size) in copy_cluster()
83 l = pwrite(dfd, buffer, cluster_size, doffset); in copy_cluster()
84 if (l < 0) in copy_cluster()
86 if ((uint64_t) l != cluster_size) in copy_cluster()
103 ssize_t l; in decompress_cluster() local
117 l = pread(sfd, buffer1, compressed_size, soffset); in decompress_cluster()
118 if (l < 0) in decompress_cluster()
[all …]
/systemd-251/src/journal/
Djournald-native.c37 const char *p, size_t l, in server_process_entry_meta() argument
46 if (l == 10 && in server_process_entry_meta()
51 else if (l == 17 && in server_process_entry_meta()
56 else if (l == 18 && in server_process_entry_meta()
62 else if (l >= 19 && in server_process_entry_meta()
66 t = memdup_suffix0(p + 18, l - 18); in server_process_entry_meta()
72 } else if (l >= 8 && in server_process_entry_meta()
76 t = memdup_suffix0(p + 8, l - 8); in server_process_entry_meta()
82 } else if (l > STRLEN("OBJECT_PID=") && in server_process_entry_meta()
83 l < STRLEN("OBJECT_PID=") + DECIMAL_STR_MAX(pid_t) && in server_process_entry_meta()
[all …]
/systemd-251/src/libsystemd/sd-path/
Dsd-path.c102 char *l, *p, *e; in from_user_dir() local
110 l = strstrip(line); in from_user_dir()
112 if (!strneq(l, field, n)) in from_user_dir()
115 p = l + n; in from_user_dir()
425 _cleanup_strv_free_ char **l = NULL; in sd_path_lookup() local
428 r = sd_path_lookup_strv(type, suffix, &l); in sd_path_lookup()
432 buffer = strv_join(l, ":"); in sd_path_lookup()
448 _cleanup_strv_free_ char **l = NULL; in search_from_environment() local
458 l = strv_split(e, ":"); in search_from_environment()
459 if (!l) in search_from_environment()
[all …]

12345678910>>...17