Searched refs:err (Results 1 - 25 of 122) sorted by relevance

12345

/tldk/app/nginx/src/os/unix/
H A Dngx_dlopen.c17 char *err; local
19 err = (char *) dlerror();
21 if (err == NULL) {
25 return err;
H A Dngx_thread_cond.c15 ngx_err_t err; local
17 err = pthread_cond_init(cond, NULL);
18 if (err == 0) {
22 ngx_log_error(NGX_LOG_EMERG, log, err, "pthread_cond_init() failed");
30 ngx_err_t err; local
32 err = pthread_cond_destroy(cond);
33 if (err == 0) {
37 ngx_log_error(NGX_LOG_EMERG, log, err, "pthread_cond_destroy() failed");
45 ngx_err_t err; local
47 err
61 ngx_err_t err; local
[all...]
H A Dngx_thread_mutex.c80 ngx_err_t err; local
83 err = pthread_mutexattr_init(&attr);
84 if (err != 0) {
85 ngx_log_error(NGX_LOG_EMERG, log, err,
90 err = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
91 if (err != 0) {
92 ngx_log_error(NGX_LOG_EMERG, log, err,
98 err = pthread_mutex_init(mtx, &attr);
99 if (err != 0) {
100 ngx_log_error(NGX_LOG_EMERG, log, err,
118 ngx_err_t err; local
134 ngx_err_t err; local
150 ngx_err_t err; local
[all...]
H A Dngx_errno.c33 ngx_strerror(ngx_err_t err, u_char *errstr, size_t size) argument
37 msg = ((ngx_uint_t) err < NGX_SYS_NERR) ? &ngx_sys_errlist[err]:
51 ngx_err_t err; local
65 for (err = 0; err < NGX_SYS_NERR; err++) {
66 msg = strerror(err);
75 ngx_sys_errlist[err].len = len;
76 ngx_sys_errlist[err]
[all...]
H A Dngx_udp_recv.c17 ngx_err_t err; local
51 err = ngx_socket_errno;
53 if (err == NGX_EAGAIN || err == NGX_EINTR) {
54 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err,
59 n = ngx_connection_error(c, err, "recv() failed");
63 } while (err == NGX_EINTR);
H A Dngx_send.c17 ngx_err_t err; local
49 err = ngx_socket_errno;
52 ngx_log_error(NGX_LOG_ALERT, c->log, err, "send() returned zero");
57 if (err == NGX_EAGAIN || err == NGX_EINTR) {
60 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err,
63 if (err == NGX_EAGAIN) {
69 (void) ngx_connection_error(c, err, "send() failed");
H A Dngx_udp_send.c17 ngx_err_t err; local
41 err = ngx_socket_errno;
43 if (err == NGX_EAGAIN) {
50 if (err != NGX_EINTR) {
52 (void) ngx_connection_error(c, err, "sendto() failed");
H A Dngx_darwin_init.c95 ngx_err_t err; local
102 err = ngx_errno;
104 if (err != NGX_ENOENT) {
106 ngx_log_error(NGX_LOG_ALERT, log, err,
109 if (err != NGX_ENOMEM) {
122 err = ngx_errno;
124 if (err != NGX_ENOENT) {
126 ngx_log_error(NGX_LOG_ALERT, log, err,
129 if (err != NGX_ENOMEM) {
147 err
[all...]
H A Dngx_recv.c17 ngx_err_t err; local
26 "recv: eof:%d, avail:%d, err:%d",
146 err = ngx_socket_errno;
148 if (err == NGX_EAGAIN || err == NGX_EINTR) {
149 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err,
154 n = ngx_connection_error(c, err, "recv() failed");
158 } while (err == NGX_EINTR);
H A Dngx_errno.h71 #define ngx_set_errno(err) errno = err
72 #define ngx_set_socket_errno(err) errno = err
75 u_char *ngx_strerror(ngx_err_t err, u_char *errstr, size_t size);
H A Dngx_linux_sendfile_chain.c53 ngx_err_t err; local
108 err = ngx_socket_errno;
116 if (err != NGX_EINTR) {
118 ngx_connection_error(c, err,
134 err = ngx_socket_errno;
141 if (err != NGX_EINTR) {
143 ngx_connection_error(c, err,
238 ngx_err_t err; local
262 err = ngx_errno;
264 switch (err) {
310 ngx_err_t err; member in struct:__anon383
[all...]
H A Dngx_alloc.c55 int err; local
57 err = posix_memalign(&p, alignment, size);
59 if (err) {
60 ngx_log_error(NGX_LOG_EMERG, log, err,
H A Dngx_files.c90 ngx_err_t err; member in struct:__anon378
127 if (ctx->err) {
128 ngx_log_error(NGX_LOG_CRIT, file->log, ctx->err,
167 ctx->err = ngx_errno;
171 ctx->err = 0;
179 "pread: %z (err: %d) of %uz @%O",
180 n, ctx->err, ctx->size, ctx->offset);
196 ngx_err_t err; local
209 err = ngx_errno;
211 if (err
395 ngx_err_t err; local
545 ngx_err_t err; local
813 int err; local
[all...]
/tldk/app/nginx/src/os/win32/
H A Dngx_thread.c17 ngx_err_t err; local
27 err = ngx_errno;
28 ngx_log_error(NGX_LOG_ALERT, log, err, "CreateThread() failed");
29 return err;
H A Dngx_udp_wsarecv.c19 ngx_err_t err; local
36 err = ngx_socket_errno;
38 if (err == WSAEWOULDBLOCK) {
39 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err,
45 ngx_connection_error(c, err, "WSARecv() failed");
60 ngx_err_t err; local
121 err = ngx_socket_errno;
122 if (err == WSA_IO_PENDING) {
124 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err,
130 ngx_connection_error(c, err, "WSARec
[all...]
H A Dngx_wsasend.c18 ngx_err_t err; local
53 err = ngx_socket_errno;
55 if (err == WSAEWOULDBLOCK) {
56 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err, "WSASend() not ready");
62 ngx_connection_error(c, err, "WSASend() failed");
73 ngx_err_t err; local
133 err = ngx_socket_errno;
135 if (err == WSA_IO_PENDING) {
136 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err,
143 ngx_connection_error(c, err, "WSASen
[all...]
H A Dngx_errno.h19 #define ngx_set_errno(err) SetLastError(err)
21 #define ngx_set_socket_errno(err) WSASetLastError(err)
67 u_char *ngx_strerror(ngx_err_t err, u_char *errstr, size_t size);
H A Dngx_errno.c13 ngx_strerror(ngx_err_t err, u_char *errstr, size_t size) argument
23 NULL, err, lang, (char *) errstr, size, NULL);
37 NULL, err, lang, (char *) errstr, size, NULL);
H A Dngx_wsarecv.c19 ngx_err_t err; local
37 err = ngx_socket_errno;
39 if (err == WSAEWOULDBLOCK) {
40 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err,
45 n = ngx_connection_error(c, err, "WSARecv() failed");
72 ngx_err_t err; local
134 err = ngx_socket_errno;
135 if (err == WSA_IO_PENDING) {
137 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err,
142 n = ngx_connection_error(c, err, "WSARec
[all...]
H A Dngx_wsarecv_chain.c23 ngx_err_t err; local
84 err = ngx_socket_errno;
86 if (err == WSAEWOULDBLOCK) {
87 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err,
93 ngx_connection_error(c, err, "WSARecv() failed");
/tldk/app/nginx/src/core/
H A Dngx_log.h88 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
104 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
117 void ngx_cdecl ngx_log_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
119 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
121 void ngx_cdecl ngx_log_debug_core(ngx_log_t *log, ngx_err_t err,
134 #define ngx_log_debug0(level, log, err, fmt) \
135 ngx_log_debug(level, log, err, fmt)
137 #define ngx_log_debug1(level, log, err, fmt, arg1) \
138 ngx_log_debug(level, log, err, fmt, arg1)
140 #define ngx_log_debug2(level, log, err, fm
[all...]
H A Dngx_shmtx.c112 ngx_err_t err; local
114 err = ngx_errno;
116 if (err != NGX_EINTR) {
117 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, err,
248 ngx_err_t err; local
250 err = ngx_trylock_fd(mtx->fd);
252 if (err == 0) {
256 if (err == NGX_EAGAIN) {
262 if (err == NGX_EACCES) {
268 ngx_log_abort(err, ngx_trylock_fd_
277 ngx_err_t err; local
292 ngx_err_t err; local
[all...]
/tldk/app/nginx/src/event/
H A Dngx_event_connect.c28 ngx_err_t err; local
107 err = ngx_socket_errno;
109 if (err != NGX_EOPNOTSUPP && err != NGX_ENOPROTOOPT) {
110 ngx_log_error(NGX_LOG_ALERT, pc->log, err,
196 err = ngx_socket_errno;
199 if (err != NGX_EINPROGRESS
202 && err != NGX_EAGAIN
206 if (err == NGX_ECONNREFUSED
212 || err
[all...]
/tldk/app/nginx/src/event/modules/
H A Dngx_iocp_module.c241 ngx_err_t err; local
256 err = ngx_errno;
258 err = 0;
277 if (err) {
279 if (err != WAIT_TIMEOUT) {
280 ngx_log_error(NGX_LOG_ALERT, cycle->log, err,
289 ovlp->error = err;
301 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, err, "iocp event:%p", ev);
304 if (err == ERROR_NETNAME_DELETED /* the socket was closed */
305 || err
[all...]
/tldk/app/nginx/src/http/modules/
H A Dngx_http_random_index_module.c78 ngx_err_t err; local
120 err = ngx_errno;
122 if (err == NGX_ENOENT
123 || err == NGX_ENOTDIR
124 || err == NGX_ENAMETOOLONG)
129 } else if (err == NGX_EACCES) {
138 ngx_log_error(level, r->connection->log, err,
155 err = ngx_errno;
157 if (err != NGX_ENOMOREFILES) {
158 ngx_log_error(NGX_LOG_CRIT, r->connection->log, err,
[all...]

Completed in 22 milliseconds

12345