Klaus Demo nginx / 4624ae7
nginx-0.0.11-2004-09-21-19:47:05 import Igor Sysoev 17 years ago
6 changed file(s) with 32 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
1919
2020 *)
2121 # Solaris 7's /usr/ccs/bin/as does not support "-pipe"
22 ;;
23
24 esac
25
26
27 case $PLATFORM in
28
29 *:sun4u)
30 CFLAGS="$CFLAGS -mcpu=v9"
31 ;;
32
33 *)
2234 ;;
2335
2436 esac
7878 ngx_cached_http_time.len = sizeof("Mon, 28 Sep 1970 06:00:00 GMT") - 1;
7979 ngx_cached_http_log_time.len = sizeof("28/Sep/1970:12:00:00 +0600") - 1;
8080
81 #if (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)
81 #if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE))
8282 ngx_cached_time = &cached_time[0];
8383 #endif
8484
131131 slot++;
132132 }
133133
134 #if (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)
134 #if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE))
135135 ngx_cached_time = &cached_time[slot];
136136 #endif
137137
439439 * Besides we free this memory as soon as the gzipping will complete
440440 * and do not wait while a whole response will be sent to a client.
441441 *
442 * 8K is for zlib deflate_state. It takes 5816 bytes on x86
443 * and 5920 bytes on amd64.
442 * 8K is for zlib deflate_state, it takes
443 * * 5816 bytes on x86 and sparc64 (32-bit mode)
444 * * 5920 bytes on amd64 and sparc64
444445 */
445446
446447 ctx->allocated = 8192 + (1 << (wbits + 2)) + (1 << (memlevel + 9));
802803 if (alloc % 512 != 0) {
803804
804805 /*
805 * The zlib deflate_state allocation, it takes 5816 bytes on x86
806 * and 5920 bytes on amd64.
807 * We allocate 8K.
806 * the zlib deflate_state allocation, it takes about 6K, we allocate 8K
808807 */
809808
810809 alloc = (alloc + ngx_pagesize - 1) & ~(ngx_pagesize - 1);
217217
218218
219219 typedef struct {
220 ngx_http_request_t *request;
221 ngx_array_t large_buffers;
222 ngx_uint_t pipeline; /* unsigned pipeline:1; */
220 ngx_http_request_t *request;
221
222 ngx_buf_t **busy;
223 ngx_uint_t nbusy;
224
225 ngx_buf_t **free;
226 ngx_uint_t nfree;
227
228 ngx_uint_t pipeline; /* unsigned pipeline:1; */
223229 } ngx_http_connection_t;
224230
225231
8585
8686 __asm__ volatile (
8787
88 "casa [%1]ASI_P, %2, %0"
88 "casa [%1] 0x80, %2, %0"
8989
9090 : "+r" (res) : "r" (value), "r" (old));
9191
111111
112112 __asm__ volatile (
113113
114 "casa [%1]ASI_P, %2, %0"
114 "casa [%1] 0x80, %2, %0"
115115
116116 : "+r" (res) : "r" (lock), "r" (old));
117117
123123 typedef volatile uint32_t ngx_atomic_t;
124124
125125 /* STUB */
126 #define ngx_atomic_inc(x) (*(x))++;
127 #define ngx_atomic_dec(x) (*(x))--;
126 #define ngx_atomic_inc(x) ++(*(x));
127 #define ngx_atomic_dec(x) --(*(x));
128128 #define ngx_atomic_cmp_set(lock, old, set) 1
129129 /**/
130130
1717 int fd;
1818 u_char *prev;
1919 off_t fprev, sprev, send, aligned;
20 size_t size, sent;
21 ssize_t n;
20 ssize_t size, sent, n;
2221 ngx_int_t eintr, complete;
2322 ngx_err_t err;
2423 sendfilevec_t *sfv, sfvs[NGX_SENDFILEVECS];