Home
last modified time | relevance | path

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

1234567

/unit/src/
H A Dnxt_http_route_addr.c35 addr.start++; in nxt_http_route_addr_pattern_parse()
60 if (addr.start[0] == '*' && addr.start[1] == ':') { in nxt_http_route_addr_pattern_parse()
61 port.start = addr.start + 2; in nxt_http_route_addr_pattern_parse()
84 port.start = nxt_rmemstrn(addr.start, end, "]:", 2); in nxt_http_route_addr_pattern_parse()
89 addr.length = port.start - addr.start; in nxt_http_route_addr_pattern_parse()
103 ret = nxt_inet6_addr(&inet6->start, addr.start, len); in nxt_http_route_addr_pattern_parse()
192 ret = nxt_inet6_addr(&inet6->start, addr.start, addr.length); in nxt_http_route_addr_pattern_parse()
207 port.length = addr.start + addr.length - port.start; in nxt_http_route_addr_pattern_parse()
215 inet->start = nxt_inet_addr(addr.start, delim - addr.start); in nxt_http_route_addr_pattern_parse()
266 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_http_variables.c206 - str->start; in nxt_http_var_time_local()
256 p = start; in nxt_http_var_request_line()
275 str->start = start; in nxt_http_var_request_line()
276 str->length = p - start; in nxt_http_var_request_line()
298 str->length = nxt_sprintf(str->start, str->start + NXT_OFF_T_LEN, "%O", in nxt_http_var_body_bytes_sent()
317 str->length = nxt_sprintf(str->start, str->start + 3, "%03d", r->status) in nxt_http_var_status()
318 - str->start; in nxt_http_var_status()
384 start = args->elts; in nxt_http_var_arg()
385 nv = start + args->nelts - 1; in nxt_http_var_arg()
387 while (nv >= start) { in nxt_http_var_arg()
[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_http_request.c122 h = host->start; in nxt_http_validate_host()
426 for (p = start + len - 1; p > start; p--, len--) { in nxt_http_request_forward_client_ip()
474 addr.start = start; in nxt_http_request_client_ip_sockaddr()
880 start = r->args->start; in nxt_http_arguments_parse()
973 name = start; in nxt_http_argument()
980 nv->value = start; in nxt_http_argument()
1039 while (start[0] == ' ') { start++; } in nxt_http_cookie_parse()
1098 nv->value = start; in nxt_http_cookie()
1121 p = str.start; in nxt_http_field_hash()
1139 start = name->start; in nxt_http_field_hash()
[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_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.c793 rule->u.name.start = name->start; in nxt_http_route_rule_name_create()
1017 tmp.start = test.start; in nxt_http_route_pattern_create()
1077 tmp.start = test.start; in nxt_http_route_pattern_create()
1133 start = str->start; in nxt_http_route_decode_str()
1135 end = nxt_decode_uri(start, start, str->length); in nxt_http_route_decode_str()
1144 start = str->start; in nxt_http_route_decode_str()
1185 nxt_memcpy_upcase(start, test->start, test->length); in nxt_http_route_pattern_slice()
1193 nxt_memcpy(start, test->start, test->length); in nxt_http_route_pattern_slice()
1203 slice->start = start; in nxt_http_route_pattern_slice()
1427 segments->start = rest.start; in nxt_http_pass_segments()
[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()
457 parse.start = path->start; in nxt_conf_get_path()
512 start = parse->start + 1; in nxt_conf_path_next_token()
514 p = start; in nxt_conf_path_next_token()
820 parse.start = path->start; in nxt_conf_op_compile()
1503 p = start; in nxt_conf_json_parse_object()
1834 start++; in nxt_conf_json_parse_string()
[all …]
H A Dnxt_sockaddr.c236 sa->start = offset; in nxt_sockaddr_text()
240 end = start + sa->length; in nxt_sockaddr_text()
264 p = start; in nxt_sockaddr_text()
309 sa->length = p - start; in nxt_sockaddr_text()
321 sa->length = p - start; in nxt_sockaddr_text()
593 path = addr->start + 5; in nxt_sockaddr_unix_parse()
652 if (addr->start[0] == '[') { in nxt_sockaddr_inet6_parse()
654 start = addr->start + 1; in nxt_sockaddr_inet6_parse()
665 start = addr->start; in nxt_sockaddr_inet6_parse()
695 ret = nxt_inet6_addr(&sa->u.sockaddr_in6.sin6_addr, start, end - start); in nxt_sockaddr_inet6_parse()
[all …]
H A Dnxt_var.c132 p = name->start; in nxt_var_decl_get()
145 str.start = name->start; in nxt_var_decl_get()
151 str.start = p; in nxt_var_decl_get()
351 p = str->start; in nxt_var_compile()
386 p = str->start; in nxt_var_compile()
419 p = str->start; in nxt_var_test()
457 end = start + length; in nxt_var_next_part()
461 if (p == start) { in nxt_var_next_part()
483 start = p; in nxt_var_next_part()
522 part->start = start; in nxt_var_next_part()
[all …]
H A Dnxt_string.h99 NXT_EXPORT size_t nxt_str_strip(const 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_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_http_route_addr.h34 in_addr_t start; member
41 struct in6_addr start; member
53 uint16_t start; member
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()
/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(
24 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)

1234567