Mercurial > hg > nginx-vendor-current
annotate src/core/ngx_queue.h @ 694:88a1b4797f2e NGINX_1_3_10
nginx 1.3.10
*) Change: domain names specified in configuration file are now resolved
to IPv6 addresses as well as IPv4 ones.
*) Change: now if the "include" directive with mask is used on Unix
systems, included files are sorted in alphabetical order.
*) Change: the "add_header" directive adds headers to 201 responses.
*) Feature: the "geo" directive now supports IPv6 addresses in CIDR
notation.
*) Feature: the "flush" and "gzip" parameters of the "access_log"
directive.
*) Feature: variables support in the "auth_basic" directive.
*) Bugfix: nginx could not be built with the ngx_http_perl_module in
some cases.
*) Bugfix: a segmentation fault might occur in a worker process if the
ngx_http_xslt_module was used.
*) Bugfix: nginx could not be built on MacOSX in some cases.
Thanks to Piotr Sikora.
*) Bugfix: the "limit_rate" directive with high rates might result in
truncated responses on 32-bit platforms.
Thanks to Alexey Antropov.
*) Bugfix: a segmentation fault might occur in a worker process if the
"if" directive was used.
Thanks to Piotr Sikora.
*) Bugfix: a "100 Continue" response was issued with "413 Request Entity
Too Large" responses.
*) Bugfix: the "image_filter", "image_filter_jpeg_quality" and
"image_filter_sharpen" directives might be inherited incorrectly.
Thanks to Ian Babrou.
*) Bugfix: "crypt_r() failed" errors might appear if the "auth_basic"
directive was used on Linux.
*) Bugfix: in backup servers handling.
Thanks to Thomas Chen.
*) Bugfix: proxied HEAD requests might return incorrect response if the
"gzip" directive was used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 25 Dec 2012 00:00:00 +0400 |
parents | d0f7a625f27c |
children |
rev | line source |
---|---|
348 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
660 | 4 * Copyright (C) Nginx, Inc. |
348 | 5 */ |
6 | |
7 | |
8 #include <ngx_config.h> | |
9 #include <ngx_core.h> | |
10 | |
11 | |
12 #ifndef _NGX_QUEUE_H_INCLUDED_ | |
13 #define _NGX_QUEUE_H_INCLUDED_ | |
14 | |
15 | |
16 typedef struct ngx_queue_s ngx_queue_t; | |
17 | |
18 struct ngx_queue_s { | |
19 ngx_queue_t *prev; | |
20 ngx_queue_t *next; | |
21 }; | |
22 | |
23 | |
354 | 24 #define ngx_queue_init(q) \ |
25 (q)->prev = q; \ | |
358 | 26 (q)->next = q |
354 | 27 |
28 | |
348 | 29 #define ngx_queue_empty(h) \ |
30 (h == (h)->prev) | |
31 | |
32 | |
33 #define ngx_queue_insert_head(h, x) \ | |
34 (x)->next = (h)->next; \ | |
35 (x)->next->prev = x; \ | |
36 (x)->prev = h; \ | |
37 (h)->next = x | |
38 | |
39 | |
378 | 40 #define ngx_queue_insert_after ngx_queue_insert_head |
41 | |
42 | |
43 #define ngx_queue_insert_tail(h, x) \ | |
44 (x)->prev = (h)->prev; \ | |
45 (x)->prev->next = x; \ | |
46 (x)->next = h; \ | |
47 (h)->prev = x | |
48 | |
49 | |
348 | 50 #define ngx_queue_head(h) \ |
51 (h)->next | |
52 | |
53 | |
54 #define ngx_queue_last(h) \ | |
55 (h)->prev | |
56 | |
57 | |
378 | 58 #define ngx_queue_sentinel(h) \ |
59 (h) | |
60 | |
61 | |
62 #define ngx_queue_next(q) \ | |
63 (q)->next | |
64 | |
65 | |
66 #define ngx_queue_prev(q) \ | |
67 (q)->prev | |
68 | |
69 | |
348 | 70 #if (NGX_DEBUG) |
71 | |
72 #define ngx_queue_remove(x) \ | |
73 (x)->next->prev = (x)->prev; \ | |
74 (x)->prev->next = (x)->next; \ | |
75 (x)->prev = NULL; \ | |
76 (x)->next = NULL | |
77 | |
78 #else | |
79 | |
80 #define ngx_queue_remove(x) \ | |
81 (x)->next->prev = (x)->prev; \ | |
82 (x)->prev->next = (x)->next | |
83 | |
84 #endif | |
85 | |
86 | |
378 | 87 #define ngx_queue_split(h, q, n) \ |
88 (n)->prev = (h)->prev; \ | |
89 (n)->prev->next = n; \ | |
90 (n)->next = q; \ | |
91 (h)->prev = (q)->prev; \ | |
92 (h)->prev->next = h; \ | |
93 (q)->prev = n; | |
94 | |
95 | |
96 #define ngx_queue_add(h, n) \ | |
97 (h)->prev->next = (n)->next; \ | |
98 (n)->next->prev = (h)->prev; \ | |
99 (h)->prev = (n)->prev; \ | |
100 (h)->prev->next = h; | |
101 | |
102 | |
348 | 103 #define ngx_queue_data(q, type, link) \ |
104 (type *) ((u_char *) q - offsetof(type, link)) | |
105 | |
106 | |
378 | 107 ngx_queue_t *ngx_queue_middle(ngx_queue_t *queue); |
108 void ngx_queue_sort(ngx_queue_t *queue, | |
109 ngx_int_t (*cmp)(const ngx_queue_t *, const ngx_queue_t *)); | |
110 | |
111 | |
348 | 112 #endif /* _NGX_QUEUE_H_INCLUDED_ */ |