Mercurial > hg > nginx-vendor-0-6
annotate src/core/ngx_queue.h @ 384:09b703ae3ba5 NGINX_0_6_36
nginx 0.6.36
*) Change: now the "Invalid argument" error returned by
setsockopt(TCP_NODELAY) on Solaris, is ignored.
*) Change: now POSTs without "Content-Length" header line are allowed.
*) Feature: the "try_files" directive.
*) Feature: the --with-pcre option in the configure.
*) Feature: the "if_modified_since" directive.
*) Feature: the "$cookie_..." variables.
*) Feature: the "$arg_..." variables.
*) Bugfix: compatibility with Tru64 UNIX.
Thanks to Dustin Marquess.
*) Bugfix: a "ssl_engine" directive did not use a SSL-accelerator for
asymmetric ciphers.
Thanks to Marcin Gozdalik.
*) Bugfix: in a redirect rewrite directive original arguments were
concatenated with new arguments by a "?" rather than an "&";
the bug had appeared in 0.1.18.
Thanks to Maxim Dounin.
*) Bugfix: nginx could not be built on AIX.
*) Bugfix: a double response might be returned if the epoll or rtsig
methods are used and a redirect was returned to a request with
body.
Thanks to Eden Li.
*) Bugfix: a segmentation fault might occur in worker process if
"resolver" directive was used in SMTP proxy.
*) Bugfix: fastcgi_store stored files not always.
*) Bugfix: nginx did not process a FastCGI server response, if the
server send too many messages to stderr before response.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 02 Apr 2009 00:00:00 +0400 |
parents | 9121a0a91f47 |
children |
rev | line source |
---|---|
348 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #include <ngx_config.h> | |
8 #include <ngx_core.h> | |
9 | |
10 | |
11 #ifndef _NGX_QUEUE_H_INCLUDED_ | |
12 #define _NGX_QUEUE_H_INCLUDED_ | |
13 | |
14 | |
15 typedef struct ngx_queue_s ngx_queue_t; | |
16 | |
17 struct ngx_queue_s { | |
18 ngx_queue_t *prev; | |
19 ngx_queue_t *next; | |
20 }; | |
21 | |
22 | |
354 | 23 #define ngx_queue_init(q) \ |
24 (q)->prev = q; \ | |
358 | 25 (q)->next = q |
354 | 26 |
27 | |
348 | 28 #define ngx_queue_empty(h) \ |
29 (h == (h)->prev) | |
30 | |
31 | |
32 #define ngx_queue_insert_head(h, x) \ | |
33 (x)->next = (h)->next; \ | |
34 (x)->next->prev = x; \ | |
35 (x)->prev = h; \ | |
36 (h)->next = x | |
37 | |
38 | |
39 #define ngx_queue_head(h) \ | |
40 (h)->next | |
41 | |
42 | |
43 #define ngx_queue_last(h) \ | |
44 (h)->prev | |
45 | |
46 | |
47 #if (NGX_DEBUG) | |
48 | |
49 #define ngx_queue_remove(x) \ | |
50 (x)->next->prev = (x)->prev; \ | |
51 (x)->prev->next = (x)->next; \ | |
52 (x)->prev = NULL; \ | |
53 (x)->next = NULL | |
54 | |
55 #else | |
56 | |
57 #define ngx_queue_remove(x) \ | |
58 (x)->next->prev = (x)->prev; \ | |
59 (x)->prev->next = (x)->next | |
60 | |
61 #endif | |
62 | |
63 | |
64 #define ngx_queue_data(q, type, link) \ | |
65 (type *) ((u_char *) q - offsetof(type, link)) | |
66 | |
67 | |
68 #endif /* _NGX_QUEUE_H_INCLUDED_ */ |