Mercurial > hg > nginx
diff src/core/ngx_log.h @ 461:a88a3e4e158f release-0.1.5
nginx-0.1.5-RELEASE import
*) 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 <igor@sysoev.ru> |
---|---|
date | Thu, 11 Nov 2004 14:07:14 +0000 |
parents | 295d97d70c69 |
children | 621229427cba |
line wrap: on
line diff
--- a/src/core/ngx_log.h Tue Oct 26 06:27:24 2004 +0000 +++ b/src/core/ngx_log.h Thu Nov 11 14:07:14 2004 +0000 @@ -40,7 +40,7 @@ #define NGX_LOG_DEBUG_ALL 0x7ffffff0 -typedef size_t (*ngx_log_handler_pt) (void *ctx, char *buf, size_t len); +typedef u_char *(*ngx_log_handler_pt) (void *ctx, u_char *buf, size_t len); struct ngx_log_s { @@ -50,7 +50,8 @@ ngx_log_handler_pt handler; }; -#define MAX_ERROR_STR 2048 + +#define NGX_MAX_ERROR_STR 2048 /*********************************/ @@ -88,7 +89,6 @@ void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, const char *fmt, va_list args); void ngx_log_debug_core(ngx_log_t *log, ngx_err_t err, const char *fmt, ...); -void ngx_assert_core(ngx_log_t *log, const char *fmt, ...); #endif /* VARIADIC MACROS */ @@ -195,10 +195,7 @@ #define ngx_log_alloc_log(pool, log) ngx_palloc(pool, log, sizeof(ngx_log_t)) #define ngx_log_copy_log(new, old) ngx_memcpy(new, old, sizeof(ngx_log_t)) -ngx_log_t *ngx_log_init_stderr(); -#if 0 -ngx_int_t ngx_log_init_error_log(); -#endif +ngx_log_t *ngx_log_init(); ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args); char *ngx_set_error_log_levels(ngx_conf_t *cf, ngx_log_t *log);