Home
last modified time | relevance | path

Searched refs:free (Results 1 – 25 of 62) sorted by relevance

123

/unit/src/
H A Dnxt_buf_pool.c21 b = bp->free; in nxt_buf_pool_mem_alloc()
25 bp->free = b->next; in nxt_buf_pool_mem_alloc()
61 b = bp->free; in nxt_buf_pool_file_alloc()
65 bp->free = b->next; in nxt_buf_pool_file_alloc()
101 b = bp->free; in nxt_buf_pool_mmap_alloc()
105 bp->free = b->next; in nxt_buf_pool_mmap_alloc()
157 b->mem.free = NULL; in nxt_buf_pool_free()
162 b->mem.free = b->mem.start; in nxt_buf_pool_free()
166 b->next = bp->free; in nxt_buf_pool_free()
167 bp->free = b; in nxt_buf_pool_free()
[all …]
H A Dnxt_recvbuf.c26 size = b->mem.end - b->mem.free; in nxt_recvbuf_mem_coalesce()
28 if (b->mem.free != last) { in nxt_recvbuf_mem_coalesce()
34 nxt_iobuf_set(&rb->iobuf[n], b->mem.free, size); in nxt_recvbuf_mem_coalesce()
69 size = b->mem.end - b->mem.free; in nxt_recvbuf_update()
72 b->mem.free += sent; in nxt_recvbuf_update()
76 b->mem.free = b->mem.end; in nxt_recvbuf_update()
H A Dnxt_buf_pool.h22 nxt_buf_t *free; member
46 ((bp)->free != NULL \
48 && (bp)->current->mem.free < (bp)->current->mem.end))
H A Dnxt_sendbuf.c39 size = b->mem.free - b->mem.pos; in nxt_sendbuf_mem_coalesce0()
109 size = b->mem.free - b->mem.pos; in nxt_sendbuf_mem_coalesce()
223 if (size > bsize && bm->pos == bm->free) { in nxt_sendbuf_copy_coalesce()
238 bm->free = bm->pos; in nxt_sendbuf_copy_coalesce()
265 if (bm->pos == bm->free) { in nxt_sendbuf_copy_coalesce()
267 bm->free = bm->start; in nxt_sendbuf_copy_coalesce()
306 bsize = bm->end - bm->free; in nxt_sendbuf_copy()
307 size = b->mem.free - b->mem.pos; in nxt_sendbuf_copy()
313 bm->free += size; in nxt_sendbuf_copy()
315 if (bm->free == bm->end) { in nxt_sendbuf_copy()
[all …]
H A Dnxt_fastcgi_record_parse.c59 while (fp->pos < b->mem.free) { in nxt_fastcgi_record_parse()
261 size = in->mem.free - p; in nxt_fastcgi_buffer()
290 b->mem.free = p; in nxt_fastcgi_buffer()
296 b->mem.free = in->mem.free; in nxt_fastcgi_buffer()
297 b->mem.end = in->mem.free; in nxt_fastcgi_buffer()
H A Dnxt_http_chunk_parse.c53 while (hcp->pos < b->mem.free) { in nxt_http_chunk_parse()
207 size = in->mem.free - p; in nxt_http_chunk_buffer()
229 b->mem.free = p; in nxt_http_chunk_buffer()
235 b->mem.free = in->mem.free; in nxt_http_chunk_buffer()
236 b->mem.end = in->mem.free; in nxt_http_chunk_buffer()
H A Dnxt_buf.h61 u_char *free; member
104 #define NXT_BUF_SYNC_SIZE offsetof(nxt_buf_t, mem.free)
202 ((bm)->free - (bm)->pos)
206 ((bm)->end - (bm)->free)
250 nxt_memcpy(b->mem.free, src, length); in nxt_buf_cpy()
251 b->mem.free += length; in nxt_buf_cpy()
H A Dnxt_stream_source.c311 b->mem.pos = in->mem.free; in nxt_stream_source_process_buffers()
312 b->mem.start = in->mem.free; in nxt_stream_source_process_buffers()
317 in->mem.free += nbytes; in nxt_stream_source_process_buffers()
319 b->mem.free = in->mem.free; in nxt_stream_source_process_buffers()
320 b->mem.end = in->mem.free; in nxt_stream_source_process_buffers()
325 in->mem.free = in->mem.end; in nxt_stream_source_process_buffers()
327 b->mem.free = in->mem.free; in nxt_stream_source_process_buffers()
328 b->mem.end = in->mem.free; in nxt_stream_source_process_buffers()
368 parent->mem.free = parent->mem.start; in nxt_stream_source_buf_completion()
H A Dnxt_fastcgi_source.c225 size = b->mem.end - b->mem.free; in nxt_fastcgi_request_create()
230 p = b->mem.free; in nxt_fastcgi_request_create()
239 b->mem.free = nxt_cpymem(p, nxt_fastcgi_params_record, 8); in nxt_fastcgi_request_create()
270 b->mem.free = nxt_cpymem(b->mem.free, param.buf, len); in nxt_fastcgi_request_create()
285 if (b->mem.end - b->mem.free >= 16) { in nxt_fastcgi_request_create()
302 nxt_memzero(b->mem.free, size); in nxt_fastcgi_request_create()
303 b->mem.free += size; in nxt_fastcgi_request_create()
307 if (b->mem.end - b->mem.free < 16) { in nxt_fastcgi_request_create()
320 p = nxt_cpymem(b->mem.free, nxt_fastcgi_params_record, 8); in nxt_fastcgi_request_create()
323 b->mem.free = nxt_cpymem(p, nxt_fastcgi_stdin_record, 8); in nxt_fastcgi_request_create()
[all …]
H A Dnxt_vector.c54 proto->free(pool, vector->start); in nxt_vector_destroy()
63 proto->free(pool, vector->start); in nxt_vector_destroy()
68 proto->free(pool, vector); in nxt_vector_destroy()
111 proto->free(pool, old); in nxt_vector_add()
H A Dnxt_buf.c25 b->mem.free = start; in nxt_buf_mem_init()
48 b->mem.free = b->mem.start; in nxt_buf_mem_alloc()
79 b->mem.free = b->mem.start; in nxt_buf_mem_ts_alloc()
114 b->mem.free = b->mem.start; in nxt_buf_file_alloc()
187 length += b->mem.free - b->mem.pos; in nxt_buf_chain_length()
232 parent->mem.pos = parent->mem.free; in nxt_buf_parent_completion()
325 b->mem.free = nxt_cpymem(b->mem.free, i->mem.pos, nxt_buf_used_size(i)); in nxt_buf_make_plain()
H A Dnxt_sha1.c34 size_t used, free; in nxt_sha1_update() local
40 free = 64 - used; in nxt_sha1_update()
42 if (size < free) { in nxt_sha1_update()
47 memcpy(&ctx->buffer[used], data, free); in nxt_sha1_update()
48 data = (u_char *) data + free; in nxt_sha1_update()
49 size -= free; in nxt_sha1_update()
65 size_t used, free; in nxt_sha1_final() local
71 free = 64 - used; in nxt_sha1_final()
73 if (free < 8) { in nxt_sha1_final()
74 nxt_memzero(&ctx->buffer[used], free); in nxt_sha1_final()
[all …]
H A Dnxt_event_engine.c18 nxt_mem_cache_block_t *free; member
148 interface->free(engine); in nxt_event_engine_create()
416 engine->event.free(engine); in nxt_event_engine_change()
457 engine->event.free(engine); in nxt_event_engine_free()
604 cache->free = NULL; in nxt_event_engine_mem_alloc()
618 block = cache->free; in nxt_event_engine_mem_alloc()
621 cache->free = block->next; in nxt_event_engine_mem_alloc()
667 block->next = cache->free; in nxt_event_engine_mem_free()
668 cache->free = block; in nxt_event_engine_mem_free()
701 b->mem.free = b->mem.start; in nxt_event_engine_buf_mem_alloc()
H A Dnxt_http_websocket.c79 buf->mem.free = nxt_cpymem(buf->mem.free, b->mem.pos, in nxt_http_websocket_client()
118 b->mem.free = b->mem.start + used_size; in nxt_http_websocket_client()
H A Dnxt_controller.c816 b->mem.free = nxt_cpymem(b->mem.free, c->read->mem.pos, preread); in nxt_controller_conn_read()
930 if (b->mem.pos != b->mem.free) { in nxt_controller_conn_write()
2240 body->mem.free = nxt_conf_json_print(body->mem.free, value, &pretty); in nxt_controller_response()
2242 body->mem.free = nxt_cpymem(body->mem.free, "\r\n", 2); in nxt_controller_response()
2262 b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); in nxt_controller_response()
2263 b->mem.free = nxt_cpymem(b->mem.free, status_line.start, in nxt_controller_response()
2270 b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); in nxt_controller_response()
2273 b->mem.free); in nxt_controller_response()
2279 b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); in nxt_controller_response()
2281 b->mem.free = nxt_sprintf(b->mem.free, b->mem.end, "%uz", in nxt_controller_response()
[all …]
H A Dnxt_conn_proxy.c394 if (rb->mem.pos != rb->mem.free) { in nxt_conn_proxy_read_process()
406 wb->mem.free = rb->mem.free; in nxt_conn_proxy_read_process()
408 wb->mem.end = rb->mem.free; in nxt_conn_proxy_read_process()
410 rb->mem.pos = rb->mem.free; in nxt_conn_proxy_read_process()
411 rb->mem.start = rb->mem.free; in nxt_conn_proxy_read_process()
483 prev->mem.free = b->mem.end; in nxt_conn_proxy_write_add()
599 rb->mem.free = wb->mem.start; in nxt_conn_proxy_write_process()
608 if (wb->mem.pos != wb->mem.free) { in nxt_conn_proxy_write_process()
654 first->mem.free = b->mem.start; in nxt_conn_proxy_read_add()
689 first->mem.free = second->mem.start; in nxt_conn_proxy_read_add()
H A Dnxt_cyassl.c361 ret = CyaSSL_read(ssltls->session, b->mem.free, in nxt_cyassl_conn_io_read()
362 b->mem.end - b->mem.free); in nxt_cyassl_conn_io_read()
367 c->socket.fd, b->mem.free, b->mem.end - b->mem.free, ret); in nxt_cyassl_conn_io_read()
371 b->mem.free += ret; in nxt_cyassl_conn_io_read()
383 c->socket.fd, b->mem.free, in nxt_cyassl_conn_io_read()
384 b->mem.end - b->mem.free); in nxt_cyassl_conn_io_read()
H A Dnxt_unit.c2207 buf->free = p; in nxt_unit_response_realloc()
2282 buf->free = nxt_cpymem(buf->free, name, name_length); in nxt_unit_response_add_field()
2283 *buf->free++ = '\0'; in nxt_unit_response_add_field()
2286 buf->free = nxt_cpymem(buf->free, value, value_length); in nxt_unit_response_add_field()
2287 *buf->free++ = '\0'; in nxt_unit_response_add_field()
2339 buf->free = nxt_cpymem(buf->free, src, size); in nxt_unit_response_add_content()
2948 mmap_buf.buf.free = nxt_cpymem(mmap_buf.buf.free, in nxt_unit_response_write_nb()
3001 n = read_info->read(read_info, buf->free, buf->end - buf->free); in nxt_unit_response_write_cb()
3045 n = read_info->read(read_info, buf->free, buf->end - buf->free); in nxt_unit_response_write_cb()
3379 buf->free = nxt_cpymem(buf->free, b, copy); in nxt_unit_websocket_sendv()
[all …]
H A Dnxt_gnutls.c490 n = gnutls_record_recv(ssltls->session, b->mem.free, in nxt_gnutls_conn_io_read()
491 b->mem.end - b->mem.free); in nxt_gnutls_conn_io_read()
494 c->socket.fd, b->mem.free, b->mem.end - b->mem.free, n); in nxt_gnutls_conn_io_read()
498 b->mem.free += n; in nxt_gnutls_conn_io_read()
514 c->socket.fd, b->mem.free, in nxt_gnutls_conn_io_read()
515 b->mem.end - b->mem.free); in nxt_gnutls_conn_io_read()
H A Dnxt_job_file.c250 jbf->buffer->mem.free = end; in nxt_job_file_mmap()
280 n = nxt_file_read(&jbf->file, jbf->buffer->mem.free, size, jbf->offset); in nxt_job_file_read_data()
284 jbf->buffer->mem.free += n; in nxt_job_file_read_data()
H A Dnxt_credential.c216 goto free; in nxt_credential_groups_get()
229 goto free; in nxt_credential_groups_get()
271 free: in nxt_credential_groups_get()
/unit/src/java/
H A Dnxt_jni_OutputStream.c96 *buf->free++ = b; in nxt_java_OutputStream_writeByte()
98 if ((uint32_t) (buf->free - buf->start) >= data->buf_size) { in nxt_java_OutputStream_writeByte()
157 if (buf == NULL || buf->free >= buf->end) { in nxt_java_OutputStream_req_buf()
196 copy = buf->end - buf->free; in nxt_java_OutputStream_write()
199 memcpy(buf->free, ptr + off, copy); in nxt_java_OutputStream_write()
200 buf->free += copy; in nxt_java_OutputStream_write()
205 if ((uint32_t) (buf->free - buf->start) >= data->buf_size) { in nxt_java_OutputStream_write()
226 if (data->buf != NULL && data->buf->free > data->buf->start) { in nxt_java_OutputStream_flush()
H A Dnxt_jni_InputStream.c177 b_size = buf->end - buf->free; in nxt_java_InputStream_skip()
180 buf->free += b_size; in nxt_java_InputStream_skip()
184 if (buf->end == buf->free) { in nxt_java_InputStream_skip()
/unit/src/test/
H A Dnxt_unit_app_test.c211 p = buf->free; in greeting_app_request_handler()
260 res = nxt_unit_request_read(req, buf->free, buf->end - buf->free); in greeting_app_request_handler()
261 buf->free += res; in greeting_app_request_handler()
265 buf->free = p; in greeting_app_request_handler()
/unit/auto/
H A Dmalloc22 free(p);
46 free(p);

123