Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 78) sorted by relevance

1234

/unit/src/
H A Dnxt_process.c159 return ret; in nxt_process_init_start()
188 ret = NXT_ERROR; in nxt_process_start()
205 ret = NXT_ERROR; in nxt_process_start()
213 ret = NXT_AGAIN; in nxt_process_start()
224 ret = NXT_OK; in nxt_process_start()
242 return ret; in nxt_process_start()
316 nxt_int_t ret; in nxt_process_create() local
448 return ret; in nxt_process_setup()
498 return ret; in nxt_process_do_start()
709 nxt_int_t ret; in nxt_process_core_setup() local
[all …]
H A Dnxt_gnutls.c89 int ret; in nxt_gnutls_start() local
146 int ret; in nxt_gnutls_server_init() local
197 if (ret < 0) { in nxt_gnutls_server_init()
224 int ret; in nxt_gnutls_set_ciphers() local
234 switch (ret) { in nxt_gnutls_set_ciphers()
429 nxt_int_t ret; in nxt_gnutls_conn_handshake() local
453 if (ret == NXT_ERROR) { in nxt_gnutls_conn_handshake()
543 nxt_int_t ret; in nxt_gnutls_conn_io_send() local
566 return ret; in nxt_gnutls_conn_io_send()
634 int ret; in nxt_gnutls_conn_test_error() local
[all …]
H A Dnxt_pcre2.c27 nxt_int_t ret; in nxt_regex_compile() local
60 ret = pcre2_get_error_message(errcode, (PCRE2_UCHAR *) err->msg, in nxt_regex_compile()
62 if (ret < 0) { in nxt_regex_compile()
74 ret = pcre2_get_error_message(errcode, (PCRE2_UCHAR *) err->msg, in nxt_regex_compile()
76 if (ret < 0) { in nxt_regex_compile()
136 nxt_int_t ret; in nxt_regex_match() local
139 ret = pcre2_match(re->code, (PCRE2_SPTR) subject, length, 0, 0, match, in nxt_regex_match()
142 if (nxt_slow_path(ret < PCRE2_ERROR_NOMATCH)) { in nxt_regex_match()
144 if (pcre2_get_error_message(ret, errptr, ERR_BUF_SIZE) < 0) { in nxt_regex_match()
147 "using \"%V\"", ret, length, subject, in nxt_regex_match()
[all …]
H A Dnxt_fd_event.c35 nxt_int_t ret; in nxt_fd_event_hash_add() local
43 ret = nxt_lvlhsh_insert(lvlhsh, &lhq); in nxt_fd_event_hash_add()
45 if (nxt_fast_path(ret == NXT_OK)) { in nxt_fd_event_hash_add()
58 nxt_int_t ret; in nxt_fd_event_hash_get() local
64 ret = nxt_lvlhsh_find(lvlhsh, &lhq); in nxt_fd_event_hash_get()
66 if (nxt_fast_path(ret == NXT_OK)) { in nxt_fd_event_hash_get()
80 nxt_int_t ret; in nxt_fd_event_hash_delete() local
86 ret = nxt_lvlhsh_delete(lvlhsh, &lhq); in nxt_fd_event_hash_delete()
88 if (nxt_slow_path(ret != NXT_OK)) { in nxt_fd_event_hash_delete()
H A Dnxt_http_route_addr.c21 nxt_int_t ret, cidr_prefix; in nxt_http_route_addr_pattern_parse() local
104 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_addr_pattern_parse()
114 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_addr_pattern_parse()
193 if (nxt_slow_path(ret != NXT_OK)) { in nxt_http_route_addr_pattern_parse()
289 if (nxt_slow_path(ret < 0 || ret > 65535)) { in nxt_http_route_addr_pattern_parse()
293 base->port.start = ret; in nxt_http_route_addr_pattern_parse()
296 if (nxt_slow_path(ret < base->port.start || ret > 65535)) { in nxt_http_route_addr_pattern_parse()
300 base->port.end = ret; in nxt_http_route_addr_pattern_parse()
304 if (nxt_slow_path(ret < 0 || ret > 65535)) { in nxt_http_route_addr_pattern_parse()
308 base->port.start = ret; in nxt_http_route_addr_pattern_parse()
[all …]
H A Dnxt_http_route.c654 return ret; in nxt_http_action_init()
1610 ret = 1; in nxt_http_route_table()
1624 return ret; in nxt_http_route_table()
1883 ret = 0; in nxt_http_route_header()
1906 return ret; in nxt_http_route_header()
1931 ret = 0; in nxt_http_route_test_argument()
1956 return ret; in nxt_http_route_test_argument()
2009 ret = 0; in nxt_http_route_test_cookie()
2034 return ret; in nxt_http_route_test_cookie()
2045 ret = 1; in nxt_http_route_test_rule()
[all …]
H A Dnxt_conf_validation.c553 ssize_t ret; in nxt_conf_vldt_ticket_key_element() local
569 if (ret != 48 && ret != 80) { in nxt_conf_vldt_ticket_key_element()
1228 nxt_int_t ret; in nxt_conf_validate() local
1237 return ret; in nxt_conf_validate()
1406 return ret; in nxt_conf_vldt_mtypes()
1420 return ret; in nxt_conf_vldt_mtypes_type()
1954 return ret; in nxt_conf_vldt_match_patterns()
2093 return ret; in nxt_conf_vldt_match_encoded_patterns()
2235 return ret; in nxt_conf_vldt_match_patterns_sets()
2789 return ret; in nxt_conf_vldt_targets()
[all …]
H A Dnxt_isolation.c80 return ret; in nxt_isolation_main_prefork()
95 return ret; in nxt_isolation_main_prefork()
126 return ret; in nxt_isolation_main_prefork()
146 return ret; in nxt_isolation_main_prefork()
206 nxt_int_t ret; in nxt_isolation_set_namespaces() local
231 nxt_int_t ret; in nxt_isolation_set_creds() local
761 nxt_int_t ret; in nxt_isolation_change_root() local
781 return ret; in nxt_isolation_change_root()
854 ret = NXT_ERROR; in nxt_isolation_make_private_mount()
975 ret = NXT_OK; in nxt_isolation_make_private_mount()
[all …]
H A Dnxt_cyassl.c43 int ret, const char *fmt, ...);
297 int ret; in nxt_cyassl_conn_handshake() local
318 if (ret == 0) { in nxt_cyassl_conn_handshake()
341 int ret; in nxt_cyassl_conn_io_read() local
369 if (ret > 0) { in nxt_cyassl_conn_io_read()
371 b->mem.free += ret; in nxt_cyassl_conn_io_read()
411 int ret; in nxt_cyassl_conn_io_send() local
422 if (ret <= 0) { in nxt_cyassl_conn_io_send()
433 if (ret > 0) { in nxt_cyassl_conn_io_send()
434 return ret; in nxt_cyassl_conn_io_send()
[all …]
H A Dnxt_port_rpc.c191 nxt_int_t ret; in nxt_port_rpc_ex_set_peer() local
223 switch (ret) { in nxt_port_rpc_ex_set_peer()
258 nxt_int_t ret; in nxt_port_rpc_remove_from_peers() local
296 ret = NXT_OK; in nxt_port_rpc_remove_from_peers()
299 if (nxt_slow_path(ret != NXT_OK)) { in nxt_port_rpc_remove_from_peers()
311 nxt_int_t ret; in nxt_port_rpc_handler() local
332 if (ret != NXT_OK) { in nxt_port_rpc_handler()
371 nxt_int_t ret; in nxt_port_rpc_remove_peer() local
383 if (nxt_slow_path(ret != NXT_OK)) { in nxt_port_rpc_remove_peer()
462 nxt_int_t ret; in nxt_port_rpc_cancel() local
[all …]
H A Dnxt_openssl.c147 nxt_int_t ret; in nxt_openssl_library_init() local
220 nxt_int_t ret; in nxt_openssl_locks_init() local
460 ret = NXT_ERROR;
523 ret = NXT_OK;
540 return ret;
1193 if (ret == 0) {
1277 if (ret > 0) {
1350 if (ret > 0) {
1351 return ret;
1401 if (ret > 0) {
[all …]
H A Dnxt_main.c17 nxt_int_t ret; in main() local
27 ret = nxt_runtime_create(&nxt_main_task); in main()
29 if (ret != NXT_OK) { in main()
H A Dnxt_cache.c179 if (ret != NXT_OK) { in nxt_cache_query_locked()
228 if (ret == NXT_OK) { in nxt_cache_node_hold()
238 if (ret == NXT_ERROR) { in nxt_cache_node_hold()
457 return ret; in nxt_cache_update()
466 ssize_t ret; in nxt_cache_release() local
483 if (ret == 0) { in nxt_cache_release()
496 if (ret < 0) { in nxt_cache_release()
539 ret = 0; in nxt_cache_release_locked()
544 if (ret < 0) { in nxt_cache_release_locked()
545 return ret; in nxt_cache_release_locked()
[all …]
H A Dnxt_cert.c122 if (ret == 0) { in nxt_cert_bio()
369 nxt_int_t ret; in nxt_cert_info_save() local
425 nxt_int_t ret; in nxt_cert_info_get() local
434 if (ret != NXT_OK) { in nxt_cert_info_get()
500 nxt_int_t ret; in nxt_cert_details() local
743 nxt_int_t ret; in nxt_cert_alt_names_details() local
803 if (ret == NXT_OK) { in nxt_cert_info_delete()
808 return ret; in nxt_cert_info_delete()
820 nxt_int_t ret; in nxt_cert_store_load() local
957 nxt_int_t ret;
[all …]
H A Dnxt_buf_filter.c35 nxt_int_t ret; in nxt_buf_filter() local
103 ret = NXT_OK; in nxt_buf_filter()
115 ret = f->run->filter_sync_last(f); in nxt_buf_filter()
117 f->done = (ret == NXT_OK); in nxt_buf_filter()
120 if (nxt_fast_path(ret == NXT_OK)) { in nxt_buf_filter()
132 ret = f->run->filter_process(f); in nxt_buf_filter()
134 if (nxt_fast_path(ret == NXT_OK)) { in nxt_buf_filter()
150 if (nxt_slow_path(ret == NXT_ERROR)) { in nxt_buf_filter()
257 nxt_int_t ret; in nxt_buf_filter_file_read() local
288 if (nxt_fast_path(ret == NXT_OK)) { in nxt_buf_filter_file_read()
[all …]
H A Dnxt_main_process.c468 if (ret != NXT_OK) { in nxt_main_start_process_handler()
514 if (nxt_fast_path(ret == NXT_OK || ret == NXT_AGAIN)) { in nxt_main_start_process_handler()
517 if (ret == NXT_OK) { in nxt_main_start_process_handler()
699 nxt_int_t ret; in nxt_main_process_port_create() local
714 return ret; in nxt_main_process_port_create()
787 nxt_int_t ret; in nxt_main_process_sigusr1_handler() local
841 if (ret == NXT_OK) { in nxt_main_process_sigusr1_handler()
1065 if (ret == NXT_OK) { in nxt_main_port_socket_handler()
1417 if (ret == NXT_OK) { in nxt_main_port_modules_handler()
1457 nxt_int_t ret; in nxt_main_port_conf_store_handler() local
[all …]
H A Dnxt_pcre.c122 int ret; in nxt_regex_match() local
124 ret = pcre_exec(re->code, re->extra, (const char *) subject, length, 0, 0, in nxt_regex_match()
126 if (nxt_slow_path(ret < PCRE_ERROR_NOMATCH)) { in nxt_regex_match()
129 ret, length, subject, &re->pattern); in nxt_regex_match()
134 return (ret != PCRE_ERROR_NOMATCH); in nxt_regex_match()
H A Dnxt_router_access_log.c64 nxt_int_t ret; in nxt_router_access_log_create() local
81 ret = nxt_conf_map_object(rtcf->mem_pool, value, in nxt_router_access_log_create()
85 if (ret != NXT_OK) { in nxt_router_access_log_create()
145 nxt_int_t ret; in nxt_router_access_log_writer() local
161 ret = nxt_var_query_init(&r->var_query, r, r->mem_pool); in nxt_router_access_log_writer()
162 if (nxt_slow_path(ret != NXT_OK)) { in nxt_router_access_log_writer()
200 nxt_int_t ret; in nxt_router_access_log_open() local
230 ret = nxt_port_socket_write(task, main_port, NXT_PORT_MSG_ACCESS_LOG, -1, in nxt_router_access_log_open()
233 if (nxt_slow_path(ret != NXT_OK)) { in nxt_router_access_log_open()
330 nxt_int_t ret; in nxt_router_access_log_reopen_handler() local
[all …]
H A Dnxt_runtime.c50 nxt_int_t ret; in nxt_runtime_create() local
100 if (nxt_slow_path(ret != NXT_OK)) { in nxt_runtime_create()
318 nxt_int_t ret; in nxt_runtime_thread_pools() local
377 nxt_int_t ret; in nxt_runtime_initial_start() local
404 if (ret != NXT_OK) { in nxt_runtime_initial_start()
410 if (ret != NXT_OK) { in nxt_runtime_initial_start()
1208 nxt_int_t ret; in nxt_runtime_log_file_add() local
1247 nxt_int_t ret; in nxt_runtime_log_files_create() local
1255 if (ret != NXT_OK) { in nxt_runtime_log_files_create()
1270 nxt_int_t ret; in nxt_runtime_listen_sockets_create() local
[all …]
/unit/src/test/
H A Dnxt_strverscmp_test.c21 nxt_int_t ret; in nxt_strverscmp_test() local
57 ret = nxt_strverscmp((u_char *) tests[i].v1, (u_char *) tests[i].v2); in nxt_strverscmp_test()
62 if (ret < 0) { in nxt_strverscmp_test()
69 if (ret == 0) { in nxt_strverscmp_test()
76 if (ret > 0) { in nxt_strverscmp_test()
85 tests[i].v1, tests[i].res, tests[i].v2, ret); in nxt_strverscmp_test()
H A Dnxt_base64_test.c13 ssize_t ret; in nxt_base64_test() local
73 ret = nxt_base64_decode(NULL, tests[i].enc.start, tests[i].enc.length); in nxt_base64_test()
75 if (ret == NXT_ERROR && tests[i].dec.start == NULL) { in nxt_base64_test()
79 if ((size_t) ret != tests[i].dec.length) { in nxt_base64_test()
83 &tests[i].enc, ret, tests[i].dec.length); in nxt_base64_test()
87 ret = nxt_base64_decode(buf, tests[i].enc.start, tests[i].enc.length); in nxt_base64_test()
89 if (!nxt_str_eq(&tests[i].dec, buf, (size_t) ret)) { in nxt_base64_test()
H A Dnxt_clone_test.c430 nxt_int_t ret; in nxt_clone_creds_test() local
464 ret = nxt_clone_test_mappings(task, mp, &ctx, &testcases[i]); in nxt_clone_creds_test()
466 if (ret != NXT_OK) { in nxt_clone_creds_test()
471 ret = NXT_OK; in nxt_clone_creds_test()
479 return ret; in nxt_clone_creds_test()
487 nxt_int_t ret; in nxt_clone_test_mappings() local
496 ret = nxt_clone_test_parse_map(task, &tc->map_data, &map); in nxt_clone_test_mappings()
497 if (ret != NXT_OK) { in nxt_clone_test_mappings()
535 nxt_int_t ret; in nxt_clone_test_map_assert() local
538 ret = nxt_clone_vldt_credential_uidmap(task, map, &tc->creds); in nxt_clone_test_map_assert()
[all …]
H A Dnxt_utf8_file_name_test.c46 nxt_int_t ret; in nxt_utf8_file_name_test() local
112 ret = nxt_file_open(&task, &uc_file, NXT_FILE_WRONLY, NXT_FILE_TRUNCATE, in nxt_utf8_file_name_test()
114 if (ret != NXT_OK) { in nxt_utf8_file_name_test()
124 ret = nxt_file_open(&task, &lc_file, NXT_FILE_RDONLY, NXT_FILE_OPEN, in nxt_utf8_file_name_test()
127 if (ret == NXT_OK) { in nxt_utf8_file_name_test()
H A Dnxt_sprintf_test.c45 nxt_int_t ret; in nxt_sprintf_test() local
55 ret = nxt_sprintf_test_double(buf, end, double_test[i].format, in nxt_sprintf_test()
59 if (ret == NXT_OK) { in nxt_sprintf_test()
/unit/test/python/ns_inspect/
H A Dwsgi.py13 ret = {
19 ret['FileExists'] = os.path.exists(d.get('path')[0])
21 out = json.dumps(ret)

1234