Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 157) sorted by relevance

1234567

/unit/src/
H A Dnxt_http_route_addr.c35 addr.start++; in nxt_http_route_addr_pattern_parse()
50 if (addr.start[0] == '*' && addr.start[1] == ':') { in nxt_http_route_addr_pattern_parse()
51 port.start = addr.start + 2; in nxt_http_route_addr_pattern_parse()
74 port.start = nxt_rmemstrn(addr.start, end, "]:", 2); in nxt_http_route_addr_pattern_parse()
79 addr.length = port.start - addr.start; in nxt_http_route_addr_pattern_parse()
93 ret = nxt_inet6_addr(&inet6->start, addr.start, len); in nxt_http_route_addr_pattern_parse()
182 ret = nxt_inet6_addr(&inet6->start, addr.start, addr.length); in nxt_http_route_addr_pattern_parse()
197 port.length = addr.start + addr.length - port.start; in nxt_http_route_addr_pattern_parse()
205 inet->start = nxt_inet_addr(addr.start, delim - addr.start); in nxt_http_route_addr_pattern_parse()
256 inet->start = nxt_inet_addr(addr.start, addr.length); in nxt_http_route_addr_pattern_parse()
[all …]
H A Dnxt_vector.c36 if (nxt_fast_path(vector->start != NULL)) { in nxt_vector_init()
43 return vector->start; in nxt_vector_init()
54 proto->free(pool, vector->start); in nxt_vector_destroy()
56 vector->start = NULL; in nxt_vector_destroy()
63 proto->free(pool, vector->start); in nxt_vector_destroy()
77 void *item, *start, *old; in nxt_vector_add() local
96 start = proto->alloc(pool, size); in nxt_vector_add()
97 if (nxt_slow_path(start == NULL)) { in nxt_vector_add()
102 old = vector->start; in nxt_vector_add()
103 vector->start = start; in nxt_vector_add()
[all …]
H A Dnxt_utf8.c73 nxt_utf8_decode(const u_char **start, const u_char *end) in nxt_utf8_decode() argument
77 u = (uint32_t) **start; in nxt_utf8_decode()
80 (*start)++; in nxt_utf8_decode()
84 return nxt_utf8_decode2(start, end); in nxt_utf8_decode()
95 nxt_utf8_decode2(const u_char **start, const u_char *end) in nxt_utf8_decode2() argument
102 p = *start; in nxt_utf8_decode2()
162 *start = p; in nxt_utf8_decode2()
210 nxt_utf8_lowcase(const u_char **start, const u_char *end) in nxt_utf8_lowcase() argument
215 u = (uint32_t) **start; in nxt_utf8_lowcase()
218 (*start)++; in nxt_utf8_lowcase()
[all …]
H A Dnxt_buf.c23 b->mem.start = start; in nxt_buf_mem_init()
24 b->mem.pos = start; in nxt_buf_mem_init()
25 b->mem.free = start; in nxt_buf_mem_init()
47 b->mem.pos = b->mem.start; in nxt_buf_mem_alloc()
48 b->mem.free = b->mem.start; in nxt_buf_mem_alloc()
49 b->mem.end = b->mem.start + size; in nxt_buf_mem_alloc()
78 b->mem.pos = b->mem.start; in nxt_buf_mem_ts_alloc()
79 b->mem.free = b->mem.start; in nxt_buf_mem_ts_alloc()
80 b->mem.end = b->mem.start + size; in nxt_buf_mem_ts_alloc()
113 b->mem.pos = b->mem.start; in nxt_buf_file_alloc()
[all …]
H A Dnxt_conf.c168 str->start = value->u.str.start; in nxt_conf_get_string()
172 str->start = value->u.string.start; in nxt_conf_get_string()
183 value->u.string.start = str->start; in nxt_conf_set_string()
209 value->u.string.start = tmp.start; in nxt_conf_set_string_dup()
443 parse.start = path->start; in nxt_conf_get_path()
498 start = parse->start + 1; in nxt_conf_path_next_token()
500 p = start; in nxt_conf_path_next_token()
806 parse.start = path->start; in nxt_conf_op_compile()
1489 p = start; in nxt_conf_json_parse_object()
1820 start++; in nxt_conf_json_parse_string()
[all …]
H A Dnxt_http_request.c118 h = host->start; in nxt_http_validate_host()
365 start = f->value; in nxt_http_request_client_ip()
369 for (p = start + len - 1; p > start; p--, len--) { in nxt_http_request_client_ip()
421 addr.start = start; in nxt_http_request_client_ip_sockaddr()
802 start = r->args->start; in nxt_http_arguments_parse()
891 length = end - start; in nxt_http_argument()
895 name = start; in nxt_http_argument()
902 nv->value = start; in nxt_http_argument()
961 while (start[0] == ' ') { start++; } in nxt_http_cookie_parse()
969 start = p + 1; in nxt_http_cookie_parse()
[all …]
H A Dnxt_php_sapi.c601 target->script_name.start = target->script_filename.start in nxt_php_set_target()
633 u_char *p, *start; in nxt_php_set_ini_path() local
641 start = p; in nxt_php_set_ini_path()
651 start = p; in nxt_php_set_ini_path()
832 start = p; in nxt_php_disable()
843 if (disable(start, p - start) in nxt_php_disable()
845 if (disable(start, p - start TSRMLS_CC) in nxt_php_disable()
887 nxt_memcpy(dir->start, file->start, length); in nxt_php_dirname()
911 str->start++; in nxt_php_str_trim_lead()
968 ctx->path_info.start = (u_char *) strstr((char *) path.start, ".php/"); in nxt_php_dynamic_request()
[all …]
H A Dnxt_http_route.c814 start = name->start; in nxt_http_route_rule_name_create()
1079 tmp.start = test.start; in nxt_http_route_pattern_create()
1139 tmp.start = test.start; in nxt_http_route_pattern_create()
1195 start = str->start; in nxt_http_route_decode_str()
1197 end = nxt_decode_uri(start, start, str->length); in nxt_http_route_decode_str()
1206 start = str->start; in nxt_http_route_decode_str()
1248 nxt_memcpy_upcase(start, test->start, test->length); in nxt_http_route_pattern_slice()
1256 nxt_memcpy(start, test->start, test->length); in nxt_http_route_pattern_slice()
1266 slice->start = start; in nxt_http_route_pattern_slice()
1490 segments->start = rest.start; in nxt_http_pass_segments()
[all …]
H A Dnxt_string.h99 NXT_EXPORT size_t nxt_str_strip(u_char *start, u_char *end);
104 u_char *start; member
116 (str)->start = (u_char *) text; \
123 (str)->start = NULL; \
135 && (nxt_memcmp((s1)->start, (s2)->start, (s1)->length) == 0))
140 && (nxt_memcasecmp((s1)->start, (s2)->start, (s1)->length) == 0))
144 (((s)->length == _length) && (nxt_memcmp((s)->start, p, _length) == 0))
148 (((s)->length >= _length) && (nxt_memcmp((s)->start, p, _length) == 0))
152 (((s)->length == 1) && ((s)->start[0] == c))
156 (((s)->length != 0) && ((s)->start[0] == c))
H A Dnxt_sockaddr.c240 sa->start = offset; in nxt_sockaddr_text()
244 end = start + sa->length; in nxt_sockaddr_text()
268 p = start; in nxt_sockaddr_text()
313 sa->length = p - start; in nxt_sockaddr_text()
325 sa->length = p - start; in nxt_sockaddr_text()
673 path = addr->start + 5; in nxt_sockaddr_unix_parse()
733 start = addr->start + 1; in nxt_sockaddr_inet6_parse()
744 start = addr->start; in nxt_sockaddr_inet6_parse()
774 ret = nxt_inet6_addr(&sa->u.sockaddr_in6.sin6_addr, start, end - start); in nxt_sockaddr_inet6_parse()
863 p = jbs->addr.start; in nxt_job_sockaddr_parse()
[all …]
H A Dnxt_var.c151 lhq.key.start = (u_char *) &index; in nxt_var_cache_find()
246 p = str->start; in nxt_var_compile()
281 p = str->start; in nxt_var_compile()
314 p = str->start; in nxt_var_test()
352 end = start + length; in nxt_var_next_part()
356 if (p == start) { in nxt_var_next_part()
378 start = p; in nxt_var_next_part()
404 length = p - start; in nxt_var_next_part()
411 length = p - start; in nxt_var_next_part()
417 part->start = start; in nxt_var_next_part()
[all …]
H A Dnxt_parse.c228 p = s->start; in nxt_str_int_parse()
254 s->start = p; in nxt_str_int_parse()
266 nxt_number_parse(const u_char **start, const u_char *end) in nxt_number_parse() argument
276 p = *start; in nxt_number_parse()
305 if (nxt_fast_path(p != *start)) { in nxt_number_parse()
306 *start = p; in nxt_number_parse()
315 if (nxt_slow_path(p == *start)) { in nxt_number_parse()
345 *start = p; in nxt_number_parse()
H A Dnxt_mem_zone.c60 uint32_t start; member
83 u_char *start; member
176 zone = (nxt_mem_zone_t *) start; in nxt_mem_zone_init()
244 zone_size = end - start; in nxt_mem_zone_pages()
254 nxt_memzero(start, reserved); in nxt_mem_zone_pages()
256 zone = (nxt_mem_zone_t *) start; in nxt_mem_zone_pages()
258 zone->start = nxt_align_ptr(start + reserved, page_size); in nxt_mem_zone_pages()
345 if (slot->start < slot->map_size) { in nxt_mem_zone_slot_init()
358 slot->start = slot->size; in nxt_mem_zone_slot_init()
572 return p + slot->start; in nxt_mem_zone_alloc_small()
[all …]
H A Dnxt_fs.c239 char *start, *end, *dst; in nxt_fs_mkdir_all() local
248 start = end = (char *) dir; in nxt_fs_mkdir_all()
250 while (*start != '\0') { in nxt_fs_mkdir_all()
251 if (*start == '/') { in nxt_fs_mkdir_all()
252 *dst++ = *start++; in nxt_fs_mkdir_all()
255 end = strchr(start, '/'); in nxt_fs_mkdir_all()
260 dst = nxt_cpymem(dst, start, end - start); in nxt_fs_mkdir_all()
269 start = end; in nxt_fs_mkdir_all()
H A Dnxt_http_route_addr.h33 in_addr_t start; member
40 struct in6_addr start; member
52 uint16_t start; member
/unit/pkg/deb/debian/
H A Dunit.init30 start)
32 if start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
44 if start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/$NAME.pid \
58 start-stop-daemon --stop --quiet --pidfile \
61 if start-stop-daemon --start --quiet --pidfile \
/unit/src/test/
H A Dnxt_rbtree_test.c29 nxt_nsec_t start, end; in nxt_rbtree_test() local
65 start = nxt_thread_monotonic_time(thr); in nxt_rbtree_test()
127 (end - start) / 1000000000.0); in nxt_rbtree_test()
206 uint64_t start, end; in nxt_rbtree_mb_start() local
231 start = nxt_rdtsc(); in nxt_rbtree_mb_start()
245 uint64_t start, end; in nxt_rbtree_mb_insert() local
251 start = nxt_rdtsc(); in nxt_rbtree_mb_insert()
256 "rbtree mb insert: %L cycles", end - start); in nxt_rbtree_mb_insert()
263 uint64_t start, end; in nxt_rbtree_mb_delete() local
269 start = nxt_rdtsc(); in nxt_rbtree_mb_delete()
[all …]
H A Dnxt_gmtime_test.c30 nxt_nsec_t start, end; in nxt_gmtime_test() local
56 start = nxt_thread_monotonic_time(thr); in nxt_gmtime_test()
66 (end - start) / 10000000.0); in nxt_gmtime_test()
70 start = nxt_thread_monotonic_time(thr); in nxt_gmtime_test()
80 (end - start) / 10000000.0); in nxt_gmtime_test()
H A Dnxt_rbtree1_test.c60 nxt_nsec_t start, end; in nxt_rbtree1_test() local
93 start = nxt_thread_monotonic_time(thr); in nxt_rbtree1_test()
144 (end - start) / 1000000000.0); in nxt_rbtree1_test()
268 uint64_t start, end; in nxt_rbtree1_mb_start() local
293 start = nxt_rdtsc(); in nxt_rbtree1_mb_start()
307 uint64_t start, end; in nxt_rbtree1_mb_insert() local
313 start = nxt_rdtsc(); in nxt_rbtree1_mb_insert()
318 "rbtree1 mb insert: %L cycles", end - start); in nxt_rbtree1_mb_insert()
325 uint64_t start, end; in nxt_rbtree1_mb_delete() local
331 start = nxt_rdtsc(); in nxt_rbtree1_mb_delete()
[all …]
H A Dnxt_mem_zone_test.c15 void *start, **blocks; in nxt_mem_zone_test() local
28 start = nxt_memalign(page_size, zone_size); in nxt_mem_zone_test()
29 if (start == NULL) { in nxt_mem_zone_test()
33 zone = nxt_mem_zone_init(start, zone_size, page_size); in nxt_mem_zone_test()
H A Dnxt_http_parse_test.c637 buf.start = request->start; in nxt_http_parse_test_run()
638 buf.end = request->start + request->length; in nxt_http_parse_test_run()
640 buf.pos = buf.start; in nxt_http_parse_test_run()
657 nxt_nsec_t start, end; in nxt_http_parse_test_bench() local
666 buf.start = request->start; in nxt_http_parse_test_bench()
670 start = nxt_thread_monotonic_time(thr); in nxt_http_parse_test_bench()
684 buf.pos = buf.start; in nxt_http_parse_test_bench()
723 if (rp->method.start != test->method.start in nxt_http_parse_test_request_line()
734 str.start = rp->target_start; in nxt_http_parse_test_request_line()
736 if (str.start != test->target.start in nxt_http_parse_test_request_line()
[all …]
/unit/docs/
H A Dchange_log_conf.dtd3 <!ELEMENT generic (length, start, indent?) >
4 <!ELEMENT rpm (length, start, indent?) >
5 <!ELEMENT deb (length, start, indent?) >
8 <!ELEMENT start (#PCDATA) > element
/unit/test/python/ctx_iter_atexit/
H A Dwsgi.py7 self.start = start_response
15 self.start(
25 self.start('200', [('Content-Length', '0')])
/unit/test/
H A Dtest_settings.py20 start=True,
56 start=True,
66 start=True,
77 start=True,
110 start=True,
144 start=True,
152 b"""012""", start=True, sock=sock, read_timeout=1, raw=True
158 b"""345""", start=True, sock=sock, read_timeout=1, raw=True
228 start=True,
248 _, sock = self.http(b'', start=True, raw=True, no_recv=True)
/unit/test/python/not_iterable/
H A Dwsgi.py4 self.start = start_response
7 self.start('200', [(('Content-Length', '0'))])

1234567