Lines Matching refs:msghdr
29 # define msghdr _WSAMSG macro
932 struct msghdr *msg = (struct msghdr*)msghdr_c; in from_zval_write_control_array()
1014 struct msghdr *msg = (struct msghdr *)msghdr_c; in to_zval_read_control_array()
1046 struct msghdr *msghdr = (struct msghdr *)msghdr_c; in from_zval_write_name() local
1050 msghdr->msg_name = sockaddr; in from_zval_write_name()
1051 msghdr->msg_namelen = sockaddr_len; in from_zval_write_name()
1065 struct msghdr *msghdr = (struct msghdr *)msghdr_c; in from_zval_write_msghdr_buffer_size() local
1078 msghdr->msg_iovlen = 1; in from_zval_write_msghdr_buffer_size()
1079 msghdr->msg_iov = accounted_emalloc(sizeof(*msghdr->msg_iov) * 1, ctx); in from_zval_write_msghdr_buffer_size()
1080 msghdr->msg_iov[0].iov_base = accounted_emalloc((size_t)lval, ctx); in from_zval_write_msghdr_buffer_size()
1081 msghdr->msg_iov[0].iov_len = (size_t)lval; in from_zval_write_msghdr_buffer_size()
1085 struct msghdr *msg = args[0]; in from_zval_write_iov_array_aux()
1099 struct msghdr *msg = (struct msghdr*)msghdr_c; in from_zval_write_iov_array()
1118 struct msghdr *msghdr = (struct msghdr *)msghdr_c; in from_zval_write_controllen() local
1129 msghdr->msg_control = accounted_emalloc(len, ctx); in from_zval_write_controllen()
1130 msghdr->msg_controllen = len; in from_zval_write_controllen()
1165 struct msghdr *msghdr = (struct msghdr *)msghdr_c; in from_zval_write_msghdr_recv() local
1181 if (msghdr->msg_iovlen == 0) { in from_zval_write_msghdr_recv()
1182 msghdr->msg_iovlen = 1; in from_zval_write_msghdr_recv()
1183 msghdr->msg_iov = accounted_emalloc(sizeof(*msghdr->msg_iov) * 1, ctx); in from_zval_write_msghdr_recv()
1184 msghdr->msg_iov[0].iov_base = accounted_emalloc((size_t)DEFAULT_BUFF_SIZE, ctx); in from_zval_write_msghdr_recv()
1185 msghdr->msg_iov[0].iov_len = (size_t)DEFAULT_BUFF_SIZE; in from_zval_write_msghdr_recv()
1191 const struct msghdr *msghdr = (const struct msghdr *)msghdr_c; in to_zval_read_iov() local
1192 size_t iovlen = msghdr->msg_iovlen; in to_zval_read_iov()
1211 size_t len = MIN(msghdr->msg_iov[i].iov_len, (size_t)bytes_left); in to_zval_read_iov()
1214 memcpy(ZSTR_VAL(buf), msghdr->msg_iov[i].iov_base, ZSTR_LEN(buf)); in to_zval_read_iov()
1225 {"name", sizeof("name"), 0, offsetof(struct msghdr, msg_name), 0, to_zval_read_name}, in to_zval_read_msghdr()
1228 {"flags", sizeof("flags"), 0, offsetof(struct msghdr, msg_flags), 0, to_zval_read_int}, in to_zval_read_msghdr()