Mercurial > hg > nginx-vendor-0-7
annotate src/os/unix/ngx_errno.c @ 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 #include <ngx_config.h> | |
8 #include <ngx_core.h> | |
9 | |
10 | |
18 | 11 #if (NGX_HAVE_STRERROR_R) |
0 | 12 |
10 | 13 u_char *ngx_strerror_r(int err, u_char *errstr, size_t size) |
0 | 14 { |
15 if (size == 0) { | |
16 return 0; | |
17 } | |
18 | |
19 errstr[0] = '\0'; | |
20 | |
10 | 21 strerror_r(err, (char *) errstr, size); |
0 | 22 |
10 | 23 while (*errstr && size) { |
24 errstr++; | |
25 size--; | |
0 | 26 } |
27 | |
10 | 28 return errstr; |
0 | 29 } |
30 | |
18 | 31 #elif (NGX_HAVE_GNU_STRERROR_R) |
0 | 32 |
33 /* Linux strerror_r() */ | |
34 | |
10 | 35 u_char *ngx_strerror_r(int err, u_char *errstr, size_t size) |
0 | 36 { |
37 char *str; | |
38 size_t len; | |
39 | |
40 if (size == 0) { | |
41 return 0; | |
42 } | |
43 | |
44 errstr[0] = '\0'; | |
45 | |
10 | 46 str = strerror_r(err, (char *) errstr, size); |
0 | 47 |
10 | 48 if (str != (char *) errstr) { |
49 return ngx_cpystrn(errstr, (u_char *) str, size); | |
0 | 50 } |
51 | |
10 | 52 while (*errstr && size) { |
53 errstr++; | |
54 size--; | |
0 | 55 } |
56 | |
10 | 57 return errstr; |
0 | 58 } |
59 | |
60 #endif |