mirror of
https://github.com/nginx/nginx.git
synced 2025-06-06 00:42:40 +08:00
Fixed spelling in multiline C comments.
This commit is contained in:
parent
7744472c8e
commit
47a04aaa27
@ -14,7 +14,7 @@
|
||||
|
||||
|
||||
/*
|
||||
* AAAA number of agruments
|
||||
* AAAA number of arguments
|
||||
* FF command flags
|
||||
* TT command type, i.e. HTTP "location" or "server" command
|
||||
*/
|
||||
|
@ -708,7 +708,7 @@ ngx_close_listening_sockets(ngx_cycle_t *cycle)
|
||||
/*
|
||||
* it seems that Linux-2.6.x OpenVZ sends events
|
||||
* for closed shared listening sockets unless
|
||||
* the events was explicity deleted
|
||||
* the events was explicitly deleted
|
||||
*/
|
||||
|
||||
ngx_del_event(c->read, NGX_READ_EVENT, 0);
|
||||
|
@ -808,7 +808,7 @@ failed:
|
||||
* reallocated if ctx->alloc is nonzero
|
||||
*
|
||||
* ctx->alloc - a size of data structure that is allocated at every level
|
||||
* and is initilialized by ctx->init_handler()
|
||||
* and is initialized by ctx->init_handler()
|
||||
*
|
||||
* ctx->log - a log
|
||||
*
|
||||
|
@ -459,7 +459,7 @@ ngx_parse_addr(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text, size_t len)
|
||||
struct sockaddr_in6 *sin6;
|
||||
|
||||
/*
|
||||
* prevent MSVC8 waring:
|
||||
* prevent MSVC8 warning:
|
||||
* potentially uninitialized local variable 'inaddr6' used
|
||||
*/
|
||||
ngx_memzero(inaddr6.s6_addr, sizeof(struct in6_addr));
|
||||
|
@ -33,7 +33,7 @@ volatile ngx_str_t ngx_cached_http_log_iso8601;
|
||||
#if !(NGX_WIN32)
|
||||
|
||||
/*
|
||||
* locatime() and localtime_r() are not Async-Signal-Safe functions, therefore,
|
||||
* localtime() and localtime_r() are not Async-Signal-Safe functions, therefore,
|
||||
* they must not be called by a signal handler, so we use the cached
|
||||
* GMT offset value. Fortunately the value is changed only two times a year.
|
||||
*/
|
||||
@ -308,7 +308,7 @@ ngx_gmtime(time_t t, ngx_tm_t *tp)
|
||||
/*
|
||||
* The "days" should be adjusted to 1 only, however, some March 1st's go
|
||||
* to previous year, so we adjust them to 2. This causes also shift of the
|
||||
* last Feburary days to next year, but we catch the case when "yday"
|
||||
* last February days to next year, but we catch the case when "yday"
|
||||
* becomes negative.
|
||||
*/
|
||||
|
||||
|
@ -445,7 +445,7 @@ ngx_epoll_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags)
|
||||
|
||||
/*
|
||||
* when the file descriptor is closed, the epoll automatically deletes
|
||||
* it from its queue, so we do not need to delete explicity the event
|
||||
* it from its queue, so we do not need to delete explicitly the event
|
||||
* before the closing the file descriptor
|
||||
*/
|
||||
|
||||
@ -524,7 +524,7 @@ ngx_epoll_del_connection(ngx_connection_t *c, ngx_uint_t flags)
|
||||
|
||||
/*
|
||||
* when the file descriptor is closed the epoll automatically deletes
|
||||
* it from its queue so we do not need to delete explicity the event
|
||||
* it from its queue so we do not need to delete explicitly the event
|
||||
* before the closing the file descriptor
|
||||
*/
|
||||
|
||||
|
@ -322,7 +322,7 @@ ngx_eventport_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags)
|
||||
|
||||
/*
|
||||
* when the file descriptor is closed, the event port automatically
|
||||
* dissociates it from the port, so we do not need to dissociate explicity
|
||||
* dissociates it from the port, so we do not need to dissociate explicitly
|
||||
* the event before the closing the file descriptor
|
||||
*/
|
||||
|
||||
|
@ -377,7 +377,7 @@ ngx_kqueue_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags)
|
||||
|
||||
/*
|
||||
* when the file descriptor is closed the kqueue automatically deletes
|
||||
* its filters so we do not need to delete explicity the event
|
||||
* its filters so we do not need to delete explicitly the event
|
||||
* before the closing the file descriptor.
|
||||
*/
|
||||
|
||||
|
@ -489,7 +489,7 @@ ngx_ssl_ecdh_curve(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *name)
|
||||
|
||||
/*
|
||||
* Elliptic-Curve Diffie-Hellman parameters are either "named curves"
|
||||
* from RFC 4492 section 5.1.1, or explicitely described curves over
|
||||
* from RFC 4492 section 5.1.1, or explicitly described curves over
|
||||
* binary fields. OpenSSL only supports the "named curves", which provide
|
||||
* maximum interoperability.
|
||||
*/
|
||||
|
@ -126,7 +126,7 @@ ngx_http_degraded(ngx_http_request_t *r)
|
||||
* ELF/i386 is loaded at 0x08000000, 128M
|
||||
* ELF/amd64 is loaded at 0x00400000, 4M
|
||||
*
|
||||
* use a function address to substract the loading address
|
||||
* use a function address to subtract the loading address
|
||||
*/
|
||||
|
||||
sbrk_size = (size_t) sbrk(0) - ((uintptr_t) ngx_palloc & ~0x3FFFFF);
|
||||
|
@ -1417,7 +1417,7 @@ ngx_http_optimize_servers(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf,
|
||||
|
||||
/*
|
||||
* check whether all name-based servers have the same
|
||||
* configuraiton as a default server for given address:port
|
||||
* configuration as a default server for given address:port
|
||||
*/
|
||||
|
||||
addr = port[p].addrs.elts;
|
||||
|
@ -1097,7 +1097,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
|
||||
|
||||
/*
|
||||
* we use "ch = *p++" inside the cycle, but this operation is safe,
|
||||
* because after the URI there is always at least one charcter:
|
||||
* because after the URI there is always at least one character:
|
||||
* the line feed
|
||||
*/
|
||||
|
||||
|
@ -1196,7 +1196,7 @@ ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u)
|
||||
{
|
||||
/*
|
||||
* the r->request_body->buf can be reused for one request only,
|
||||
* the subrequests should allocate their own temporay bufs
|
||||
* the subrequests should allocate their own temporary bufs
|
||||
*/
|
||||
|
||||
u->output.free = ngx_alloc_chain_link(r->pool);
|
||||
|
@ -112,7 +112,7 @@ static ngx_int_t ngx_http_variable_pid(ngx_http_request_t *r,
|
||||
/*
|
||||
* the $http_host, $http_user_agent, $http_referer, $http_via,
|
||||
* and $http_x_forwarded_for variables may be handled by generic
|
||||
* ngx_http_variable_unknown_header_in(), but for perfomance reasons
|
||||
* ngx_http_variable_unknown_header_in(), but for performance reasons
|
||||
* they are handled using dedicated entries
|
||||
*/
|
||||
|
||||
|
@ -11,14 +11,14 @@
|
||||
/*
|
||||
* The threads implementation uses the rfork(RFPROC|RFTHREAD|RFMEM) syscall
|
||||
* to create threads. All threads use the stacks of the same size mmap()ed
|
||||
* below the main stack. Thus the current thread id is determinated via
|
||||
* below the main stack. Thus the current thread id is determined via
|
||||
* the stack pointer value.
|
||||
*
|
||||
* The mutex implementation uses the ngx_atomic_cmp_set() operation
|
||||
* to acquire a mutex and the SysV semaphore to wait on a mutex and to wake up
|
||||
* the waiting threads. The light mutex does not use semaphore, so after
|
||||
* spinning in the lock the thread calls sched_yield(). However the light
|
||||
* mutecies are intended to be used with the "trylock" operation only.
|
||||
* mutexes are intended to be used with the "trylock" operation only.
|
||||
* The SysV semop() is a cheap syscall, particularly if it has little sembuf's
|
||||
* and does not use SEM_UNDO.
|
||||
*
|
||||
|
@ -18,7 +18,7 @@
|
||||
* as the 11 full 1460-bytes packets, then one incomplete 324-bytes packet,
|
||||
* and then again the 11 full 1460-bytes packets.
|
||||
*
|
||||
* Threfore we use the TCP_NOPUSH option (similar to Linux's TCP_CORK)
|
||||
* Therefore we use the TCP_NOPUSH option (similar to Linux's TCP_CORK)
|
||||
* to postpone the sending - it not only sends a header and the first part of
|
||||
* the file in one packet, but also sends the file pages in the full packets.
|
||||
*
|
||||
|
@ -15,7 +15,7 @@
|
||||
* r0 = [r1];
|
||||
* }
|
||||
*
|
||||
* so "r0 == r2" means that the operation was successfull.
|
||||
* so "r0 == r2" means that the operation was successful.
|
||||
*
|
||||
*
|
||||
* The "r" means the general register.
|
||||
|
@ -21,7 +21,7 @@
|
||||
* from argv[0] for our process title.
|
||||
*
|
||||
* The Solaris's standard /bin/ps does not show the changed process title.
|
||||
* You have to use "/usr/ucb/ps -w" instead. Besides, the UCB ps dos not
|
||||
* You have to use "/usr/ucb/ps -w" instead. Besides, the UCB ps does not
|
||||
* show a new title if its length less than the origin command line length.
|
||||
* To avoid it we append to a new title the origin command line in the
|
||||
* parenthesis.
|
||||
|
@ -20,7 +20,7 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
|
||||
/*
|
||||
* we need to include <windows.h> explicity before <winsock2.h> because
|
||||
* we need to include <windows.h> explicitly before <winsock2.h> because
|
||||
* the warning 4201 is enabled in <windows.h>
|
||||
*/
|
||||
#include <windows.h>
|
||||
|
Loading…
Reference in New Issue
Block a user