Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 146) sorted by last modified time

123456

/unit/src/
H A Dnxt_unit.c1918 for (p = name; p < end; p++) { in nxt_unit_field_hash()
3204 p = dst; in nxt_unit_buf_read()
3216 p = nxt_cpymem(p, buf->free, copy); in nxt_unit_buf_read()
6587 p = nxt_unit_snprint_prefix(p, end, pid, level); in nxt_unit_log()
6590 p += vsnprintf(p, end - p, fmt, ap); in nxt_unit_log()
6631 p = nxt_unit_snprint_prefix(p, end, pid, level); in nxt_unit_req_log()
6636 p += snprintf(p, end - p, "#%"PRIu32": ", req_impl->stream); in nxt_unit_req_log()
6640 p += vsnprintf(p, end - p, fmt, ap); in nxt_unit_req_log()
6682 p += snprintf(p, end - p, in nxt_unit_snprint_prefix()
6688 p += snprintf(p, end - p, in nxt_unit_snprint_prefix()
[all …]
H A Dnxt_time_parse.c39 c = *p++; in nxt_time_parse()
56 p++; in nxt_time_parse()
71 p += 2; in nxt_time_parse()
88 p++; in nxt_time_parse()
94 month = p[1] == 'a' ? 0 : p[2] == 'n' ? 5 : 6; in nxt_time_parse()
129 p += 3; in nxt_time_parse()
143 p += 4; in nxt_time_parse()
156 p += 2; in nxt_time_parse()
201 p += 2; in nxt_time_parse()
211 p += 2; in nxt_time_parse()
[all …]
H A Dnxt_sockaddr.c302 p = nxt_sprintf(start, end, "unix:%s", p); in nxt_sockaddr_text()
307 p = nxt_sprintf(start, end, "unix:%s", p); in nxt_sockaddr_text()
323 p = nxt_sprintf(p, end, ":%d", ntohs(port)); in nxt_sockaddr_text()
448 p[0], p[1], p[2], p[3], in nxt_sockaddr_ntop()
452 p[0], p[1], p[2], p[3]); in nxt_sockaddr_ntop()
469 p = nxt_sprintf(p, end, "]:%d", in nxt_sockaddr_ntop()
493 p = nxt_sprintf(buf, end, "unix:%s", p); in nxt_sockaddr_ntop()
559 p = buf; in nxt_inet6_ntop()
593 p = nxt_sprintf(p, end, "%ud.%ud.%ud.%ud", in nxt_inet6_ntop()
827 p++; in nxt_sockaddr_inet_parse()
[all …]
H A Dnxt_string.c36 u_char *p; in nxt_str_dup() local
45 p = (u_char *) dst; in nxt_str_dup()
47 dst->start = p; in nxt_str_dup()
73 char *p, *dst; in nxt_str_cstrz() local
79 *p = '\0'; in nxt_str_cstrz()
343 u_char *p; in nxt_str_strip() local
345 for (p = end - 1; p >= start; p--) { in nxt_str_strip()
346 if (*p != '\r' && *p != '\n') { in nxt_str_strip()
753 u_char *end, *p; in nxt_base64_decode() local
816 p = dst; in nxt_base64_decode()
[all …]
H A Dnxt_string.h143 #define nxt_str_eq(s, p, _length) \ argument
144 (((s)->length == _length) && (nxt_memcmp((s)->start, p, _length) == 0))
147 #define nxt_str_start(s, p, _length) \ argument
148 (((s)->length >= _length) && (nxt_memcmp((s)->start, p, _length) == 0))
H A Dnxt_port_memory_int.h103 nxt_port_mmap_chunk_id(nxt_port_mmap_header_t *hdr, const u_char *p) in nxt_port_mmap_chunk_id() argument
109 return ((p - mm_start) - PORT_MMAP_HEADER_SIZE) / PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_chunk_id()
H A Dnxt_port_socket.c1061 nxt_port_lvlhsh_frag_free(void *ctx, void *p) in nxt_port_lvlhsh_frag_free() argument
1063 nxt_mp_free(ctx, p); in nxt_port_lvlhsh_frag_free()
H A Dnxt_http_static.c336 p = fname; in nxt_http_static_send_ready()
337 p = nxt_cpymem(p, shr->start, shr->length); in nxt_http_static_send_ready()
338 p = nxt_cpymem(p, index->start, index->length); in nxt_http_static_send_ready()
339 *p = '\0'; in nxt_http_static_send_ready()
524 field->value_length = nxt_http_date(p, &tm) - p; in nxt_http_static_send_ready()
629 p = nxt_cpymem(p, r->path->start, r->path->length); in nxt_http_static_send_ready()
632 *p++ = '/'; in nxt_http_static_send_ready()
757 p = end; in nxt_http_static_extract_extension()
760 p--; in nxt_http_static_extract_extension()
761 ch = *p; in nxt_http_static_extract_extension()
[all …]
H A Dnxt_http_request.c424 for (p = start + len - 1; p > start; p--, len--) { in nxt_http_request_forward_client_ip()
425 if (*p != ' ' && *p != ',') { in nxt_http_request_forward_client_ip()
430 for (/* void */; p > start; p--) { in nxt_http_request_forward_client_ip()
431 if (*p == ' ' || *p == ',') { in nxt_http_request_forward_client_ip()
878 for (p = start, dst = dst_start; p < end; p++, dst++) { in nxt_http_arguments_parse()
879 *dst = *p; in nxt_http_arguments_parse()
1030 for (p = start; p < end; p++) { in nxt_http_cookie_parse()
1031 c = *p; in nxt_http_cookie_parse()
1086 for (p = name; p < name + name_length; p++) { in nxt_http_cookie()
1087 c = *p; in nxt_http_cookie()
[all …]
H A Dnxt_mp.c392 void *p; in nxt_mp_alloc() local
411 return p; in nxt_mp_alloc()
418 void *p; in nxt_mp_zalloc() local
426 return p; in nxt_mp_zalloc()
464 return p; in nxt_mp_align()
471 void *p; in nxt_mp_zalign() local
479 return p; in nxt_mp_zalign()
530 p = NULL; in nxt_mp_alloc_small()
590 return p; in nxt_mp_alloc_small()
640 return p; in nxt_mp_get_small()
[all …]
H A Dnxt_http_parse.c102 nxt_target_test_char(*p); p++; in nxt_http_parse_target()
203 nxt_method_test_char(*p); p++; in nxt_http_parse_request_line()
235 p++; in nxt_http_parse_request_line()
364 if (p[7] < '0' || p[7] > '9') { in nxt_http_parse_request_line()
374 if (p[5] < '0' || p[5] > '9') { in nxt_http_parse_request_line()
578 nxt_field_name_test_char(*p); p++; in nxt_http_parse_field_name()
655 p = nxt_http_lookup_field_end(p, end); in nxt_http_parse_field_value()
688 while (p[-1] == ' ' || p[-1] == '\t') { in nxt_http_parse_field_value()
754 nxt_field_end_test_char(*p); p++; in nxt_http_lookup_field_end()
757 nxt_field_end_test_char(*p); p++; in nxt_http_lookup_field_end()
[all …]
H A Dnxt_conf.h110 u_char *nxt_conf_json_print(u_char *p, nxt_conf_value_t *value,
H A Dnxt_conf.c148 ((p)[0] = '\r', (p)[1] = '\n', (p) + 2)
502 while (p < parse->end && *p != '/') { in nxt_conf_path_next_token()
1258 p = nxt_conf_json_skip_space(p, end); in nxt_conf_json_parse()
1288 for (p = start; nxt_fast_path(p != end); p++) { in nxt_conf_json_skip_space()
1825 for (p = start; nxt_fast_path(p != end); p++) { in nxt_conf_json_parse_string()
2081 for (p = s; nxt_fast_path(p != end); p++) { in nxt_conf_json_parse_number()
2131 for (p = s; nxt_fast_path(p != end); p++) { in nxt_conf_json_parse_number()
2360 p = nxt_conf_json_newline(p); in nxt_conf_json_print_array()
2382 p = nxt_conf_json_newline(p); in nxt_conf_json_print_array()
2456 p = nxt_conf_json_newline(p); in nxt_conf_json_print_object()
[all …]
H A Dnxt_router.c3802 p = nxt_cpymem(p, " - - [", 6); in nxt_router_access_log_writer()
3806 p = nxt_cpymem(p, "] \"", 3); in nxt_router_access_log_writer()
3825 p = nxt_cpymem(p, "\" ", 2); in nxt_router_access_log_writer()
3827 p = nxt_sprintf(p, p + 3, "%03d", r->status); in nxt_router_access_log_writer()
3833 p = nxt_sprintf(p, p + NXT_OFF_T_LEN, "%O", bytes); in nxt_router_access_log_writer()
3835 p = nxt_cpymem(p, " \"", 2); in nxt_router_access_log_writer()
3844 p = nxt_cpymem(p, "\" \"", 3); in nxt_router_access_log_writer()
3853 p = nxt_cpymem(p, "\"\n", 2); in nxt_router_access_log_writer()
5588 p = nxt_cpymem(p, nxt_sockaddr_address(r->remote), in nxt_router_prepare_msg()
5608 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_router_prepare_msg()
[all …]
H A Dnxt_http_route.c1048 p = end - 1; in nxt_http_route_pattern_create()
1051 c = *p--; in nxt_http_route_pattern_create()
1059 tmp.start = p; in nxt_http_route_pattern_create()
1063 end = p; in nxt_http_route_pattern_create()
1078 p = tmp.start; in nxt_http_route_pattern_create()
1081 c = *p++; in nxt_http_route_pattern_create()
1405 u_char *p; in nxt_http_pass_segments() local
1679 s = p; in nxt_http_route_rule()
1683 pp = p; in nxt_http_route_rule()
1713 base = &p->base; in nxt_http_route_addr_pattern_match()
[all …]
H A Dnxt_h1proto.c1332 *p++ = ':'; *p++ = ' '; in nxt_h1p_request_header_send()
1334 *p++ = '\r'; *p++ = '\n'; in nxt_h1p_request_header_send()
1347 *p++ = '\r'; *p++ = '\n'; in nxt_h1p_request_header_send()
1355 p = nxt_cpymem(p, chunked, nxt_length(chunked)); in nxt_h1p_request_header_send()
1359 *p++ = '\r'; *p++ = '\n'; in nxt_h1p_request_header_send()
2289 p = nxt_cpymem(p, " HTTP/1.1\r\n", 11); in nxt_h1p_peer_header_send()
2290 p = nxt_cpymem(p, "Connection: close\r\n", 19); in nxt_h1p_peer_header_send()
2296 *p++ = ':'; *p++ = ' '; in nxt_h1p_peer_header_send()
2298 *p++ = '\r'; *p++ = '\n'; in nxt_h1p_peer_header_send()
2303 *p++ = '\r'; *p++ = '\n'; in nxt_h1p_peer_header_send()
[all …]
H A Dnxt_conf_validation.c1231 u_char *p; in nxt_conf_vldt_type() local
1253 p = buf; in nxt_conf_vldt_type()
1258 p = nxt_cpymem(p, "either ", 7); in nxt_conf_vldt_type()
1266 p = nxt_cpymem(p, type_name[t].start, type_name[t].length); in nxt_conf_vldt_type()
1275 *p++ = ','; in nxt_conf_vldt_type()
1279 p = nxt_cpymem(p, " or", 3); in nxt_conf_vldt_type()
1282 *p++ = ' '; in nxt_conf_vldt_type()
1305 u_char *p, *end; in nxt_conf_vldt_error() local
1317 if (p == NULL) { in nxt_conf_vldt_error()
1666 u_char *p; in nxt_conf_vldt_share() local
[all …]
H A Dnxt_var.c235 p = nxt_var_next_part(p, end - p, &part, &is_var); in nxt_var_compile()
269 next = nxt_var_next_part(p, end - p, &part, &is_var); in nxt_var_compile()
284 p = next; in nxt_var_compile()
303 next = nxt_var_next_part(p, end - p, &part, &is_var); in nxt_var_test()
323 p = next; in nxt_var_test()
344 p++; in nxt_var_next_part()
357 p++; in nxt_var_next_part()
378 p++; in nxt_var_next_part()
607 p = nxt_cpymem(p, &src[last], next - last); in nxt_var_query_finish()
610 p = nxt_cpymem(p, part[j]->start, part[j]->length); in nxt_var_query_finish()
[all …]
H A Dnxt_port_rpc.c36 void *p; in nxt_port_rpc_init() local
42 p = nxt_mem_mmap(NULL, sizeof(*nxt_stream_ident), PROT_READ | PROT_WRITE, in nxt_port_rpc_init()
45 if (nxt_slow_path(p == MAP_FAILED)) { in nxt_port_rpc_init()
49 nxt_stream_ident = p; in nxt_port_rpc_init()
H A Dnxt_port_memory.c114 memset((p), 0xA5, size)
120 u_char *p; in nxt_port_mmap_buf_completion() local
154 p = b->mem.pos - 1; in nxt_port_mmap_buf_completion()
156 p = nxt_port_mmap_chunk_start(hdr, c); in nxt_port_mmap_buf_completion()
159 p = b->mem.start; in nxt_port_mmap_buf_completion()
160 c = nxt_port_mmap_chunk_id(hdr, p); in nxt_port_mmap_buf_completion()
163 nxt_port_mmap_free_junk(p, b->mem.end - p); in nxt_port_mmap_buf_completion()
169 while (p < b->mem.end) { in nxt_port_mmap_buf_completion()
172 p += PORT_MMAP_CHUNK_SIZE; in nxt_port_mmap_buf_completion()
374 u_char *p, name[64]; in nxt_shm_open() local
[all …]
/unit/pkg/rpm/
H A Dunit.spec.in110 %{__mkdir} -p %{buildroot}%{_libdir}/unit/modules
112 %{__mkdir} -p %{buildroot}%{_sharedstatedir}/unit
113 %{__mkdir} -p %{buildroot}%{_localstatedir}/log/unit
114 %{__mkdir} -p %{buildroot}%{_localstatedir}/run/unit
115 %{__mkdir} -p %{buildroot}%{_sysconfdir}/logrotate.d
116 %{__install} -m 644 -p %{SOURCE4} \
119 %{__install} -m 644 -p %{SOURCE3} \
121 %{__install} -m 644 -p CHANGES \
123 %{__install} -m 644 -p NOTICE \
125 %{__install} -m 644 -p README.md \
[all …]
/unit/pkg/docker/
H A DDockerfile.ruby3.18 && mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
55 && mkdir -p /var/lib/unit/ \
H A DDockerfile.node168 && mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
57 && mkdir -p /var/lib/unit/ \
H A DDockerfile.php8.18 && mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
55 && mkdir -p /var/lib/unit/ \
H A DDockerfile.python3.108 && mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
55 && mkdir -p /var/lib/unit/ \

123456