Searched refs:strlen_ptr (Results 1 – 21 of 21) sorted by relevance
/systemd-251/coccinelle/ |
D | isempty.cocci | 32 - 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/ |
D | sd-lldp-tx.c | 177 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/ |
D | bus-label.h | 13 return bus_label_unescape_n(f, strlen_ptr(f)); in bus_label_unescape()
|
D | siphash24.h | 44 siphash24_compress_safe(in, strlen_ptr(in), state); in siphash24_compress_string()
|
D | string-util.c | 731 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()
|
D | string-util.h | 184 static inline size_t strlen_ptr(const char *s) { in strlen_ptr() function
|
D | path-util.c | 175 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()
|
D | escape.c | 304 pl = strlen_ptr(prefix); in cunescape_length_with_prefix()
|
D | env-util.c | 54 return env_name_is_valid_n(e, strlen_ptr(e)); in env_name_is_valid()
|
D | strv.c | 362 m = strlen_ptr(prefix); in strv_join_full()
|
D | hashmap.c | 2006 separator_len = strlen_ptr(separator); in set_strjoin() 2014 size_t l = strlen_ptr(value); in set_strjoin()
|
D | socket-util.c | 1267 return RET_NERRNO(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, strlen_ptr(ifname))); in socket_bind_to_ifname()
|
/systemd-251/src/shared/ |
D | blockdev-util.h | 11 …RLEN("/sys/dev/block/") + DECIMAL_STR_MAX(dev_t) + 1 + DECIMAL_STR_MAX(dev_t) + strlen_ptr(suffix))
|
D | import-util.c | 120 s = new(char, (e - url) + 1 + strlen_ptr(suffix) + 1); in import_url_change_suffix()
|
D | wifi-util.c | 65 } else if (strlen_ptr(ssid) != len) { in wifi_get_interface()
|
D | creds-util.c | 665 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/ |
D | test-string-util.c | 565 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()
|
D | test-path-util.c | 614 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/ |
D | networkd-wifi.c | 128 } else if (strlen_ptr(ssid) != len) { in manager_genl_process_nl80211_config()
|
/systemd-251/src/nss-myhostname/ |
D | nss-myhostname.c | 210 l_additional = strlen_ptr(additional); in fill_in_hostent()
|
/systemd-251/src/journal/ |
D | journald-stream.c | 267 …r = client_context_acquire(s->server, s->ucred.pid, &s->ucred, s->label, strlen_ptr(s->label), s->… in stdout_stream_log()
|