Home
last modified time | relevance | path

Searched refs:strlen_ptr (Results 1 – 21 of 21) sorted by relevance

/systemd-251/coccinelle/
Disempty.cocci32 - strlen_ptr@p(s) == 0
35 - strlen_ptr@p(s) <= 0
38 - strlen_ptr@p(s) > 0
41 - strlen_ptr@p(s) != 0
/systemd-251/src/libsystemd-network/
Dsd-lldp-tx.c177 if (strlen_ptr(port_description) >= 512) in sd_lldp_tx_set_port_description()
201 if (strlen_ptr(pretty_hostname) >= 512) in sd_lldp_tx_set_pretty_hostname()
232 2 + 1 + strlen_ptr(lldp_tx->ifname) + in lldp_tx_calculate_maximum_packet_size()
236 2 + strlen_ptr(lldp_tx->port_description) + in lldp_tx_calculate_maximum_packet_size()
238 2 + strlen_ptr(hostname) + in lldp_tx_calculate_maximum_packet_size()
240 2 + strlen_ptr(pretty_hostname) + in lldp_tx_calculate_maximum_packet_size()
242 2 + sizeof(SD_LLDP_OUI_IANA_MUD) + strlen_ptr(lldp_tx->mud_url) + in lldp_tx_calculate_maximum_packet_size()
/systemd-251/src/basic/
Dbus-label.h13 return bus_label_unescape_n(f, strlen_ptr(f)); in bus_label_unescape()
Dsiphash24.h44 siphash24_compress_safe(in, strlen_ptr(in), state); in siphash24_compress_string()
Dstring-util.c731 l = f = strlen_ptr(*x); in strextend_with_separator_internal()
734 l_separator = strlen_ptr(separator); in strextend_with_separator_internal()
805 l_separator = isempty(*x) ? 0 : strlen_ptr(separator); in strextendf_with_separator()
Dstring-util.h184 static inline size_t strlen_ptr(const char *s) { in strlen_ptr() function
Dpath-util.c175 result = new(char, n_parents * 3 + !isempty(t) + strlen_ptr(t)); in path_make_relative()
518 sz = old_sz = x ? strlen_ptr(*x) : 0; in path_extend_internal()
Descape.c304 pl = strlen_ptr(prefix); in cunescape_length_with_prefix()
Denv-util.c54 return env_name_is_valid_n(e, strlen_ptr(e)); in env_name_is_valid()
Dstrv.c362 m = strlen_ptr(prefix); in strv_join_full()
Dhashmap.c2006 separator_len = strlen_ptr(separator); in set_strjoin()
2014 size_t l = strlen_ptr(value); in set_strjoin()
Dsocket-util.c1267 return RET_NERRNO(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, strlen_ptr(ifname))); in socket_bind_to_ifname()
/systemd-251/src/shared/
Dblockdev-util.h11 …RLEN("/sys/dev/block/") + DECIMAL_STR_MAX(dev_t) + 1 + DECIMAL_STR_MAX(dev_t) + strlen_ptr(suffix))
Dimport-util.c120 s = new(char, (e - url) + 1 + strlen_ptr(suffix) + 1); in import_url_change_suffix()
Dwifi-util.c65 } else if (strlen_ptr(ssid) != len) { in wifi_get_interface()
Dcreds-util.c665 ALIGN8(offsetof(struct metadata_credential_header, name) + strlen_ptr(name)) + in encrypt_credential_and_warn()
704 ml = strlen_ptr(name); in encrypt_credential_and_warn()
/systemd-251/src/test/
Dtest-string-util.c565 TEST(strlen_ptr) { in TEST() argument
566 assert_se(strlen_ptr("foo") == 3); in TEST()
567 assert_se(strlen_ptr("") == 0); in TEST()
568 assert_se(strlen_ptr(NULL) == 0); in TEST()
Dtest-path-util.c614 assert_se(p == path + strlen_ptr(path)); in test_path_find_first_component_one()
626 assert_se(strlen_ptr(*expected) == (size_t) r); in test_path_find_first_component_one()
705 assert_se(strlen_ptr(*expected) == (size_t) r); in test_path_find_last_component_one()
/systemd-251/src/network/
Dnetworkd-wifi.c128 } else if (strlen_ptr(ssid) != len) { in manager_genl_process_nl80211_config()
/systemd-251/src/nss-myhostname/
Dnss-myhostname.c210 l_additional = strlen_ptr(additional); in fill_in_hostent()
/systemd-251/src/journal/
Djournald-stream.c267 …r = client_context_acquire(s->server, s->ucred.pid, &s->ucred, s->label, strlen_ptr(s->label), s->… in stdout_stream_log()