Lines Matching refs:vec
60 struct iovec *vec = TG(header_vec); in sapi_tux_ub_write() local
63 vec[n].iov_base = (void *) str; in sapi_tux_ub_write()
64 vec[n++].iov_len = str_length; in sapi_tux_ub_write()
67 if ((m = writev(TG(req)->sock, vec, n)) == -1 && errno == EPIPE) in sapi_tux_ub_write()
102 struct iovec *vec; in sapi_tux_send_headers() local
115 vec = malloc(sizeof(struct iovec) * max_headers); in sapi_tux_send_headers()
121 vec[0].iov_base = status_line; in sapi_tux_send_headers()
122 vec[0].iov_len = len; in sapi_tux_send_headers()
139 vec[n].iov_base = h->header; in sapi_tux_send_headers()
140 vec[n++].iov_len = h->header_len; in sapi_tux_send_headers()
143 vec = realloc(vec, sizeof(struct iovec) * max_headers); in sapi_tux_send_headers()
145 vec[n].iov_base = "\r\n"; in sapi_tux_send_headers()
146 vec[n++].iov_len = 2; in sapi_tux_send_headers()
151 vec[n].iov_base = "\r\n"; in sapi_tux_send_headers()
152 vec[n++].iov_len = 2; in sapi_tux_send_headers()
155 TG(header_vec) = vec; in sapi_tux_send_headers()