Fixed spelling in multiline C comments.
Ruslan Ermilov
10 years ago
13 | 13 |
|
14 | 14 |
|
15 | 15 |
/*
|
16 | |
* AAAA number of agruments
|
|
16 |
* AAAA number of arguments
|
17 | 17 |
* FF command flags
|
18 | 18 |
* TT command type, i.e. HTTP "location" or "server" command
|
19 | 19 |
*/
|
707 | 707 |
/*
|
708 | 708 |
* it seems that Linux-2.6.x OpenVZ sends events
|
709 | 709 |
* for closed shared listening sockets unless
|
710 | |
* the events was explicity deleted
|
|
710 |
* the events was explicitly deleted
|
711 | 711 |
*/
|
712 | 712 |
|
713 | 713 |
ngx_del_event(c->read, NGX_READ_EVENT, 0);
|
807 | 807 |
* reallocated if ctx->alloc is nonzero
|
808 | 808 |
*
|
809 | 809 |
* ctx->alloc - a size of data structure that is allocated at every level
|
810 | |
* and is initilialized by ctx->init_handler()
|
|
810 |
* and is initialized by ctx->init_handler()
|
811 | 811 |
*
|
812 | 812 |
* ctx->log - a log
|
813 | 813 |
*
|
458 | 458 |
struct sockaddr_in6 *sin6;
|
459 | 459 |
|
460 | 460 |
/*
|
461 | |
* prevent MSVC8 waring:
|
|
461 |
* prevent MSVC8 warning:
|
462 | 462 |
* potentially uninitialized local variable 'inaddr6' used
|
463 | 463 |
*/
|
464 | 464 |
ngx_memzero(inaddr6.s6_addr, sizeof(struct in6_addr));
|
32 | 32 |
#if !(NGX_WIN32)
|
33 | 33 |
|
34 | 34 |
/*
|
35 | |
* locatime() and localtime_r() are not Async-Signal-Safe functions, therefore,
|
|
35 |
* localtime() and localtime_r() are not Async-Signal-Safe functions, therefore,
|
36 | 36 |
* they must not be called by a signal handler, so we use the cached
|
37 | 37 |
* GMT offset value. Fortunately the value is changed only two times a year.
|
38 | 38 |
*/
|
|
307 | 307 |
/*
|
308 | 308 |
* The "days" should be adjusted to 1 only, however, some March 1st's go
|
309 | 309 |
* to previous year, so we adjust them to 2. This causes also shift of the
|
310 | |
* last Feburary days to next year, but we catch the case when "yday"
|
|
310 |
* last February days to next year, but we catch the case when "yday"
|
311 | 311 |
* becomes negative.
|
312 | 312 |
*/
|
313 | 313 |
|
444 | 444 |
|
445 | 445 |
/*
|
446 | 446 |
* when the file descriptor is closed, the epoll automatically deletes
|
447 | |
* it from its queue, so we do not need to delete explicity the event
|
|
447 |
* it from its queue, so we do not need to delete explicitly the event
|
448 | 448 |
* before the closing the file descriptor
|
449 | 449 |
*/
|
450 | 450 |
|
|
523 | 523 |
|
524 | 524 |
/*
|
525 | 525 |
* when the file descriptor is closed the epoll automatically deletes
|
526 | |
* it from its queue so we do not need to delete explicity the event
|
|
526 |
* it from its queue so we do not need to delete explicitly the event
|
527 | 527 |
* before the closing the file descriptor
|
528 | 528 |
*/
|
529 | 529 |
|
321 | 321 |
|
322 | 322 |
/*
|
323 | 323 |
* when the file descriptor is closed, the event port automatically
|
324 | |
* dissociates it from the port, so we do not need to dissociate explicity
|
|
324 |
* dissociates it from the port, so we do not need to dissociate explicitly
|
325 | 325 |
* the event before the closing the file descriptor
|
326 | 326 |
*/
|
327 | 327 |
|
376 | 376 |
|
377 | 377 |
/*
|
378 | 378 |
* when the file descriptor is closed the kqueue automatically deletes
|
379 | |
* its filters so we do not need to delete explicity the event
|
|
379 |
* its filters so we do not need to delete explicitly the event
|
380 | 380 |
* before the closing the file descriptor.
|
381 | 381 |
*/
|
382 | 382 |
|
488 | 488 |
|
489 | 489 |
/*
|
490 | 490 |
* Elliptic-Curve Diffie-Hellman parameters are either "named curves"
|
491 | |
* from RFC 4492 section 5.1.1, or explicitely described curves over
|
|
491 |
* from RFC 4492 section 5.1.1, or explicitly described curves over
|
492 | 492 |
* binary fields. OpenSSL only supports the "named curves", which provide
|
493 | 493 |
* maximum interoperability.
|
494 | 494 |
*/
|
125 | 125 |
* ELF/i386 is loaded at 0x08000000, 128M
|
126 | 126 |
* ELF/amd64 is loaded at 0x00400000, 4M
|
127 | 127 |
*
|
128 | |
* use a function address to substract the loading address
|
|
128 |
* use a function address to subtract the loading address
|
129 | 129 |
*/
|
130 | 130 |
|
131 | 131 |
sbrk_size = (size_t) sbrk(0) - ((uintptr_t) ngx_palloc & ~0x3FFFFF);
|
1195 | 1195 |
{
|
1196 | 1196 |
/*
|
1197 | 1197 |
* the r->request_body->buf can be reused for one request only,
|
1198 | |
* the subrequests should allocate their own temporay bufs
|
|
1198 |
* the subrequests should allocate their own temporary bufs
|
1199 | 1199 |
*/
|
1200 | 1200 |
|
1201 | 1201 |
u->output.free = ngx_alloc_chain_link(r->pool);
|
111 | 111 |
/*
|
112 | 112 |
* the $http_host, $http_user_agent, $http_referer, $http_via,
|
113 | 113 |
* and $http_x_forwarded_for variables may be handled by generic
|
114 | |
* ngx_http_variable_unknown_header_in(), but for perfomance reasons
|
|
114 |
* ngx_http_variable_unknown_header_in(), but for performance reasons
|
115 | 115 |
* they are handled using dedicated entries
|
116 | 116 |
*/
|
117 | 117 |
|
10 | 10 |
/*
|
11 | 11 |
* The threads implementation uses the rfork(RFPROC|RFTHREAD|RFMEM) syscall
|
12 | 12 |
* to create threads. All threads use the stacks of the same size mmap()ed
|
13 | |
* below the main stack. Thus the current thread id is determinated via
|
|
13 |
* below the main stack. Thus the current thread id is determined via
|
14 | 14 |
* the stack pointer value.
|
15 | 15 |
*
|
16 | 16 |
* The mutex implementation uses the ngx_atomic_cmp_set() operation
|
17 | 17 |
* to acquire a mutex and the SysV semaphore to wait on a mutex and to wake up
|
18 | 18 |
* the waiting threads. The light mutex does not use semaphore, so after
|
19 | 19 |
* spinning in the lock the thread calls sched_yield(). However the light
|
20 | |
* mutecies are intended to be used with the "trylock" operation only.
|
|
20 |
* mutexes are intended to be used with the "trylock" operation only.
|
21 | 21 |
* The SysV semop() is a cheap syscall, particularly if it has little sembuf's
|
22 | 22 |
* and does not use SEM_UNDO.
|
23 | 23 |
*
|
17 | 17 |
* as the 11 full 1460-bytes packets, then one incomplete 324-bytes packet,
|
18 | 18 |
* and then again the 11 full 1460-bytes packets.
|
19 | 19 |
*
|
20 | |
* Threfore we use the TCP_NOPUSH option (similar to Linux's TCP_CORK)
|
|
20 |
* Therefore we use the TCP_NOPUSH option (similar to Linux's TCP_CORK)
|
21 | 21 |
* to postpone the sending - it not only sends a header and the first part of
|
22 | 22 |
* the file in one packet, but also sends the file pages in the full packets.
|
23 | 23 |
*
|
14 | 14 |
* r0 = [r1];
|
15 | 15 |
* }
|
16 | 16 |
*
|
17 | |
* so "r0 == r2" means that the operation was successfull.
|
|
17 |
* so "r0 == r2" means that the operation was successful.
|
18 | 18 |
*
|
19 | 19 |
*
|
20 | 20 |
* The "r" means the general register.
|
20 | 20 |
* from argv[0] for our process title.
|
21 | 21 |
*
|
22 | 22 |
* The Solaris's standard /bin/ps does not show the changed process title.
|
23 | |
* You have to use "/usr/ucb/ps -w" instead. Besides, the UCB ps dos not
|
|
23 |
* You have to use "/usr/ucb/ps -w" instead. Besides, the UCB ps does not
|
24 | 24 |
* show a new title if its length less than the origin command line length.
|
25 | 25 |
* To avoid it we append to a new title the origin command line in the
|
26 | 26 |
* parenthesis.
|
19 | 19 |
#define _CRT_SECURE_NO_WARNINGS
|
20 | 20 |
|
21 | 21 |
/*
|
22 | |
* we need to include <windows.h> explicity before <winsock2.h> because
|
|
22 |
* we need to include <windows.h> explicitly before <winsock2.h> because
|
23 | 23 |
* the warning 4201 is enabled in <windows.h>
|
24 | 24 |
*/
|
25 | 25 |
#include <windows.h>
|