Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 169) sorted by relevance

1234567

/unit/src/
H A Dnxt_mp.h34 NXT_EXPORT nxt_mp_t *nxt_mp_create(size_t cluster_size, size_t page_alignment,
35 size_t page_size, size_t min_chunk_size)
56 NXT_EXPORT nxt_bool_t nxt_mp_test_sizes(size_t cluster_size,
57 size_t page_alignment, size_t page_size, size_t min_chunk_size);
67 NXT_EXPORT void *nxt_mp_alloc(nxt_mp_t *mp, size_t size)
75 NXT_EXPORT void *nxt_mp_zalloc(nxt_mp_t *mp, size_t size)
79 NXT_EXPORT void *nxt_mp_align(nxt_mp_t *mp, size_t alignment, size_t size)
83 NXT_EXPORT void *nxt_mp_zalign(nxt_mp_t *mp, size_t alignment, size_t size)
91 NXT_EXPORT void *nxt_mp_nget(nxt_mp_t *mp, size_t size)
98 NXT_EXPORT void *nxt_mp_get(nxt_mp_t *mp, size_t size)
[all …]
H A Dnxt_sendbuf.h44 size_t size;
45 size_t limit;
65 size_t size;
66 size_t limit;
73 size_t limit);
79 size_t limit);
85 size_t limit);
91 size_t limit);
97 size_t limit);
103 size_t limit);
[all …]
H A Dnxt_string.h49 size_t length);
51 size_t length);
59 nxt_cpymem(void *dst, const void *src, size_t length) in nxt_cpymem()
89 size_t length);
91 size_t length);
94 const char *ss, size_t length);
96 const char *ss, size_t length);
98 const char *ss, size_t length);
103 size_t length;
161 size_t length);
[all …]
H A Dnxt_parse.h11 NXT_EXPORT nxt_int_t nxt_int_parse(const u_char *p, size_t len);
12 NXT_EXPORT ssize_t nxt_size_t_parse(const u_char *p, size_t len);
13 NXT_EXPORT ssize_t nxt_size_parse(const u_char *p, size_t len);
14 NXT_EXPORT nxt_off_t nxt_off_t_parse(const u_char *p, size_t len);
20 NXT_EXPORT nxt_time_t nxt_time_parse(const u_char *p, size_t len);
21 NXT_EXPORT nxt_int_t nxt_term_parse(const u_char *p, size_t len,
H A Dnxt_malloc.c31 nxt_malloc(size_t size) in nxt_malloc()
50 nxt_zalloc(size_t size) in nxt_zalloc()
65 nxt_realloc(void *p, size_t size) in nxt_realloc()
94 nxt_lvlhsh_alloc(void *data, size_t size) in nxt_lvlhsh_alloc()
129 nxt_memalign(size_t alignment, size_t size) in nxt_memalign()
153 nxt_memalign(size_t alignment, size_t size) in nxt_memalign()
181 nxt_memalign(size_t alignment, size_t size) in nxt_memalign()
183 size_t aligned_size; in nxt_memalign()
H A Dnxt_mem_zone.h14 NXT_EXPORT nxt_mem_zone_t *nxt_mem_zone_init(u_char *start, size_t zone_size,
20 NXT_EXPORT void *nxt_mem_zone_align(nxt_mem_zone_t *zone, size_t alignment,
21 size_t size)
23 NXT_EXPORT void *nxt_mem_zone_zalloc(nxt_mem_zone_t *zone, size_t size)
H A Dnxt_malloc.h11 NXT_EXPORT void *nxt_malloc(size_t size)
13 NXT_EXPORT void *nxt_zalloc(size_t size)
15 NXT_EXPORT void *nxt_realloc(void *p, size_t size)
17 NXT_EXPORT void *nxt_memalign(size_t alignment, size_t size)
H A Dnxt_unit.h153 const void *buf, size_t buf_size,
154 const void *oob, size_t oob_size);
158 void *buf, size_t buf_size, void *oob, size_t *oob_size);
186 void *dst, size_t size);
305 size_t size);
308 const void *start, size_t size, size_t min_size);
314 size_t size);
317 size_t max_size);
323 uint8_t last, const void *start, size_t size);
329 size_t size);
[all …]
H A Dnxt_solaris_sendfilev.c19 size_t limit);
20 static size_t nxt_solaris_buf_coalesce(nxt_buf_t *b, sendfilevec_t *sfv,
21 int32_t *nsfv, nxt_bool_t *sync, size_t limit);
26 size_t limit) in nxt_solaris_event_conn_io_sendfilev()
28 size_t sent; in nxt_solaris_event_conn_io_sendfilev()
89 static size_t
91 nxt_bool_t *sync, size_t limit) in nxt_solaris_buf_coalesce()
93 size_t size, total; in nxt_solaris_buf_coalesce()
H A Dnxt_router.h155 size_t max_frame_size;
177 size_t header_buffer_size;
178 size_t large_header_buffer_size;
179 size_t large_header_buffers;
180 size_t body_buffer_size;
181 size_t max_body_size;
182 size_t proxy_header_buffer_size;
183 size_t proxy_buffer_size;
184 size_t proxy_buffers;
H A Dnxt_utf8.h23 const u_char *start2, size_t len1, size_t len2);
25 NXT_EXPORT ssize_t nxt_utf8_length(const u_char *p, size_t len);
26 NXT_EXPORT nxt_bool_t nxt_utf8_is_valid(const u_char *p, size_t len);
H A Dnxt_port_memory.h24 nxt_port_mmap_get_buf(nxt_task_t *task, nxt_port_mmaps_t *mmaps, size_t size);
27 size_t size, size_t min_size);
51 nxt_int_t nxt_shm_open(nxt_task_t *task, size_t size);
H A Dnxt_buf.h214 NXT_EXPORT void nxt_buf_mem_init(nxt_buf_t *b, void *start, size_t size);
215 NXT_EXPORT nxt_buf_t *nxt_buf_mem_alloc(nxt_mp_t *mp, size_t size,
218 size_t size);
219 NXT_EXPORT nxt_buf_t *nxt_buf_file_alloc(nxt_mp_t *mp, size_t size,
221 NXT_EXPORT nxt_buf_t *nxt_buf_mmap_alloc(nxt_mp_t *mp, size_t size);
228 size_t size);
231 nxt_buf_chk_make_plain(nxt_mp_t *mp, nxt_buf_t *src, size_t size) in nxt_buf_chk_make_plain()
245 NXT_EXPORT size_t nxt_buf_chain_length(nxt_buf_t *b);
248 nxt_buf_cpy(nxt_buf_t *b, const void *src, size_t length) in nxt_buf_cpy()
H A Dnxt_mp.c154 static void *nxt_mp_alloc_large(nxt_mp_t *mp, size_t alignment, size_t size,
242 nxt_mp_create(size_t cluster_size, size_t page_alignment, size_t page_size, in nxt_mp_create()
243 size_t min_chunk_size) in nxt_mp_create()
350 nxt_mp_test_sizes(size_t cluster_size, size_t page_alignment, size_t page_size, in nxt_mp_test_sizes()
351 size_t min_chunk_size) in nxt_mp_test_sizes()
431 nxt_mp_align(nxt_mp_t *mp, size_t alignment, size_t size) in nxt_mp_align()
441 size_t aligned_size; in nxt_mp_align()
469 nxt_mp_zalign(nxt_mp_t *mp, size_t alignment, size_t size) in nxt_mp_zalign()
507 size_t page_offset; in nxt_mp_page_addr()
711 nxt_mp_alloc_large(nxt_mp_t *mp, size_t alignment, size_t size, in nxt_mp_alloc_large()
[all …]
H A Dnxt_parse.c16 nxt_int_parse(const u_char *p, size_t length) in nxt_int_parse()
62 nxt_size_t_parse(const u_char *p, size_t length) in nxt_size_t_parse()
65 size_t val; in nxt_size_t_parse()
67 static const size_t cutoff = NXT_SIZE_T_MAX / 10; in nxt_size_t_parse()
68 static const size_t cutlim = NXT_SIZE_T_MAX % 10; in nxt_size_t_parse()
108 nxt_size_parse(const u_char *p, size_t length) in nxt_size_parse()
167 nxt_off_t_parse(const u_char *p, size_t length) in nxt_off_t_parse()
216 size_t length; in nxt_str_int_parse()
H A Dnxt_regex.h21 size_t offset;
35 NXT_EXPORT nxt_regex_match_t *nxt_regex_match_create(nxt_mp_t *mp, size_t size);
37 size_t length, nxt_regex_match_t *match);
H A Dnxt_conn.h32 size_t limit;
33 size_t limit_after;
34 size_t max_limit;
73 size_t limit);
84 size_t size);
249 ssize_t nxt_conn_io_recv(nxt_conn_t *c, void *buf, size_t size,
257 size_t size);
259 size_t nxt_event_conn_write_limit(nxt_conn_t *c);
261 nxt_conn_t *c, size_t sent);
310 size_t client_buffer_size;
[all …]
H A Dnxt_string.c11 nxt_str_alloc(nxt_mp_t *mp, size_t length) in nxt_str_alloc()
131 nxt_cpystrn(u_char *dst, const u_char *src, size_t length) in nxt_cpystrn()
209 nxt_memcasecmp(const void *p1, const void *p2, size_t length) in nxt_memcasecmp()
278 size_t length) in nxt_memcasestrn()
340 size_t
520 nxt_decode_uri(u_char *dst, u_char *src, size_t length) in nxt_decode_uri()
555 nxt_decode_uri_plus(u_char *dst, u_char *src, size_t length) in nxt_decode_uri_plus()
596 nxt_encode_uri(u_char *dst, u_char *src, size_t length) in nxt_encode_uri()
706 nxt_is_complex_uri_encoded(u_char *src, size_t length) in nxt_is_complex_uri_encoded()
751 nxt_base64_decode(u_char *dst, u_char *src, size_t length) in nxt_base64_decode()
[all …]
H A Dnxt_errno.c26 size_t size);
27 static u_char *nxt_runtime_strerror(nxt_err_t err, u_char *errstr, size_t size);
40 size_t size, length, n; in nxt_strerror_start()
133 nxt_bootstrap_strerror(nxt_err_t err, u_char *errstr, size_t size) in nxt_bootstrap_strerror()
140 nxt_runtime_strerror(nxt_err_t err, u_char *errstr, size_t size) in nxt_runtime_strerror()
H A Dnxt_file.h25 size_t len;
156 size_t size, nxt_off_t offset);
157 NXT_EXPORT ssize_t nxt_file_read(nxt_file_t *file, u_char *buf, size_t size,
160 size_t size);
185 NXT_EXPORT ssize_t nxt_fd_write(nxt_fd_t fd, u_char *buf, size_t size);
186 NXT_EXPORT ssize_t nxt_fd_read(nxt_fd_t fd, u_char *buf, size_t size);
209 NXT_EXPORT size_t nxt_dir_current(char *buf, size_t len);
H A Dnxt_sockaddr.h75 size_t address_length)
78 struct sockaddr *sockaddr, socklen_t socklen, size_t address_length)
91 NXT_EXPORT size_t nxt_sockaddr_ntop(nxt_sockaddr_t *sa, u_char *buf,
97 NXT_EXPORT in_addr_t nxt_inet_addr(u_char *buf, size_t len);
100 size_t len);
H A Dnxt_fiber.h27 size_t stack_size;
43 size_t stack_size;
49 nxt_int_t nxt_fiber_create(nxt_fiber_start_t start, void *data, size_t stack);
/unit/go/
H A Dnxt_cgo_lib.c14 const void *buf, size_t buf_size, const void *oob, size_t oob_size);
16 void *buf, size_t buf_size, void *oob, size_t *oob_size);
52 const void *buf, size_t buf_size, const void *oob, size_t oob_size) in nxt_cgo_port_send()
61 void *buf, size_t buf_size, void *oob, size_t *oob_size) in nxt_cgo_port_recv()
/unit/src/test/
H A Dnxt_mp_test.c13 size_t max_size) in nxt_mp_test()
16 size_t total; in nxt_mp_test()
22 const size_t min_chunk_size = 16; in nxt_mp_test()
23 const size_t page_size = 128; in nxt_mp_test()
24 const size_t page_alignment = 128; in nxt_mp_test()
25 const size_t cluster_size = page_size * 8; in nxt_mp_test()
H A Dnxt_malloc_test.c15 size_t size;
16 size_t alignment;
22 nxt_malloc_run_test(nxt_thread_t *thr, nxt_malloc_size_t *last, size_t size, in nxt_malloc_run_test()
25 size_t a, s, alignment; in nxt_malloc_run_test()
30 alignment = (size_t) -1; in nxt_malloc_run_test()
87 size_t size; in nxt_malloc_test()

1234567