Searched refs:string_size (Results 1 – 3 of 3) sorted by relevance
| /xnu-11215/bsd/kern/ |
| H A D | kern_exec.c | 5698 size_t string_size; in exec_copyout_strings() local 5761 string_size = imgp->ip_strendp - imgp->ip_strings; in exec_copyout_strings() 5762 stack -= string_size; in exec_copyout_strings() 5801 string_size); in exec_copyout_strings() 7537 size_t string_size = 0; in thread_get_current_exec_path() local 7545 string_size = imgp->ip_strendp - exec_path; in thread_get_current_exec_path() 7546 string_size = MIN(MAXPATHLEN, string_size); in thread_get_current_exec_path() 7547 string_size = MIN(size, string_size); in thread_get_current_exec_path() 7549 string_size = strlcpy(path, exec_path, string_size); in thread_get_current_exec_path() 7550 return string_size; in thread_get_current_exec_path()
|
| /xnu-11215/bsd/netinet/ |
| H A D | mptcp_subr.c | 1577 size_t string_size = strlen(mpp->inp_necp_attributes.inp_domain); in mptcp_subflow_socreate() local 1578 sotoinpcb(*so)->inp_necp_attributes.inp_domain = kalloc_data(string_size + 1, Z_WAITOK | Z_ZERO); in mptcp_subflow_socreate() 1581 …oinpcb(*so)->inp_necp_attributes.inp_domain, mpp->inp_necp_attributes.inp_domain, string_size + 1); in mptcp_subflow_socreate() 1585 size_t string_size = strlen(mpp->inp_necp_attributes.inp_account); in mptcp_subflow_socreate() local 1586 sotoinpcb(*so)->inp_necp_attributes.inp_account = kalloc_data(string_size + 1, Z_WAITOK | Z_ZERO); in mptcp_subflow_socreate() 1589 …npcb(*so)->inp_necp_attributes.inp_account, mpp->inp_necp_attributes.inp_account, string_size + 1); in mptcp_subflow_socreate() 1594 size_t string_size = strlen(mpp->inp_necp_attributes.inp_domain_owner); in mptcp_subflow_socreate() local 1595 …sotoinpcb(*so)->inp_necp_attributes.inp_domain_owner = kalloc_data(string_size + 1, Z_WAITOK | Z_Z… in mptcp_subflow_socreate() 1598 …>inp_necp_attributes.inp_domain_owner, mpp->inp_necp_attributes.inp_domain_owner, string_size + 1); in mptcp_subflow_socreate() 1603 size_t string_size = strlen(mpp->inp_necp_attributes.inp_tracker_domain); in mptcp_subflow_socreate() local [all …]
|
| /xnu-11215/bsd/net/ |
| H A D | necp_client.c | 10965 size_t string_size = 0; in necp_set_socket_attribute() local 10977 string_size = necp_buffer_get_tlv_length(buffer, buffer_length, cursor); in necp_set_socket_attribute() 10978 if (single_tlv != NULL && (buffer_length == sizeof(struct necp_tlv_header) + string_size)) { in necp_set_socket_attribute() 10981 if (string_size == 0 || string_size > NECP_MAX_SOCKET_ATTRIBUTE_STRING_LENGTH) { in necp_set_socket_attribute() 10986 local_string = (char *)kalloc_data(string_size + 1, Z_WAITOK | Z_ZERO); in necp_set_socket_attribute() 10987 local_string_length = string_size + 1; in necp_set_socket_attribute() 10989 NECPLOG(LOG_ERR, "Failed to allocate a socket attribute buffer (size %zu)", string_size); in necp_set_socket_attribute() 10999 memcpy(local_string, value, string_size); in necp_set_socket_attribute() 11000 local_string[string_size] = 0; in necp_set_socket_attribute() 11010 *buffer_p = __unsafe_null_terminated_from_indexable(local_string, &local_string[string_size]); in necp_set_socket_attribute()
|