Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_errno.h @ 112:408f195b3482 NGINX_0_3_3
nginx 0.3.3
*) Change: the "bl" and "af" parameters of the "listen" directive was
renamed to the "backlog" and "accept_filter".
*) Feature: the "rcvbuf" and "sndbuf" parameters of the "listen"
directive.
*) Change: the "$msec" log parameter does not require now the
additional the gettimeofday() system call.
*) Feature: the -t switch now tests the "listen" directives.
*) Bugfix: if the invalid address was specified in the "listen"
directive, then after the -HUP signal nginx left an open socket in
the CLOSED state.
*) Bugfix: the mime type may be incorrectly set to default value for
index file with variable in the name; bug appeared in 0.3.0.
*) Feature: the "timer_resolution" directive.
*) Feature: the millisecond "$upstream_response_time" log parameter.
*) Bugfix: a temporary file with client request body now is removed
just after the response header was transferred to a client.
*) Bugfix: OpenSSL 0.9.6 compatibility.
*) Bugfix: the SSL certificate and key file paths could not be relative.
*) Bugfix: the "ssl_prefer_server_ciphers" directive did not work in
the ngx_imap_ssl_module.
*) Bugfix: the "ssl_protocols" directive allowed to specify the single
protocol only.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 19 Oct 2005 00:00:00 +0400 |
parents | 45945fa8b8ba |
children | 13710a1813ad |
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 | |
17 #define NGX_ENOENT ENOENT | |
18 #define NGX_ESRCH ESRCH | |
19 #define NGX_EINTR EINTR | |
20 #define NGX_ECHILD ECHILD | |
21 #define NGX_ENOMEM ENOMEM | |
22 #define NGX_EACCES EACCES | |
23 #define NGX_EBUSY EBUSY | |
24 #define NGX_EEXIST EEXIST | |
25 #define NGX_ENOTDIR ENOTDIR | |
26 #define NGX_EINVAL EINVAL | |
27 #define NGX_EPIPE EPIPE | |
50 | 28 #define NGX_EAGAIN EAGAIN |
0 | 29 #define NGX_EINPROGRESS EINPROGRESS |
30 #define NGX_EADDRINUSE EADDRINUSE | |
31 #define NGX_ECONNABORTED ECONNABORTED | |
32 #define NGX_ECONNRESET ECONNRESET | |
33 #define NGX_ENOTCONN ENOTCONN | |
34 #define NGX_ETIMEDOUT ETIMEDOUT | |
35 #define NGX_ECONNREFUSED ECONNREFUSED | |
92 | 36 #define NGX_ENAMETOOLONG ENAMETOOLONG |
0 | 37 #define NGX_EHOSTUNREACH EHOSTUNREACH |
16 | 38 #define NGX_ENOSYS ENOSYS |
0 | 39 #define NGX_ECANCELED ECANCELED |
40 #define NGX_ENOMOREFILES 0 | |
41 | |
42 | |
43 | |
44 #define ngx_errno errno | |
45 #define ngx_socket_errno errno | |
46 #define ngx_set_errno(err) errno = err | |
47 #define ngx_set_socket_errno(err) errno = err | |
48 | |
49 | |
18 | 50 #if (NGX_HAVE_STRERROR_R || NGX_HAVE_GNU_STRERROR_R) |
0 | 51 |
10 | 52 u_char *ngx_strerror_r(int err, u_char *errstr, size_t size); |
0 | 53 |
54 #else | |
55 | |
66 | 56 /* Solaris and Tru64 UNIX have thread-safe strerror() */ |
6 | 57 |
0 | 58 #define ngx_strerror_r(err, errstr, size) \ |
50 | 59 ngx_cpystrn(errstr, (u_char *) strerror(err), size) |
0 | 60 |
61 #endif | |
62 | |
63 | |
64 #endif /* _NGX_ERRNO_H_INCLUDED_ */ |