Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 65) sorted by last modified time

123

/unit/src/
H A Dnxt_unit.c4662 err = errno; in nxt_unit_read_buf()
4664 if (err == EINTR) { in nxt_unit_read_buf()
4669 fds[0].fd, fds[1].fd, strerror(err), err); in nxt_unit_read_buf()
5983 int err; in nxt_unit_sendmsg() local
5995 err = errno; in nxt_unit_sendmsg()
6006 fd, (int) buf_size, strerror(err), err); in nxt_unit_sendmsg()
6214 err = errno; in nxt_unit_port_recv()
6222 fd, strerror(err), err); in nxt_unit_port_recv()
6228 fd, strerror(err), err); in nxt_unit_port_recv()
6706 int err; in nxt_unit_lvlhsh_alloc() local
[all …]
H A Dnxt_mp.c786 const char *err; in nxt_mp_free() local
798 err = nxt_mp_chunk_free(mp, block, p); in nxt_mp_free()
800 if (nxt_fast_path(err == NULL)) { in nxt_mp_free()
818 err = "freed pointer points to non-freeable block: %p"; in nxt_mp_free()
821 err = "freed pointer points to middle of block: %p"; in nxt_mp_free()
825 err = "freed pointer is out of pool: %p"; in nxt_mp_free()
828 nxt_thread_log_alert(err, p); in nxt_mp_free()
H A Dnxt_http_route.c934 nxt_regex_err_t err; in nxt_http_route_pattern_create() local
964 re = nxt_regex_compile(mp, &test, &err); in nxt_http_route_pattern_create()
966 if (err.offset < test.length) { in nxt_http_route_pattern_create()
968 &test, err.msg, (int) err.offset); in nxt_http_route_pattern_create()
972 nxt_alert(task, "nxt_regex_compile(%V) failed %s", &test, err.msg); in nxt_http_route_pattern_create()
H A Dnxt_conf_validation.c1939 nxt_regex_err_t err; in nxt_conf_vldt_match_pattern() local
1960 re = nxt_regex_compile(vldt->pool, &pattern, &err); in nxt_conf_vldt_match_pattern()
1962 if (err.offset < pattern.length) { in nxt_conf_vldt_match_pattern()
1965 err.msg, err.offset); in nxt_conf_vldt_match_pattern()
1969 err.msg); in nxt_conf_vldt_match_pattern()
H A Dnxt_sprintf.c106 nxt_err_t err; in nxt_vsprintf() local
248 err = va_arg(args, nxt_err_t); in nxt_vsprintf()
253 buf = nxt_integer(&spf, buf, err); in nxt_vsprintf()
260 buf = nxt_strerror(err, buf, end - buf); in nxt_vsprintf()
H A Dnxt_openssl.c104 nxt_err_t err, const char *fmt, ...);
1242 nxt_err_t err; local
1337 nxt_err_t err; local
1387 nxt_err_t err; local
1427 nxt_err_t err; local
1644 if (err != 0) {
1758 u_long err; local
1762 err = ERR_peek_error();
1763 if (err == 0) {
1768 data = ERR_reason_error_string(err);
[all …]
H A Dnxt_thread_id.h110 int err, size; in nxt_thread_get_tid() local
117 err = pthread_getthrds_np(&pt, PTHRDSINFO_QUERY_TID, &ti, in nxt_thread_get_tid()
120 if (nxt_fast_path(err == 0)) { in nxt_thread_get_tid()
125 err); in nxt_thread_get_tid()
H A Dnxt_socket.h110 nxt_uint_t nxt_socket_error_level(nxt_err_t err);
H A Dnxt_mem_zone.c774 const char *err; in nxt_mem_zone_free() local
787 err = nxt_mem_zone_free_chunk(zone, page, p); in nxt_mem_zone_free()
790 err = "page is already free"; in nxt_mem_zone_free()
793 err = "invalid pointer to chunk"; in nxt_mem_zone_free()
801 err = NULL; in nxt_mem_zone_free()
805 err = "pointer to wrong page"; in nxt_mem_zone_free()
812 err = "pointer is out of zone"; in nxt_mem_zone_free()
815 if (nxt_slow_path(err != NULL)) { in nxt_mem_zone_free()
816 nxt_thread_log_alert("nxt_mem_zone_free(%p): %s", p, err); in nxt_mem_zone_free()
H A Dnxt_errno.h74 #define nxt_set_errno(err) \ argument
75 errno = err
77 #define nxt_set_socket_errno(err) \ argument
78 errno = err
84 typedef u_char *(*nxt_strerror_t)(nxt_err_t err, u_char *errstr, size_t size);
H A Dnxt_main_process.c886 nxt_err_t err; in nxt_main_process_sigchld_handler() local
904 switch (err = nxt_errno) { in nxt_main_process_sigchld_handler()
913 nxt_alert(task, "waitpid() failed: %E", err); in nxt_main_process_sigchld_handler()
1097 nxt_err_t err; in nxt_main_listening_socket() local
1106 err = nxt_errno; in nxt_main_listening_socket()
1110 if (err == EAFNOSUPPORT && sa->u.sockaddr.sa_family == AF_INET6) { in nxt_main_listening_socket()
1118 (size_t) sa->length, nxt_sockaddr_start(sa), err); in nxt_main_listening_socket()
1147 err = nxt_errno; in nxt_main_listening_socket()
1152 switch (err) { in nxt_main_listening_socket()
1167 switch (err) { in nxt_main_listening_socket()
[all …]
H A Dnxt_gnutls.c56 ssize_t err, const char *fmt, ...);
59 int err, const char *fmt, ...);
226 const char *err; in nxt_gnutls_set_ciphers() local
428 int err; in nxt_gnutls_conn_handshake() local
446 if (err == GNUTLS_E_SUCCESS) { in nxt_gnutls_conn_handshake()
573 int err; in nxt_gnutls_conn_io_shutdown() local
605 if (err == GNUTLS_E_SUCCESS) { in nxt_gnutls_conn_io_shutdown()
637 switch (err) { in nxt_gnutls_conn_test_error()
697 p - msg, msg, err, gnutls_strerror(err)); in nxt_gnutls_conn_log_error()
707 switch (err) { in nxt_gnutls_log_error_level()
[all …]
H A Dnxt_malloc.c132 nxt_err_t err; in nxt_memalign() local
134 err = posix_memalign(&p, alignment, size); in nxt_memalign()
136 if (nxt_fast_path(err == 0)) { in nxt_memalign()
144 alignment, size, err); in nxt_memalign()
185 nxt_err_t err; in nxt_memalign() local
189 err = NXT_EINVAL; in nxt_memalign()
194 err = NXT_EOPNOTSUPP; in nxt_memalign()
221 alignment, size, err); in nxt_memalign()
H A Dnxt_application.c754 nxt_err_t err; in nxt_proto_sigchld_handler() local
766 switch (err = nxt_errno) { in nxt_proto_sigchld_handler()
775 nxt_alert(task, "waitpid() failed: %E", err); in nxt_proto_sigchld_handler()
823 char *err; in nxt_app_module_load() local
830 err = dlerror(); in nxt_app_module_load()
832 name, err != NULL ? err : "(null)"); in nxt_app_module_load()
839 err = dlerror(); in nxt_app_module_load()
841 name, err != NULL ? err : "(null)"); in nxt_app_module_load()
844 err = dlerror(); in nxt_app_module_load()
846 name, err != NULL ? err : "(null)"); in nxt_app_module_load()
H A Dnxt_socketpair.c90 nxt_err_t err; in nxt_socketpair_send() local
98 err = (n == -1) ? nxt_socket_errno : 0; in nxt_socketpair_send()
109 switch (err) { in nxt_socketpair_send()
128 ev->fd, fd[0], fd[1], niob, err); in nxt_socketpair_send()
145 nxt_err_t err; in nxt_socketpair_recv() local
150 err = (n == -1) ? nxt_socket_errno : 0; in nxt_socketpair_recv()
168 switch (err) { in nxt_socketpair_recv()
182 ev->fd, niob, err); in nxt_socketpair_recv()
H A Dnxt_h1proto_websocket.c34 const nxt_ws_error_t *err, ...);
579 const nxt_ws_error_t *err, ...) in hxt_h1p_send_ws_error() argument
588 if (nxt_slow_path(err->args)) { in hxt_h1p_send_ws_error()
589 va_start(args, err); in hxt_h1p_send_ws_error()
590 p = nxt_vsprintf(buf, buf + sizeof(buf), (char *) err->desc.start, in hxt_h1p_send_ws_error()
598 desc = err->desc; in hxt_h1p_send_ws_error()
601 nxt_log(task, NXT_LOG_INFO, "websocket error %d: %V", err->code, &desc); in hxt_h1p_send_ws_error()
603 out = nxt_http_buf_mem(task, r, 2 + sizeof(err->code) + desc.length); in hxt_h1p_send_ws_error()
613 p = nxt_websocket_frame_init(wsh, sizeof(err->code) + desc.length); in hxt_h1p_send_ws_error()
618 *p++ = (err->code >> 8) & 0xFF; in hxt_h1p_send_ws_error()
[all …]
/unit/src/ruby/
H A Dnxt_ruby.c485 VALUE rackup, err; in nxt_ruby_rack_init() local
496 err = rb_errinfo(); in nxt_ruby_rack_init()
498 if (rb_obj_is_kind_of(err, rb_eLoadError) == Qfalse) { in nxt_ruby_rack_init()
1218 VALUE err, ary, eclass, msg; in nxt_ruby_exception_log() local
1222 err = rb_errinfo(); in nxt_ruby_exception_log()
1223 if (nxt_slow_path(err == Qnil)) { in nxt_ruby_exception_log()
1227 eclass = rb_class_name(rb_class_of(err)); in nxt_ruby_exception_log()
1229 msg = rb_funcall(err, rb_intern("message"), 0); in nxt_ruby_exception_log()
1230 ary = rb_funcall(err, rb_intern("backtrace"), 0); in nxt_ruby_exception_log()
/unit/test/
H A Dconftest.py328 except OSError as err:
329 if err.errno != 16:
/unit/src/java/nginx/unit/
H A DContext.java1574 System.err.println("loadInitializer: exception caught: " + e.toString());
3172 System.err.println("addServlet: exception caught: " + e.toString());
3191 System.err.println("addServlet: exception caught: " + e.toString());
3210 System.err.println("addServlet: exception caught: " + e.toString());
/unit/
H A Dconfigure25 NXT_AUTOCONF_ERR=$NXT_BUILD_DIR/autoconf.err
/unit/go/
H A Dport.go81 c, err := net.FileConn(f)
82 if err != nil {
83 nxt_go_alert("FileConn error %s", err)
158 n, oobn, err := p.snd.WriteMsgUnix(GoBytes(buf, buf_size),
161 if err != nil {
162 nxt_go_warn("write result %d (%d), %s", n, oobn, err)
186 n, oobn, _, _, err := p.rcv.ReadMsgUnix(GoBytes(buf, buf_size),
189 if err != nil {
190 if nerr, ok := err.(*net.OpError); ok {
196 nxt_go_warn("read result %d (%d), %s", n, oobn, err)
/unit/src/test/
H A Dnxt_unit_app_test.c47 int i, err; in main() local
65 err = nxt_unit_run(ctx); in main()
67 nxt_unit_debug(ctx, "main worker finished with %d code", err); in main()
71 err = pthread_join(threads[i], NULL); in main()
73 if (nxt_fast_path(err == 0)) { in main()
78 i, strerror(err), err); in main()
96 int i, err; in ready_handler() local
110 err = pthread_create(&threads[i], NULL, worker, ctx); in ready_handler()
111 if (err != 0) { in ready_handler()
/unit/src/nodejs/unit-http/
H A Dunit.cpp60 int rc, err; in process_port_msg() local
69 err = uv_timer_init(poll.loop, &timer); in process_port_msg()
70 if (err < 0) { in process_port_msg()
473 int err; in add_port() local
496 err = uv_poll_init(loop, &data->poll, port->in_fd); in add_port()
497 if (err < 0) { in add_port()
503 err = uv_poll_start(&data->poll, UV_READABLE, in add_port()
505 if (err < 0) { in add_port()
H A Dhttp_server.js306 var err = new Error("Write after end");
308 this.emit('error', err);
311 callback(err);
/unit/src/python/
H A Dnxt_python_wsgi.c458 PyObject *obj, *err, *environ; in nxt_python_create_environ() local
540 err = PySys_GetObject((char *) "stderr"); in nxt_python_create_environ()
542 if (nxt_slow_path(err == NULL)) { in nxt_python_create_environ()
547 if (nxt_slow_path(PyDict_SetItemString(environ, "wsgi.errors", err) != 0)) in nxt_python_create_environ()

123