Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_errno.h @ 366:babd3d9efb62 NGINX_0_6_27
nginx 0.6.27
*) Change: now by default the rtsig method is not built on
Linux 2.6.18+.
*) Change: now a request method is not changed while redirection to a
named location via an "error_page" directive.
*) Feature: the "resolver" and "resolver_timeout" directives in SMTP
proxy.
*) Feature: the "post_action" directive supports named locations.
*) Bugfix: a segmentation fault occurred in worker process, if a
request was redirected from proxy, FastCGI, or memcached location to
static named locations.
*) Bugfix: browsers did not repeat SSL handshake if there is no valid
client certificate in first handshake.
Thanks to Alexander V. Inyukhin.
*) Bugfix: if response code 495-497 was redirected via an "error_page"
directive without code change, then nginx tried to allocate too many
memory.
*) Bugfix: memory leak in long-lived non buffered connections.
*) Bugfix: memory leak in resolver.
*) Bugfix: a segmentation fault occurred in worker process, if a
request was redirected from proxy, FastCGI, or memcached location to
static named locations.
*) Bugfix: in the $proxy_host and $proxy_port variables caching.
Thanks to Sergey Bochenkov.
*) Bugfix: a "proxy_pass" directive with variables used incorrectly the
same port as in another "proxy_pass" directive with the same host
name and without variables.
Thanks to Sergey Bochenkov.
*) Bugfix: an alert "sendmsg() failed (9: Bad file descriptor)" on some
64-bit platforms while reconfiguration.
*) Bugfix: a segmentation fault occurred in worker process, if empty
stub block was used second time in SSI.
*) Bugfix: in copying URI part contained escaped symbols into arguments.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 12 Mar 2008 00:00:00 +0300 |
parents | a39aab45a53f |
children | dac47e9ef0d5 |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_ERRNO_H_INCLUDED_ | |
8 #define _NGX_ERRNO_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 typedef int ngx_err_t; | |
16 | |
186 | 17 #define NGX_EPERM EPERM |
0 | 18 #define NGX_ENOENT ENOENT |
19 #define NGX_ESRCH ESRCH | |
20 #define NGX_EINTR EINTR | |
21 #define NGX_ECHILD ECHILD | |
22 #define NGX_ENOMEM ENOMEM | |
23 #define NGX_EACCES EACCES | |
24 #define NGX_EBUSY EBUSY | |
25 #define NGX_EEXIST EEXIST | |
26 #define NGX_ENOTDIR ENOTDIR | |
212 | 27 #define NGX_EISDIR EISDIR |
0 | 28 #define NGX_EINVAL EINVAL |
182 | 29 #define NGX_ENOSPC ENOSPC |
0 | 30 #define NGX_EPIPE EPIPE |
50 | 31 #define NGX_EAGAIN EAGAIN |
0 | 32 #define NGX_EINPROGRESS EINPROGRESS |
33 #define NGX_EADDRINUSE EADDRINUSE | |
34 #define NGX_ECONNABORTED ECONNABORTED | |
35 #define NGX_ECONNRESET ECONNRESET | |
36 #define NGX_ENOTCONN ENOTCONN | |
37 #define NGX_ETIMEDOUT ETIMEDOUT | |
38 #define NGX_ECONNREFUSED ECONNREFUSED | |
92 | 39 #define NGX_ENAMETOOLONG ENAMETOOLONG |
364 | 40 #define NGX_ENETDOWN ENETDOWN |
41 #define NGX_ENETUNREACH ENETUNREACH | |
42 #define NGX_EHOSTDOWN EHOSTDOWN | |
0 | 43 #define NGX_EHOSTUNREACH EHOSTUNREACH |
16 | 44 #define NGX_ENOSYS ENOSYS |
0 | 45 #define NGX_ECANCELED ECANCELED |
46 #define NGX_ENOMOREFILES 0 | |
47 | |
48 | |
49 | |
50 #define ngx_errno errno | |
51 #define ngx_socket_errno errno | |
52 #define ngx_set_errno(err) errno = err | |
53 #define ngx_set_socket_errno(err) errno = err | |
54 | |
55 | |
18 | 56 #if (NGX_HAVE_STRERROR_R || NGX_HAVE_GNU_STRERROR_R) |
0 | 57 |
10 | 58 u_char *ngx_strerror_r(int err, u_char *errstr, size_t size); |
0 | 59 |
60 #else | |
61 | |
66 | 62 /* Solaris and Tru64 UNIX have thread-safe strerror() */ |
6 | 63 |
0 | 64 #define ngx_strerror_r(err, errstr, size) \ |
50 | 65 ngx_cpystrn(errstr, (u_char *) strerror(err), size) |
0 | 66 |
67 #endif | |
68 | |
69 | |
70 #endif /* _NGX_ERRNO_H_INCLUDED_ */ |