Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_time.h @ 676:bfa81a0490a2 NGINX_1_3_1
nginx 1.3.1
*) Security: now nginx/Windows ignores trailing dot in URI path
component, and does not allow URIs with ":$" in it.
Thanks to Vladimir Kochetkov, Positive Research Center.
*) Feature: the "proxy_pass", "fastcgi_pass", "scgi_pass", "uwsgi_pass"
directives, and the "server" directive inside the "upstream" block,
now support IPv6 addresses.
*) Feature: the "resolver" directive now support IPv6 addresses and an
optional port specification.
*) Feature: the "least_conn" directive inside the "upstream" block.
*) Feature: it is now possible to specify a weight for servers while
using the "ip_hash" directive.
*) Bugfix: a segmentation fault might occur in a worker process if the
"image_filter" directive was used; the bug had appeared in 1.3.0.
*) Bugfix: nginx could not be built with ngx_cpp_test_module; the bug
had appeared in 1.1.12.
*) Bugfix: access to variables from SSI and embedded perl module might
not work after reconfiguration.
Thanks to Yichun Zhang.
*) Bugfix: in the ngx_http_xslt_filter_module.
Thanks to Kuramoto Eiji.
*) Bugfix: memory leak if $geoip_org variable was used.
Thanks to Denis F. Latypoff.
*) Bugfix: in the "proxy_cookie_domain" and "proxy_cookie_path"
directives.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 05 Jun 2012 00:00:00 +0400 |
parents | d0f7a625f27c |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
660 | 4 * Copyright (C) Nginx, Inc. |
0 | 5 */ |
6 | |
7 | |
8 #ifndef _NGX_TIME_H_INCLUDED_ | |
9 #define _NGX_TIME_H_INCLUDED_ | |
10 | |
11 | |
12 #include <ngx_config.h> | |
13 #include <ngx_core.h> | |
14 | |
15 | |
110 | 16 typedef ngx_rbtree_key_t ngx_msec_t; |
17 typedef ngx_rbtree_key_int_t ngx_msec_int_t; | |
0 | 18 |
110 | 19 typedef struct tm ngx_tm_t; |
0 | 20 |
110 | 21 #define ngx_tm_sec tm_sec |
22 #define ngx_tm_min tm_min | |
23 #define ngx_tm_hour tm_hour | |
24 #define ngx_tm_mday tm_mday | |
25 #define ngx_tm_mon tm_mon | |
26 #define ngx_tm_year tm_year | |
27 #define ngx_tm_wday tm_wday | |
28 #define ngx_tm_isdst tm_isdst | |
0 | 29 |
110 | 30 #define ngx_tm_sec_t int |
31 #define ngx_tm_min_t int | |
32 #define ngx_tm_hour_t int | |
33 #define ngx_tm_mday_t int | |
34 #define ngx_tm_mon_t int | |
35 #define ngx_tm_year_t int | |
36 #define ngx_tm_wday_t int | |
0 | 37 |
38 | |
18 | 39 #if (NGX_HAVE_GMTOFF) |
110 | 40 #define ngx_tm_gmtoff tm_gmtoff |
41 #define ngx_tm_zone tm_zone | |
0 | 42 #endif |
43 | |
44 | |
4 | 45 #if (NGX_SOLARIS) |
46 | |
0 | 47 #define ngx_timezone(isdst) (- (isdst ? altzone : timezone) / 60) |
4 | 48 |
49 #else | |
50 | |
51 #define ngx_timezone(isdst) (- (isdst ? timezone + 3600 : timezone) / 60) | |
52 | |
0 | 53 #endif |
54 | |
55 | |
404 | 56 void ngx_timezone_update(void); |
112 | 57 void ngx_localtime(time_t s, ngx_tm_t *tm); |
58 void ngx_libc_localtime(time_t s, struct tm *tm); | |
59 void ngx_libc_gmtime(time_t s, struct tm *tm); | |
0 | 60 |
66 | 61 #define ngx_gettimeofday(tp) (void) gettimeofday(tp, NULL); |
62 #define ngx_msleep(ms) (void) usleep(ms * 1000) | |
63 #define ngx_sleep(s) (void) sleep(s) | |
0 | 64 |
65 | |
66 #endif /* _NGX_TIME_H_INCLUDED_ */ |