Home
last modified time | relevance | path

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

123456

/unit/test/
H A Dconftest.py460 p = unit_instance['process']
462 if p.poll() is not None:
465 p.send_signal(signal.SIGQUIT)
468 retcode = p.wait(15)
473 p.kill()
477 p.kill()
/unit/src/
H A Dnxt_var.c343 p = str->start; in nxt_var_compile()
347 p = nxt_var_next_part(p, end, &part); in nxt_var_compile()
391 p = next; in nxt_var_compile()
429 p = next; in nxt_var_test()
446 p++; in nxt_var_next_part()
459 p++; in nxt_var_next_part()
466 start = p; in nxt_var_next_part()
502 return p; in nxt_var_next_part()
561 p = nxt_cpymem(p, &src[last], next - last); in nxt_var_interpreter()
564 p = nxt_cpymem(p, part[i]->start, part[i]->length); in nxt_var_interpreter()
[all …]
H A Dnxt_tstr.c87 u_char *p; in nxt_tstr_compile() local
105 p = nxt_cpymem(tstr->str.start, str->start, str->length); in nxt_tstr_compile()
108 *p = '\0'; in nxt_tstr_compile()
131 p = memchr(str->start, '$', str->length); in nxt_tstr_compile()
133 if (p != NULL) { in nxt_tstr_compile()
154 u_char *p; in nxt_tstr_test() local
168 p = memchr(str->start, '$', str->length); in nxt_tstr_test()
170 if (p != NULL) { in nxt_tstr_test()
H A Dnxt_router_access_log.c63 u_char *p; in nxt_router_access_log_create() local
125 p = nxt_cpymem(str.start, alcf.format.start, alcf.format.length); in nxt_router_access_log_create()
126 *p = '\n'; in nxt_router_access_log_create()
H A Dnxt_tstr.h63 u_char *p; in nxt_is_tstr() local
65 p = memchr(str->start, '`', str->length); in nxt_is_tstr()
66 if (p != NULL) { in nxt_is_tstr()
70 p = memchr(str->start, '$', str->length); in nxt_is_tstr()
71 if (p != NULL) { in nxt_is_tstr()
H A Dnxt_router.c5247 p = nxt_cpymem(p, r->method->start, r->method->length); in nxt_router_prepare_msg()
5248 *p++ = '\0'; in nxt_router_prepare_msg()
5252 p = nxt_cpymem(p, r->version.start, r->version.length); in nxt_router_prepare_msg()
5253 *p++ = '\0'; in nxt_router_prepare_msg()
5257 p = nxt_cpymem(p, nxt_sockaddr_address(r->remote), in nxt_router_prepare_msg()
5268 p = nxt_cpymem(p, nxt_sockaddr_port(r->local), in nxt_router_prepare_msg()
5283 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_router_prepare_msg()
5292 p = nxt_cpymem(p, r->path->start, r->path->length); in nxt_router_prepare_msg()
5347 p = nxt_cpymem(p, prefix->start, prefix->length); in nxt_router_prepare_msg()
5374 p = nxt_cpymem(p, field->value, field->value_length); in nxt_router_prepare_msg()
[all …]
H A Dnxt_main.h87 typedef void (*nxt_mem_proto_free_t)(void *pool, void *p);
H A Dnxt_http_static.c343 p = fname; in nxt_http_static_send_ready()
344 p = nxt_cpymem(p, shr->start, shr->length); in nxt_http_static_send_ready()
345 p = nxt_cpymem(p, index->start, index->length); in nxt_http_static_send_ready()
346 *p = '\0'; in nxt_http_static_send_ready()
531 field->value_length = nxt_http_date(p, &tm) - p; in nxt_http_static_send_ready()
636 p = nxt_cpymem(p, r->path->start, r->path->length); in nxt_http_static_send_ready()
639 *p++ = '/'; in nxt_http_static_send_ready()
764 p = end; in nxt_http_static_extract_extension()
767 p--; in nxt_http_static_extract_extension()
768 ch = *p; in nxt_http_static_extract_extension()
[all …]
H A Dnxt_js.c68 u_char *p, *start; in nxt_js_add_tpl() local
92 p = start; in nxt_js_add_tpl()
94 p = nxt_cpymem(p, func_str.start, func_str.length); in nxt_js_add_tpl()
95 p = nxt_cpymem(p, str->start, str->length); in nxt_js_add_tpl()
98 p = nxt_cpymem(p, strz_str.start, strz_str.length); in nxt_js_add_tpl()
101 *p++ = '}'; in nxt_js_add_tpl()
145 p = start; in nxt_js_compile()
146 *p++ = '['; in nxt_js_compile()
151 p = nxt_cpymem(p, func[i].start, func[i].length); in nxt_js_compile()
152 *p++ = ','; in nxt_js_compile()
[all …]
H A Dnxt_http_variables.c122 u_char *p; in nxt_http_var_request_time() local
140 str->length = p - str->start; in nxt_http_var_request_time()
277 u_char *p, *start; in nxt_http_var_request_line() local
289 p = start; in nxt_http_var_request_line()
292 p = nxt_cpymem(p, r->method->start, r->method->length); in nxt_http_var_request_line()
295 *p++ = ' '; in nxt_http_var_request_line()
296 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_http_var_request_line()
299 *p++ = ' '; in nxt_http_var_request_line()
300 p = nxt_cpymem(p, r->version.start, r->version.length); in nxt_http_var_request_line()
305 *p++ = '-'; in nxt_http_var_request_line()
[all …]
H A Dnxt_http_route.c1050 p = end - 1; in nxt_http_route_pattern_create()
1053 c = *p--; in nxt_http_route_pattern_create()
1061 tmp.start = p; in nxt_http_route_pattern_create()
1065 end = p; in nxt_http_route_pattern_create()
1080 p = tmp.start; in nxt_http_route_pattern_create()
1083 c = *p++; in nxt_http_route_pattern_create()
1411 u_char *p; in nxt_http_pass_segments() local
1687 s = p; in nxt_http_route_rule()
1691 pp = p; in nxt_http_route_rule()
1721 base = &p->base; in nxt_http_route_addr_pattern_match()
[all …]
H A Dnxt_http_request.c430 for (p = start + len - 1; p > start; p--, len--) { in nxt_http_request_forward_client_ip()
431 if (*p != ' ' && *p != ',') { in nxt_http_request_forward_client_ip()
436 for (/* void */; p > start; p--) { in nxt_http_request_forward_client_ip()
437 if (*p == ' ' || *p == ',') { in nxt_http_request_forward_client_ip()
887 for (p = start, dst = dst_start; p < end; p++, dst++) { in nxt_http_arguments_parse()
888 *dst = *p; in nxt_http_arguments_parse()
1039 for (p = start; p < end; p++) { in nxt_http_cookie_parse()
1040 c = *p; in nxt_http_cookie_parse()
1092 for (p = name; p < name + name_length; p++) { in nxt_http_cookie()
1093 c = *p; in nxt_http_cookie()
[all …]
H A Dnxt_conf.h111 u_char *nxt_conf_json_print(u_char *p, nxt_conf_value_t *value,
H A Dnxt_conf_validation.c1264 u_char *p; in nxt_conf_vldt_type() local
1286 p = buf; in nxt_conf_vldt_type()
1291 p = nxt_cpymem(p, "either ", 7); in nxt_conf_vldt_type()
1299 p = nxt_cpymem(p, type_name[t].start, type_name[t].length); in nxt_conf_vldt_type()
1308 *p++ = ','; in nxt_conf_vldt_type()
1312 p = nxt_cpymem(p, " or", 3); in nxt_conf_vldt_type()
1315 *p++ = ' '; in nxt_conf_vldt_type()
1338 u_char *p, *end; in nxt_conf_vldt_error() local
1350 if (p == NULL) { in nxt_conf_vldt_error()
2041 u_char *p, *end; in nxt_conf_vldt_match_encoded_patterns_set_member() local
[all …]
H A Dnxt_main_process.c431 *p++ = '"'; in nxt_main_start_process_handler()
432 p = nxt_cpymem(p, init->name, app_conf->name.length); in nxt_main_start_process_handler()
433 p = nxt_cpymem(p, "\" prototype", 11); in nxt_main_start_process_handler()
434 *p = '\0'; in nxt_main_start_process_handler()
720 u_char *p, *end; in nxt_main_process_title() local
730 p = nxt_sprintf(p, end, " %s", nxt_process_argv[i]); in nxt_main_process_title()
733 if (p < end) { in nxt_main_process_title()
734 *p++ = ']'; in nxt_main_process_title()
737 *p = '\0'; in nxt_main_process_title()
1443 void *p; in nxt_main_port_conf_store_handler() local
[all …]
H A Dnxt_application.h137 nxt_app_type_t nxt_app_parse_type(u_char *p, size_t length);
H A Dnxt_string.h135 #define nxt_str_eq(s, p, _length) \ argument
136 (((s)->length == _length) && (memcmp((s)->start, p, _length) == 0))
139 #define nxt_str_start(s, p, _length) \ argument
140 (((s)->length >= _length) && (memcmp((s)->start, p, _length) == 0))
/unit/auto/modules/
H A Druby233 mkdir -p $NXT_BUILD_DIR/src/ruby
265 install -p $NXT_BUILD_DIR/${NXT_RUBY_MODULE}.unit.so \\
273 @rmdir -p \$(DESTDIR)$NXT_MODULES 2>/dev/null || true
/unit/src/python/
H A Dnxt_python_wsgi.c798 char *p, c; in nxt_python_field_name() local
812 p = PyString_AS_STRING(res); in nxt_python_field_name()
814 p = nxt_cpymem(p, "HTTP_", 5); in nxt_python_field_name()
820 *p++ = (c & ~0x20); in nxt_python_field_name()
825 *p++ = '_'; in nxt_python_field_name()
829 *p++ = c; in nxt_python_field_name()
840 char *p, *src; in nxt_python_field_value() local
853 p = PyString_AS_STRING(res); in nxt_python_field_value()
856 p = nxt_cpymem(p, src, f->value_length); in nxt_python_field_value()
859 p = nxt_cpymem(p, ", ", 2); in nxt_python_field_value()
[all …]
H A Dnxt_python_asgi.c578 char *p, *target, *query; in nxt_py_asgi_create_http_scope() local
615 p = nxt_unit_sptr_get(&r->version); in nxt_py_asgi_create_http_scope()
781 char *p, *s; in nxt_py_asgi_create_ip_address() local
789 p = nxt_unit_sptr_get(sptr); in nxt_py_asgi_create_ip_address()
790 s = memchr(p, ':', len); in nxt_py_asgi_create_ip_address()
792 v = PyString_FromStringAndSize(p, s == NULL ? len : s - p); in nxt_py_asgi_create_ip_address()
802 p += len; in nxt_py_asgi_create_ip_address()
1038 PyObject *res, *p; in nxt_py_asgi_quit() local
1045 p = PyLong_FromLong(0); in nxt_py_asgi_quit()
1046 if (nxt_slow_path(p == NULL)) { in nxt_py_asgi_quit()
[all …]
/unit/pkg/rpm/
H A Dunit.spec.in104 %{__mkdir} -p %{buildroot}%{_libdir}/unit/modules
106 %{__mkdir} -p %{buildroot}%{_sharedstatedir}/unit
107 %{__mkdir} -p %{buildroot}%{_localstatedir}/log/unit
108 %{__mkdir} -p %{buildroot}%{_localstatedir}/run/unit
109 %{__mkdir} -p %{buildroot}%{_sysconfdir}/logrotate.d
110 %{__install} -m 644 -p %{SOURCE4} \
113 %{__install} -m 644 -p %{SOURCE3} \
115 %{__install} -m 644 -p CHANGES \
117 %{__install} -m 644 -p NOTICE \
119 %{__install} -m 644 -p README.md \
[all …]
H A Dunit.module.spec.in80 %{__mkdir} -p %{buildroot}%{_datadir}/doc/%%NAME%%
82 %{__install} -m 644 -p %{SOURCE100} \
85 %{__install} -m 644 -p NOTICE \
/unit/src/test/
H A Dnxt_utf8_test.c45 u_char *p, utf8[4]; in nxt_utf8_overlong() local
58 p = nxt_utf8_encode(utf8, d); in nxt_utf8_overlong()
60 size = (p != NULL) ? p - utf8 : 0; in nxt_utf8_overlong()
84 u_char *p, utf8[4]; in nxt_utf8_test() local
99 p = nxt_utf8_encode(utf8, u); in nxt_utf8_test()
101 if (p == NULL) { in nxt_utf8_test()
108 d = nxt_utf8_decode(&pp, p); in nxt_utf8_test()
H A Dnxt_utf8_file_name_test.c43 u_char *p, test[4], buf[32]; in nxt_utf8_file_name_test() local
81 p = nxt_utf8_encode(&uc_name[5], uc); in nxt_utf8_file_name_test()
83 if (p == NULL) { in nxt_utf8_file_name_test()
88 *p = '\0'; in nxt_utf8_file_name_test()
91 lc = nxt_utf8_lowcase(&pp, p); in nxt_utf8_file_name_test()
103 p = nxt_utf8_encode(&lc_name[5], lc); in nxt_utf8_file_name_test()
105 if (p == NULL) { in nxt_utf8_file_name_test()
110 *p = '\0'; in nxt_utf8_file_name_test()
138 p = nxt_sprintf(buf, buf + 32, "%04uXD; C; %04uXD;%n", uc, lc); in nxt_utf8_file_name_test()
140 nxt_fd_write(nxt_stdout, buf, p - buf); in nxt_utf8_file_name_test()
/unit/src/perl/
H A Dnxt_perl_psgi.c406 char *buf, *p; in nxt_perl_psgi_module_create() local
436 p = nxt_cpymem(buf, prefix.start, prefix.length); in nxt_perl_psgi_module_create()
437 p = nxt_cpymem(p, script, length); in nxt_perl_psgi_module_create()
438 nxt_memcpy(p, suffix.start, suffix.length); in nxt_perl_psgi_module_create()

123456