comparison src/os/unix/ngx_errno.h @ 10:46833bd150cb NGINX_0_1_5

nginx 0.1.5 *) Bugfix: on Solaris and Linux there may be too many "recvmsg() returned not enough data" alerts. *) Bugfix: there were the "writev() failed (22: Invalid argument)" errors on Solaris in proxy mode without sendfile. On other platforms that do not support sendfile at all the process got caught in an endless loop. *) Bugfix: segmentation fault on Solaris in proxy mode and using sendfile. *) Bugfix: segmentation fault on Solaris. *) Bugfix: on-line upgrade did not work on Linux. *) Bugfix: the ngx_http_autoindex_module module did not escape the spaces, the quotes, and the percent signs in the directory listing. *) Change: the decrease of the copy operations. *) Feature: the userid_p3p directive.
author Igor Sysoev <http://sysoev.ru>
date Thu, 11 Nov 2004 00:00:00 +0300
parents 80ba094c6b3e
children 74b1868dd3cd
comparison
equal deleted inserted replaced
9:77eee314ddbd 10:46833bd150cb
45 #define ngx_set_socket_errno(err) errno = err 45 #define ngx_set_socket_errno(err) errno = err
46 46
47 47
48 #if (HAVE_STRERROR_R || HAVE_GNU_STRERROR_R) 48 #if (HAVE_STRERROR_R || HAVE_GNU_STRERROR_R)
49 49
50 ngx_int_t ngx_strerror_r(int err, char *errstr, size_t size); 50 u_char *ngx_strerror_r(int err, u_char *errstr, size_t size);
51 51
52 #else 52 #else
53 53
54 /* Solaris has threads-safe strerror() */ 54 /* Solaris has threads-safe strerror() */
55 55
56 #define ngx_strerror_r(err, errstr, size) \ 56 #define ngx_strerror_r(err, errstr, size) \
57 (char *) ngx_cpystrn(errstr, strerror(err), size) - (errstr) 57 ngx_cpystrn(errstr, (u_char *) strerror(err), size)
58 58
59 #endif 59 #endif
60 60
61 61
62 #endif /* _NGX_ERRNO_H_INCLUDED_ */ 62 #endif /* _NGX_ERRNO_H_INCLUDED_ */