/unit/src/ |
H A D | nxt_process_title.c | 67 end = argv[0]; in nxt_process_arguments() 74 if (argv[i] == end) { in nxt_process_arguments() 104 argv_end = end; in nxt_process_arguments() 111 if (env[i] == end) { in nxt_process_arguments() 124 if (argv_end == end) { in nxt_process_arguments() 133 end = argv[0]; in nxt_process_arguments() 137 if (argv[i] != end) { in nxt_process_arguments() 145 end = argv[i] + size; in nxt_process_arguments() 167 if (env[i] != end) { in nxt_process_arguments() 175 end = env[i] + size; in nxt_process_arguments() [all …]
|
H A D | nxt_sprintf.c | 79 u_char *end; member 121 spf.end = end; in nxt_vsprintf() 577 u_char *p, *end; in nxt_integer() local 665 end = nxt_min(end, spf->end); in nxt_integer() 675 end = buf + length; in nxt_integer() 676 end = nxt_min(end, spf->end); in nxt_integer() 678 while (buf < end) { in nxt_integer() 689 u_char *p, *end; in nxt_number() local 705 end = nxt_min(end, spf->end); in nxt_number() 716 end = buf + length; in nxt_number() [all …]
|
H A D | nxt_string.c | 251 while (s < end) { in nxt_memstrn() 287 while (s < end) { in nxt_memcasestrn() 319 s1 = end - length; in nxt_rmemstrn() 522 u_char *end, ch; in nxt_decode_uri() local 527 end = src + length; in nxt_decode_uri() 529 while (src < end) { in nxt_decode_uri() 557 u_char *end, ch; in nxt_decode_uri_plus() local 598 u_char *end; in nxt_encode_uri() local 713 for (end = src + length; src < end; src++) { in nxt_is_complex_uri_encoded() 753 u_char *end, *p; in nxt_base64_decode() local [all …]
|
H A D | nxt_utf8.c | 73 nxt_utf8_decode(const u_char **start, const u_char *end) in nxt_utf8_decode() argument 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 142 if (nxt_fast_path(p + n <= end)) { in nxt_utf8_decode2() 223 u = nxt_utf8_decode2(start, end); in nxt_utf8_lowcase() 241 const u_char *end; in nxt_utf8_length() local 245 end = p + len; in nxt_utf8_length() 247 while (p < end) { in nxt_utf8_length() 262 const u_char *end; in nxt_utf8_is_valid() local 264 end = p + len; in nxt_utf8_is_valid() [all …]
|
H A D | nxt_http_route_addr.c | 71 u_char *end; in nxt_http_route_addr_pattern_parse() local 82 end = addr.start + addr.length; in nxt_http_route_addr_pattern_parse() 91 port.length = end - port.start; in nxt_http_route_addr_pattern_parse() 180 inet6->end.s6_addr[i] = 0; in nxt_http_route_addr_pattern_parse() 220 inet->end = nxt_inet_addr(delim + 1, in nxt_http_route_addr_pattern_parse() 281 base->port.end = 65535; in nxt_http_route_addr_pattern_parse() 300 base->port.end = ret; in nxt_http_route_addr_pattern_parse() 309 base->port.end = ret; in nxt_http_route_addr_pattern_parse() 321 u_char *end; in nxt_valid_ipv6_blocks() local 324 end = c + len; in nxt_valid_ipv6_blocks() [all …]
|
H A D | nxt_log.c | 69 u_char *p, *end; in nxt_log_handler() local 77 end = msg + NXT_MAX_ERROR_STR; in nxt_log_handler() 80 p = nxt_cpystrn(p, nxt_log_prefix, end - p); in nxt_log_handler() 89 p = nxt_sprintf(p, end, (log->ident != 0) ? "[%V] *%D " : "[%V] ", in nxt_log_handler() 93 p = nxt_vsprintf(p, end, fmt, args); in nxt_log_handler() 97 p = log->ctx_handler(log->ctx, p, end); in nxt_log_handler() 100 if (p > end - nxt_length("\n")) { in nxt_log_handler() 101 p = end - nxt_length("\n"); in nxt_log_handler()
|
H A D | nxt_fs_mount.c | 84 u_char *data, *p, *end; in nxt_fs_mount() local 161 end = data - 1; in nxt_fs_mount() 164 p = end + 1; in nxt_fs_mount() 165 end = nxt_strchr(p, '='); in nxt_fs_mount() 166 if (end == NULL) { in nxt_fs_mount() 170 *end = '\0'; in nxt_fs_mount() 173 iov[iovlen].iov_len = (end - p) + 1; in nxt_fs_mount() 177 p = end + 1; in nxt_fs_mount() 179 end = nxt_strchr(p, ','); in nxt_fs_mount() 180 if (end != NULL) { in nxt_fs_mount() [all …]
|
H A D | nxt_fs.c | 14 char *start, *end, *dst; in nxt_fs_mkdir_all() local 30 end = strchr(start, '/'); in nxt_fs_mkdir_all() 31 if (end == NULL) { in nxt_fs_mkdir_all() 32 end = ((char *)dir + dirlen); in nxt_fs_mkdir_all() 35 dst = nxt_cpymem(dst, start, end - start); in nxt_fs_mkdir_all() 44 start = end; in nxt_fs_mkdir_all()
|
H A D | nxt_app_log.c | 22 u_char *p, *end; in nxt_log_time_handler() local 33 end = msg + NXT_MAX_ERROR_STR; in nxt_log_time_handler() 60 p = nxt_sprintf(p, end, id, &nxt_log_levels[level], nxt_pid, in nxt_log_time_handler() 63 p = nxt_sprintf(p, end, "[%V] %PI#%PT ", &nxt_log_levels[level], nxt_pid, in nxt_log_time_handler() 68 p = nxt_sprintf(p, end, "*%D ", log->ident); in nxt_log_time_handler() 72 p = nxt_vsprintf(p, end, fmt, args); in nxt_log_time_handler() 76 p = log->ctx_handler(log->ctx, p, end); in nxt_log_time_handler() 79 if (p > end - nxt_length("\n")) { in nxt_log_time_handler() 80 p = end - nxt_length("\n"); in nxt_log_time_handler()
|
H A D | nxt_utf8.h | 20 NXT_EXPORT uint32_t nxt_utf8_decode(const u_char **start, const u_char *end); 21 NXT_EXPORT uint32_t nxt_utf8_decode2(const u_char **start, const u_char *end); 24 NXT_EXPORT uint32_t nxt_utf8_lowcase(const u_char **start, const u_char *end); 32 nxt_utf8_next(const u_char *p, const u_char *end) in nxt_utf8_next() argument 53 } while (p < end); in nxt_utf8_next()
|
H A D | nxt_http_parse.c | 11 u_char **pos, const u_char *end); 13 u_char **pos, const u_char *end); 99 while (p != end) { in nxt_http_parse_target() 159 const u_char *end) in nxt_http_parse_request_line() argument 200 while (p != end) { in nxt_http_parse_request_line() 352 if (p == end) { in nxt_http_parse_request_line() 482 const u_char *end) in nxt_http_parse_unusual_target() argument 520 const u_char *end) in nxt_http_parse_field_name() argument 627 const u_char *end) in nxt_http_parse_field_value() argument 752 switch (end - p) { in nxt_http_lookup_field_end() [all …]
|
H A D | nxt_time_parse.c | 23 const u_char *end; in nxt_time_parse() local 36 end = p + len; in nxt_time_parse() 38 while (p < end) { in nxt_time_parse() 51 while (p < end) { in nxt_time_parse() 59 if (nxt_slow_path(p + 18 > end)) { in nxt_time_parse() 74 if (nxt_slow_path(p + 18 > end)) { in nxt_time_parse() 185 if (nxt_slow_path(p + 14 > end)) { in nxt_time_parse() 315 const u_char *end; in nxt_term_parse() local 342 end = p + len; in nxt_term_parse() 344 while (p < end) { in nxt_term_parse() [all …]
|
H A D | nxt_sockaddr.c | 232 u_char *p, *start, *end, *octet; in nxt_sockaddr_text() local 240 end = start + sa->length; in nxt_sockaddr_text() 444 if (buf + max_inet6_length > end) { in nxt_inet6_ntop() 647 u_char *p, *start, *end; in nxt_sockaddr_inet6_parse() local 661 p = end + 1; in nxt_sockaddr_inet6_parse() 776 u_char c, *end; in nxt_inet_addr() local 788 end = buf + length; in nxt_inet_addr() 790 while (buf < end) { in nxt_inet_addr() 833 end = buf + length; in nxt_inet6_addr() 846 while (buf < end) { in nxt_inet6_addr() [all …]
|
H A D | nxt_clone.c | 28 u_char *p, *end; in nxt_clone_credential_setgroups() local 31 end = path + PATH_MAX; in nxt_clone_credential_setgroups() 35 if (nxt_slow_path(p == end)) { in nxt_clone_credential_setgroups() 74 u_char *p, *end; in nxt_clone_credential_map_write() local 78 end = buf + sizeof(buf); in nxt_clone_credential_map_write() 81 if (nxt_slow_path(p == end)) { in nxt_clone_credential_map_write() 124 u_char *p, *end, *mapinfo; in nxt_clone_credential_map_set() local 143 end = mapinfo + len; in nxt_clone_credential_map_set() 149 if (nxt_slow_path(p == end)) { in nxt_clone_credential_map_set() 169 end = mapinfo + len; in nxt_clone_credential_map_set() [all …]
|
H A D | nxt_conf.c | 97 u_char *end; member 348 end = nxt_sprintf(p, end, "%L", value); in nxt_conf_set_member_integer() 349 *end = '\0'; in nxt_conf_set_member_integer() 520 u_char *p, *start, *end; in nxt_conf_path_next_token() local 1266 if (nxt_slow_path(p == end)) { in nxt_conf_json_parse() 1285 if (nxt_slow_path(p != end)) { in nxt_conf_json_parse() 1451 if (p == end) { in nxt_conf_json_parse_value() 1452 return end; in nxt_conf_json_parse_value() 2193 end = NULL; in nxt_conf_json_parse_number() 2208 if (nxt_slow_path(end == NULL || *end != '\0')) { in nxt_conf_json_parse_number() [all …]
|
H A D | nxt_http_route_addr.h | 35 in_addr_t end; member 42 struct in6_addr end; member 54 uint16_t end; member
|
H A D | nxt_recvbuf.c | 26 size = b->mem.end - b->mem.free; in nxt_recvbuf_mem_coalesce() 45 last = b->mem.end; in nxt_recvbuf_mem_coalesce() 69 size = b->mem.end - b->mem.free; in nxt_recvbuf_update() 76 b->mem.free = b->mem.end; in nxt_recvbuf_update()
|
H A D | nxt_var.c | 334 end = p + str->length; in nxt_var_compile() 336 while (p < end) { in nxt_var_compile() 365 while (p < end) { in nxt_var_compile() 391 u_char *p, *end, *next; in nxt_var_test() local 396 end = p + str->length; in nxt_var_test() 398 while (p < end) { in nxt_var_test() 433 p = memchr(start, '$', end - start); in nxt_var_next_part() 438 if (p == end) { in nxt_var_next_part() 445 if (end - p < 2) { in nxt_var_next_part() 458 while (p < end) { in nxt_var_next_part() [all …]
|
/unit/src/test/ |
H A D | nxt_sprintf_test.c | 30 nxt_sprintf_test_double(u_char *buf, u_char *end, const char *fmt, in nxt_sprintf_test_double() argument 35 p = nxt_sprintf(buf, end, fmt, n); in nxt_sprintf_test_double() 47 u_char *end, buf[64]; in nxt_sprintf_test() local 51 end = buf + 64; in nxt_sprintf_test() 55 ret = nxt_sprintf_test_double(buf, end, double_test[i].format, in nxt_sprintf_test()
|
H A D | nxt_rbtree_test.c | 29 nxt_nsec_t start, end; in nxt_rbtree_test() local 109 end = 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 233 end = nxt_rdtsc(); in nxt_rbtree_mb_start() 245 uint64_t start, end; in nxt_rbtree_mb_insert() local 253 end = 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 271 end = nxt_rdtsc(); in nxt_rbtree_mb_delete() [all …]
|
H A D | nxt_gmtime_test.c | 30 nxt_nsec_t start, end; in nxt_gmtime_test() local 63 end = nxt_thread_monotonic_time(thr); in nxt_gmtime_test() 66 (end - start) / 10000000.0); in nxt_gmtime_test() 77 end = nxt_thread_monotonic_time(thr); in nxt_gmtime_test() 80 (end - start) / 10000000.0); in nxt_gmtime_test()
|
H A D | nxt_rbtree1_test.c | 60 nxt_nsec_t start, end; in nxt_rbtree1_test() local 133 end = 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 295 end = nxt_rdtsc(); in nxt_rbtree1_mb_start() 307 uint64_t start, end; in nxt_rbtree1_mb_insert() local 315 end = 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 333 end = nxt_rdtsc(); in nxt_rbtree1_mb_delete() [all …]
|
/unit/test/ruby/errors_write_to_s_custom/ |
H A D | config.ru | 6 end 7 end 13 end
|
/unit/test/node/double_end/ |
H A D | app.js | 3 res.end().end();
|
/unit/test/ruby/at_exit/ |
H A D | config.ru | 4 end 6 end
|