Klaus Demo nginx / 47a04aa
Fixed spelling in multiline C comments. Ruslan Ermilov 10 years ago
19 changed file(s) with 22 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
1313
1414
1515 /*
16 * AAAA number of agruments
16 * AAAA number of arguments
1717 * FF command flags
1818 * TT command type, i.e. HTTP "location" or "server" command
1919 */
707707 /*
708708 * it seems that Linux-2.6.x OpenVZ sends events
709709 * for closed shared listening sockets unless
710 * the events was explicity deleted
710 * the events was explicitly deleted
711711 */
712712
713713 ngx_del_event(c->read, NGX_READ_EVENT, 0);
807807 * reallocated if ctx->alloc is nonzero
808808 *
809809 * 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()
811811 *
812812 * ctx->log - a log
813813 *
458458 struct sockaddr_in6 *sin6;
459459
460460 /*
461 * prevent MSVC8 waring:
461 * prevent MSVC8 warning:
462462 * potentially uninitialized local variable 'inaddr6' used
463463 */
464464 ngx_memzero(inaddr6.s6_addr, sizeof(struct in6_addr));
3232 #if !(NGX_WIN32)
3333
3434 /*
35 * locatime() and localtime_r() are not Async-Signal-Safe functions, therefore,
35 * localtime() and localtime_r() are not Async-Signal-Safe functions, therefore,
3636 * they must not be called by a signal handler, so we use the cached
3737 * GMT offset value. Fortunately the value is changed only two times a year.
3838 */
307307 /*
308308 * The "days" should be adjusted to 1 only, however, some March 1st's go
309309 * 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"
311311 * becomes negative.
312312 */
313313
444444
445445 /*
446446 * 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
448448 * before the closing the file descriptor
449449 */
450450
523523
524524 /*
525525 * 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
527527 * before the closing the file descriptor
528528 */
529529
321321
322322 /*
323323 * 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
325325 * the event before the closing the file descriptor
326326 */
327327
376376
377377 /*
378378 * 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
380380 * before the closing the file descriptor.
381381 */
382382
488488
489489 /*
490490 * 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
492492 * binary fields. OpenSSL only supports the "named curves", which provide
493493 * maximum interoperability.
494494 */
125125 * ELF/i386 is loaded at 0x08000000, 128M
126126 * ELF/amd64 is loaded at 0x00400000, 4M
127127 *
128 * use a function address to substract the loading address
128 * use a function address to subtract the loading address
129129 */
130130
131131 sbrk_size = (size_t) sbrk(0) - ((uintptr_t) ngx_palloc & ~0x3FFFFF);
14161416
14171417 /*
14181418 * check whether all name-based servers have the same
1419 * configuraiton as a default server for given address:port
1419 * configuration as a default server for given address:port
14201420 */
14211421
14221422 addr = port[p].addrs.elts;
10961096
10971097 /*
10981098 * we use "ch = *p++" inside the cycle, but this operation is safe,
1099 * because after the URI there is always at least one charcter:
1099 * because after the URI there is always at least one character:
11001100 * the line feed
11011101 */
11021102
11951195 {
11961196 /*
11971197 * 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
11991199 */
12001200
12011201 u->output.free = ngx_alloc_chain_link(r->pool);
111111 /*
112112 * the $http_host, $http_user_agent, $http_referer, $http_via,
113113 * 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
115115 * they are handled using dedicated entries
116116 */
117117
1010 /*
1111 * The threads implementation uses the rfork(RFPROC|RFTHREAD|RFMEM) syscall
1212 * 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
1414 * the stack pointer value.
1515 *
1616 * The mutex implementation uses the ngx_atomic_cmp_set() operation
1717 * to acquire a mutex and the SysV semaphore to wait on a mutex and to wake up
1818 * the waiting threads. The light mutex does not use semaphore, so after
1919 * 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.
2121 * The SysV semop() is a cheap syscall, particularly if it has little sembuf's
2222 * and does not use SEM_UNDO.
2323 *
1717 * as the 11 full 1460-bytes packets, then one incomplete 324-bytes packet,
1818 * and then again the 11 full 1460-bytes packets.
1919 *
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)
2121 * to postpone the sending - it not only sends a header and the first part of
2222 * the file in one packet, but also sends the file pages in the full packets.
2323 *
1414 * r0 = [r1];
1515 * }
1616 *
17 * so "r0 == r2" means that the operation was successfull.
17 * so "r0 == r2" means that the operation was successful.
1818 *
1919 *
2020 * The "r" means the general register.
2020 * from argv[0] for our process title.
2121 *
2222 * 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
2424 * show a new title if its length less than the origin command line length.
2525 * To avoid it we append to a new title the origin command line in the
2626 * parenthesis.
1919 #define _CRT_SECURE_NO_WARNINGS
2020
2121 /*
22 * we need to include <windows.h> explicity before <winsock2.h> because
22 * we need to include <windows.h> explicitly before <winsock2.h> because
2323 * the warning 4201 is enabled in <windows.h>
2424 */
2525 #include <windows.h>