Mercurial > hg > nginx-vendor-0-8
annotate src/os/unix/ngx_errno.h @ 22:8b6db3bda591 NGINX_0_1_11
nginx 0.1.11
*) Feature: the worker_priority directive.
*) Change: both tcp_nopush and tcp_nodelay directives affect the
transferred response.
*) Bugfix: nginx did not call initgroups().
Thanks to Andrew Sitnikov and Andrei Nigmatulin.
*) Change: now the ngx_http_autoindex_module shows the file size in the
bytes.
*) Bugfix: the ngx_http_autoindex_module returned the 500 error if the
broken symlink was in a directory.
*) Bugfix: the files bigger than 4G could not be transferred using
sendfile.
*) Bugfix: if the backend was resolved to several backends and there
was an error while the response waiting then process may got caught
in an endless loop.
*) Bugfix: the worker process may exit with the "unknown cycle" message
when the /dev/poll method was used.
*) Bugfix: "close() channel failed" errors.
*) Bugfix: the autodetection of the "nobody" and "nogroup" groups.
*) Bugfix: the send_lowat directive did not work on Linux.
*) Bugfix: the segmentation fault occurred if there was no events
section in configuration.
*) Bugfix: nginx could not be built on OpenBSD.
*) Bugfix: the double slashes in "://" in the URI were converted to
":/".
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 02 Dec 2004 00:00:00 +0300 |
parents | 6f8b0dc0f8dd |
children | 72eb30262aac |
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 | |
28 #define NGX_EAGAIN EWOULDBLOCK | |
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 | |
36 #define NGX_EHOSTUNREACH EHOSTUNREACH | |
16 | 37 #define NGX_ENOSYS ENOSYS |
0 | 38 #define NGX_ECANCELED ECANCELED |
39 #define NGX_ENOMOREFILES 0 | |
40 | |
41 | |
42 | |
43 #define ngx_errno errno | |
44 #define ngx_socket_errno errno | |
45 #define ngx_set_errno(err) errno = err | |
46 #define ngx_set_socket_errno(err) errno = err | |
47 | |
48 | |
18 | 49 #if (NGX_HAVE_STRERROR_R || NGX_HAVE_GNU_STRERROR_R) |
0 | 50 |
10 | 51 u_char *ngx_strerror_r(int err, u_char *errstr, size_t size); |
0 | 52 |
53 #else | |
54 | |
6 | 55 /* Solaris has threads-safe strerror() */ |
56 | |
0 | 57 #define ngx_strerror_r(err, errstr, size) \ |
10 | 58 ngx_cpystrn(errstr, (u_char *) strerror(err), size) |
0 | 59 |
60 #endif | |
61 | |
62 | |
63 #endif /* _NGX_ERRNO_H_INCLUDED_ */ |