Home
last modified time | relevance | path

Searched refs:free (Results 1 – 25 of 62) sorted by last modified time

123

/unit/src/
H A Dnxt_main.h89 nxt_mem_proto_free_t free; member
H A Dnxt_process.c526 buf->mem.free = nxt_cpymem(buf->mem.free, &nxt_ppid, sizeof(nxt_pid_t)); in nxt_process_whoami()
H A Dnxt_application.c290 p = b->mem.free; in nxt_discovery_modules()
324 b->mem.free = p; in nxt_discovery_modules()
H A Dnxt_router_access_log.c216 *b->mem.free++ = '\0'; in nxt_router_access_log_open()
364 *b->mem.free++ = '\0'; in nxt_router_access_log_reopen_handler()
H A Dnxt_router.c418 *b->mem.free++ = '\0'; in nxt_router_start_app_process_handler()
2562 b->mem.free = nxt_cpymem(b->mem.free, skcf->listen->sockaddr, size); in nxt_router_listen_socket_rpc_create()
2679 out->mem.free = nxt_sprintf(out->mem.free, out->mem.end, in nxt_router_listen_socket_error()
2683 &socket_errors[error], in->mem.free - p, p); in nxt_router_listen_socket_error()
2792 *b->mem.free++ = '\0'; in nxt_router_app_rpc_create()
3881 b->mem.pos = b->mem.free; in nxt_router_response_ready_handler()
5030 buf->mem.pos = buf->mem.free; in nxt_router_app_prepare_request()
5143 req = (nxt_unit_request_t *) out->mem.free; in nxt_router_prepare_msg()
5144 out->mem.free += req_size; in nxt_router_prepare_msg()
5310 nxt_unit_sptr_set(&req->preread_content, out->mem.free); in nxt_router_prepare_msg()
[all …]
H A Dnxt_http_static.c894 b->mem.free = b->mem.pos + n; in nxt_http_static_buf_completion()
H A Dnxt_controller.c800 b->mem.free = nxt_cpymem(b->mem.free, c->read->mem.pos, preread); in nxt_controller_conn_read()
914 if (b->mem.pos != b->mem.free) { in nxt_controller_conn_write()
2071 body->mem.free = nxt_conf_json_print(body->mem.free, value, &pretty); in nxt_controller_response()
2073 body->mem.free = nxt_cpymem(body->mem.free, "\r\n", 2); in nxt_controller_response()
2093 b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); in nxt_controller_response()
2094 b->mem.free = nxt_cpymem(b->mem.free, status_line.start, in nxt_controller_response()
2101 b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); in nxt_controller_response()
2104 b->mem.free); in nxt_controller_response()
2110 b->mem.free = nxt_cpymem(b->mem.free, str.start, str.length); in nxt_controller_response()
2112 b->mem.free = nxt_sprintf(b->mem.free, b->mem.end, "%uz", in nxt_controller_response()
[all …]
H A Dnxt_unit.c2193 buf->free = p; in nxt_unit_response_realloc()
2268 buf->free = nxt_cpymem(buf->free, name, name_length); in nxt_unit_response_add_field()
2269 *buf->free++ = '\0'; in nxt_unit_response_add_field()
2272 buf->free = nxt_cpymem(buf->free, value, value_length); in nxt_unit_response_add_field()
2273 *buf->free++ = '\0'; in nxt_unit_response_add_field()
2325 buf->free = nxt_cpymem(buf->free, src, size); in nxt_unit_response_add_content()
2934 mmap_buf.buf.free = nxt_cpymem(mmap_buf.buf.free, in nxt_unit_response_write_nb()
2987 n = read_info->read(read_info, buf->free, buf->end - buf->free); in nxt_unit_response_write_cb()
3031 n = read_info->read(read_info, buf->free, buf->end - buf->free); in nxt_unit_response_write_cb()
3365 buf->free = nxt_cpymem(buf->free, b, copy); in nxt_unit_websocket_sendv()
[all …]
H A Dnxt_port_socket.c214 b->mem.pos = b->mem.free; in nxt_port_socket_write2()
660 b->mem.pos = b->mem.free; in nxt_port_buf_completion()
1190 b->mem.free += msg->size; in nxt_port_read_msg_process()
1314 b->mem.free = b->mem.start; in nxt_port_buf_alloc()
H A Dnxt_http_parse.c135 rc = rp->handler(rp, &b->pos, b->free); in nxt_http_parse_request()
152 rc = rp->handler(rp, &b->pos, b->free); in nxt_http_parse_fields()
H A Dnxt_h1proto.c329 b->mem.free = b->mem.pos; in nxt_http_conn_test()
921 b->mem.free = b->mem.start; in nxt_h1p_request_body_read()
957 b->mem.free = nxt_cpymem(b->mem.free, in->mem.pos, size); in nxt_h1p_request_body_read()
983 b->mem.free = NULL; in nxt_h1p_request_body_read()
1053 if (b->mem.pos == b->mem.free) { in nxt_h1p_conn_request_body_read()
1062 b->mem.pos = b->mem.free; in nxt_h1p_conn_request_body_read()
1079 b->mem.free = NULL; in nxt_h1p_conn_request_body_read()
1362 header->mem.free = p; in nxt_h1p_request_header_send()
1537 header->mem.free = nxt_sprintf(header->mem.free, header->mem.end, in nxt_h1p_chunk_create()
2284 p = header->mem.free; in nxt_h1p_peer_header_send()
[all …]
H A Dnxt_port_memory.c586 b->mem.free = b->mem.start; in nxt_port_mmap_get_buf()
696 b->mem.free = b->mem.start + mmap_msg->size; in nxt_port_mmap_get_incoming_buf()
776 end = (nxt_port_mmap_msg_t *) b->mem.free; in nxt_port_mmap_read()
H A Dnxt_openssl.c1341 size = b->mem.end - b->mem.free;
1343 ret = SSL_read(tls->session, b->mem.free, size);
1348 c->socket.fd, b->mem.free, size, ret, err);
1359 c->socket.fd, b->mem.free, size);
H A Dnxt_lvlhsh.h79 nxt_lvlhsh_free_t free; member
H A Dnxt_malloc.h28 free(p)
H A Dnxt_lvlhsh.c505 proto->free(lhq->pool, bucket); in nxt_lvlhsh_convert_bucket_to_level()
617 proto->free(lhq->pool, nxt_lvlhsh_bucket(proto, level[i])); in nxt_lvlhsh_free_level()
621 proto->free(lhq->pool, level); in nxt_lvlhsh_free_level()
673 lhq->proto->free(lhq->pool, lvl); in nxt_lvlhsh_level_delete()
710 proto->free(lhq->pool, bucket); in nxt_lvlhsh_bucket_delete()
922 peek->proto->free(peek->pool, level); in nxt_lvlhsh_level_peek()
959 proto->free(peek->pool, bucket); in nxt_lvlhsh_bucket_peek()
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_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_cache.c595 cache->free(cache->data, node); in nxt_cache_node_free()
639 cache->free(cache->data, qw); in nxt_cache_query_wait_free()
H A Dnxt_event_engine.h38 void (*free)(nxt_event_engine_t *engine); member
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_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_main_process.c417 nxt_debug(task, "main start prototype: %*s", b->mem.free - b->mem.pos, in nxt_main_start_process_handler()
453 conf = nxt_conf_json_parse(process->mem_pool, start, b->mem.free, NULL); in nxt_main_start_process_handler()
683 buf->mem.free = nxt_cpymem(buf->mem.free, &pid, sizeof(nxt_pid_t)); in nxt_main_process_whoami_handler()
1081 *out->mem.free++ = (uint8_t) ls.error; in nxt_main_port_socket_handler()
1083 out->mem.free = nxt_cpymem(out->mem.free, ls.start, size); in nxt_main_port_socket_handler()
1328 b->mem.free - b->mem.pos, b->mem.pos); in nxt_main_port_modules_handler()
1330 conf = nxt_conf_json_parse(mp, b->mem.pos, b->mem.free, NULL); in nxt_main_port_modules_handler()
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_malloc.c114 free(p); in nxt_free()

123