i 201 core/nginx.c ngx_int_t i; i 326 core/nginx.c for (i = 0; ngx_modules[i]; i++) { i 327 core/nginx.c ngx_modules[i]->index = ngx_max_module++; i 470 core/nginx.c ngx_uint_t i, n; i 481 core/nginx.c for (i = 0; i < ccf->env.nelts; i++) { i 482 core/nginx.c if (ngx_strcmp(var[i].data, "TZ") == 0 i 483 core/nginx.c || ngx_strncmp(var[i].data, "TZ=", 3) == 0) i 503 core/nginx.c for (i = 0; i < ccf->env.nelts; i++) { i 505 core/nginx.c if (var[i].data[var[i].len] == '=') { i 512 core/nginx.c if (ngx_strncmp(*p, var[i].data, var[i].len) == 0 i 513 core/nginx.c && (*p)[var[i].len] == '=') i 535 core/nginx.c for (i = 0; i < ccf->env.nelts; i++) { i 537 core/nginx.c if (var[i].data[var[i].len] == '=') { i 538 core/nginx.c env[n++] = (char *) var[i].data; i 544 core/nginx.c if (ngx_strncmp(*p, var[i].data, var[i].len) == 0 i 545 core/nginx.c && (*p)[var[i].len] == '=') i 569 core/nginx.c ngx_uint_t i, n; i 594 core/nginx.c for (i = 0; i < cycle->listening.nelts; i++) { i 595 core/nginx.c p = ngx_sprintf(p, "%ud;", ls[i].fd); i 663 core/nginx.c ngx_int_t i; i 665 core/nginx.c for (i = 1; i < argc; i++) { i 667 core/nginx.c p = (u_char *) argv[i]; i 670 core/nginx.c ngx_log_stderr(0, "invalid option: \"%s\"", argv[i]); i 707 core/nginx.c if (argv[++i]) { i 708 core/nginx.c ngx_prefix = (u_char *) argv[i]; i 721 core/nginx.c if (argv[++i]) { i 722 core/nginx.c ngx_conf_file = (u_char *) argv[i]; i 735 core/nginx.c if (argv[++i]) { i 736 core/nginx.c ngx_conf_params = (u_char *) argv[i]; i 747 core/nginx.c } else if (argv[++i]) { i 748 core/nginx.c ngx_signal = argv[i]; i 793 core/nginx.c ngx_int_t i; i 803 core/nginx.c for (i = 0; i < argc; i++) { i 804 core/nginx.c len = ngx_strlen(argv[i]) + 1; i 806 core/nginx.c ngx_argv[i] = ngx_alloc(len, cycle->log); i 807 core/nginx.c if (ngx_argv[i] == NULL) { i 811 core/nginx.c (void) ngx_cpystrn((u_char *) ngx_argv[i], (u_char *) argv[i], len); i 814 core/nginx.c ngx_argv[i] = NULL; i 1173 core/nginx.c ngx_uint_t i; i 1183 core/nginx.c for (i = 0; i < value[1].len; i++) { i 1185 core/nginx.c if (value[1].data[i] == '=') { i 1187 core/nginx.c var->len = i; i 1246 core/nginx.c ngx_uint_t i, n; i 1272 core/nginx.c for (i = 0; i < value[n].len; i++) { i 1274 core/nginx.c ch = value[n].data[i]; i 71 core/ngx_buf.c ngx_int_t i; i 82 core/ngx_buf.c for (i = 0; i < bufs->num; i++) { i 284 core/ngx_conf_file.c ngx_uint_t i, multi; i 292 core/ngx_conf_file.c for (i = 0; ngx_modules[i]; i++) { i 296 core/ngx_conf_file.c if (ngx_modules[i]->type != NGX_CONF_MODULE i 297 core/ngx_conf_file.c && ngx_modules[i]->type != cf->module_type) i 302 core/ngx_conf_file.c cmd = ngx_modules[i]->commands; i 380 core/ngx_conf_file.c conf = ((void **) cf->ctx)[ngx_modules[i]->index]; i 383 core/ngx_conf_file.c conf = &(((void **) cf->ctx)[ngx_modules[i]->index]); i 389 core/ngx_conf_file.c conf = confp[ngx_modules[i]->ctx_index]; i 902 core/ngx_conf_file.c ngx_uint_t i; i 920 core/ngx_conf_file.c for (i = 0; /* void */ ; i++) { i 922 core/ngx_conf_file.c if (i >= part->nelts) { i 928 core/ngx_conf_file.c i = 0; i 931 core/ngx_conf_file.c if (full.len != file[i].name.len) { i 935 core/ngx_conf_file.c if (ngx_strcmp(full.data, file[i].name.data) == 0) { i 936 core/ngx_conf_file.c return &file[i]; i 965 core/ngx_conf_file.c ngx_uint_t i; i 974 core/ngx_conf_file.c for (i = 0; /* void */ ; i++) { i 976 core/ngx_conf_file.c if (i >= part->nelts) { i 982 core/ngx_conf_file.c i = 0; i 985 core/ngx_conf_file.c len = file[i].pos - file[i].buffer; i 987 core/ngx_conf_file.c if (file[i].buffer == NULL || len == 0) { i 991 core/ngx_conf_file.c n = ngx_write_fd(file[i].fd, file[i].buffer, len); i 996 core/ngx_conf_file.c file[i].name.data); i 1001 core/ngx_conf_file.c file[i].name.data, n, len); i 1380 core/ngx_conf_file.c ngx_uint_t *np, i; i 1393 core/ngx_conf_file.c for (i = 0; e[i].name.len != 0; i++) { i 1394 core/ngx_conf_file.c if (e[i].name.len != value[1].len i 1395 core/ngx_conf_file.c || ngx_strcasecmp(e[i].name.data, value[1].data) != 0) i 1400 core/ngx_conf_file.c *np = e[i].value; i 1417 core/ngx_conf_file.c ngx_uint_t *np, i, m; i 1426 core/ngx_conf_file.c for (i = 1; i < cf->args->nelts; i++) { i 1429 core/ngx_conf_file.c if (mask[m].name.len != value[i].len i 1430 core/ngx_conf_file.c || ngx_strcasecmp(mask[m].name.data, value[i].data) != 0) i 1437 core/ngx_conf_file.c "duplicate value \"%s\"", value[i].data); i 1448 core/ngx_conf_file.c "invalid value \"%s\"", value[i].data); i 92 core/ngx_connection.c ngx_uint_t i; i 104 core/ngx_connection.c for (i = 0; i < cycle->listening.nelts; i++) { i 106 core/ngx_connection.c ls[i].sockaddr = ngx_palloc(cycle->pool, NGX_SOCKADDRLEN); i 107 core/ngx_connection.c if (ls[i].sockaddr == NULL) { i 111 core/ngx_connection.c ls[i].socklen = NGX_SOCKADDRLEN; i 112 core/ngx_connection.c if (getsockname(ls[i].fd, ls[i].sockaddr, &ls[i].socklen) == -1) { i 115 core/ngx_connection.c "socket #%d failed", ls[i].fd); i 116 core/ngx_connection.c ls[i].ignore = 1; i 120 core/ngx_connection.c switch (ls[i].sockaddr->sa_family) { i 124 core/ngx_connection.c ls[i].addr_text_max_len = NGX_INET6_ADDRSTRLEN; i 131 core/ngx_connection.c ls[i].addr_text_max_len = NGX_UNIX_ADDRSTRLEN; i 137 core/ngx_connection.c ls[i].addr_text_max_len = NGX_INET_ADDRSTRLEN; i 144 core/ngx_connection.c "an unsupported protocol family", ls[i].fd); i 145 core/ngx_connection.c ls[i].ignore = 1; i 149 core/ngx_connection.c ls[i].addr_text.data = ngx_pnalloc(cycle->pool, len); i 150 core/ngx_connection.c if (ls[i].addr_text.data == NULL) { i 154 core/ngx_connection.c len = ngx_sock_ntop(ls[i].sockaddr, ls[i].addr_text.data, len, 1); i 159 core/ngx_connection.c ls[i].addr_text.len = len; i 161 core/ngx_connection.c ls[i].backlog = NGX_LISTEN_BACKLOG; i 165 core/ngx_connection.c if (getsockopt(ls[i].fd, SOL_SOCKET, SO_RCVBUF, (void *) &ls[i].rcvbuf, i 171 core/ngx_connection.c &ls[i].addr_text); i 173 core/ngx_connection.c ls[i].rcvbuf = -1; i 178 core/ngx_connection.c if (getsockopt(ls[i].fd, SOL_SOCKET, SO_SNDBUF, (void *) &ls[i].sndbuf, i 184 core/ngx_connection.c &ls[i].addr_text); i 186 core/ngx_connection.c ls[i].sndbuf = -1; i 194 core/ngx_connection.c if (getsockopt(ls[i].setfib, SOL_SOCKET, SO_SETFIB, i 195 core/ngx_connection.c (void *) &ls[i].setfib, &olen) i 200 core/ngx_connection.c &ls[i].addr_text); i 202 core/ngx_connection.c ls[i].setfib = -1; i 213 core/ngx_connection.c if (getsockopt(ls[i].fd, SOL_SOCKET, SO_ACCEPTFILTER, &af, &olen) i 224 core/ngx_connection.c &ls[i].addr_text); i 232 core/ngx_connection.c ls[i].accept_filter = ngx_palloc(cycle->pool, 16); i 233 core/ngx_connection.c if (ls[i].accept_filter == NULL) { i 237 core/ngx_connection.c (void) ngx_cpystrn((u_char *) ls[i].accept_filter, i 246 core/ngx_connection.c if (getsockopt(ls[i].fd, IPPROTO_TCP, TCP_DEFER_ACCEPT, &timeout, &olen) i 251 core/ngx_connection.c &ls[i].addr_text); i 259 core/ngx_connection.c ls[i].deferred_accept = 1; i 271 core/ngx_connection.c ngx_uint_t i, tries, failed; i 292 core/ngx_connection.c for (i = 0; i < cycle->listening.nelts; i++) { i 294 core/ngx_connection.c if (ls[i].ignore) { i 298 core/ngx_connection.c if (ls[i].fd != -1) { i 302 core/ngx_connection.c if (ls[i].inherited) { i 311 core/ngx_connection.c s = ngx_socket(ls[i].sockaddr->sa_family, ls[i].type, 0); i 315 core/ngx_connection.c ngx_socket_n " %V failed", &ls[i].addr_text); i 325 core/ngx_connection.c &ls[i].addr_text); i 330 core/ngx_connection.c &ls[i].addr_text); i 338 core/ngx_connection.c if (ls[i].sockaddr->sa_family == AF_INET6 && ls[i].ipv6only) { i 341 core/ngx_connection.c ipv6only = (ls[i].ipv6only == 1); i 349 core/ngx_connection.c &ls[i].addr_text); i 359 core/ngx_connection.c &ls[i].addr_text); i 364 core/ngx_connection.c &ls[i].addr_text); i 372 core/ngx_connection.c "bind() %V #%d ", &ls[i].addr_text, s); i 374 core/ngx_connection.c if (bind(s, ls[i].sockaddr, ls[i].socklen) == -1) { i 382 core/ngx_connection.c "bind() to %V failed", &ls[i].addr_text); i 387 core/ngx_connection.c &ls[i].addr_text); i 401 core/ngx_connection.c if (ls[i].sockaddr->sa_family == AF_UNIX) { i 405 core/ngx_connection.c name = ls[i].addr_text.data + sizeof("unix:") - 1; i 422 core/ngx_connection.c if (listen(s, ls[i].backlog) == -1) { i 425 core/ngx_connection.c &ls[i].addr_text, ls[i].backlog); i 430 core/ngx_connection.c &ls[i].addr_text); i 436 core/ngx_connection.c ls[i].listen = 1; i 438 core/ngx_connection.c ls[i].fd = s; i 465 core/ngx_connection.c ngx_uint_t i; i 476 core/ngx_connection.c for (i = 0; i < cycle->listening.nelts; i++) { i 478 core/ngx_connection.c ls[i].log = *ls[i].logp; i 480 core/ngx_connection.c if (ls[i].rcvbuf != -1) { i 481 core/ngx_connection.c if (setsockopt(ls[i].fd, SOL_SOCKET, SO_RCVBUF, i 482 core/ngx_connection.c (const void *) &ls[i].rcvbuf, sizeof(int)) i 487 core/ngx_connection.c ls[i].rcvbuf, &ls[i].addr_text); i 491 core/ngx_connection.c if (ls[i].sndbuf != -1) { i 492 core/ngx_connection.c if (setsockopt(ls[i].fd, SOL_SOCKET, SO_SNDBUF, i 493 core/ngx_connection.c (const void *) &ls[i].sndbuf, sizeof(int)) i 498 core/ngx_connection.c ls[i].sndbuf, &ls[i].addr_text); i 503 core/ngx_connection.c if (ls[i].setfib != -1) { i 504 core/ngx_connection.c if (setsockopt(ls[i].fd, SOL_SOCKET, SO_SETFIB, i 505 core/ngx_connection.c (const void *) &ls[i].setfib, sizeof(int)) i 510 core/ngx_connection.c ls[i].setfib, &ls[i].addr_text); i 519 core/ngx_connection.c if (setsockopt(ls[i].fd, IPPROTO_TCP, TCP_NODELAY, i 525 core/ngx_connection.c &ls[i].addr_text); i 530 core/ngx_connection.c if (ls[i].listen) { i 534 core/ngx_connection.c if (listen(ls[i].fd, ls[i].backlog) == -1) { i 537 core/ngx_connection.c &ls[i].addr_text, ls[i].backlog); i 550 core/ngx_connection.c if (ls[i].delete_deferred) { i 551 core/ngx_connection.c if (setsockopt(ls[i].fd, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0) i 557 core/ngx_connection.c &ls[i].addr_text); i 559 core/ngx_connection.c if (ls[i].accept_filter) { i 563 core/ngx_connection.c ls[i].accept_filter, &ls[i].addr_text); i 569 core/ngx_connection.c ls[i].deferred_accept = 0; i 572 core/ngx_connection.c if (ls[i].add_deferred) { i 575 core/ngx_connection.c (u_char *) ls[i].accept_filter, 16); i 577 core/ngx_connection.c if (setsockopt(ls[i].fd, SOL_SOCKET, SO_ACCEPTFILTER, i 584 core/ngx_connection.c ls[i].accept_filter, &ls[i].addr_text); i 588 core/ngx_connection.c ls[i].deferred_accept = 1; i 595 core/ngx_connection.c if (ls[i].add_deferred || ls[i].delete_deferred) { i 597 core/ngx_connection.c if (ls[i].add_deferred) { i 598 core/ngx_connection.c timeout = (int) (ls[i].post_accept_timeout / 1000); i 604 core/ngx_connection.c if (setsockopt(ls[i].fd, IPPROTO_TCP, TCP_DEFER_ACCEPT, i 611 core/ngx_connection.c timeout, &ls[i].addr_text); i 617 core/ngx_connection.c if (ls[i].add_deferred) { i 618 core/ngx_connection.c ls[i].deferred_accept = 1; i 633 core/ngx_connection.c ngx_uint_t i; i 645 core/ngx_connection.c for (i = 0; i < cycle->listening.nelts; i++) { i 647 core/ngx_connection.c c = ls[i].connection; i 675 core/ngx_connection.c "close listening %V #%d ", &ls[i].addr_text, ls[i].fd); i 677 core/ngx_connection.c if (ngx_close_socket(ls[i].fd) == -1) { i 679 core/ngx_connection.c ngx_close_socket_n " %V failed", &ls[i].addr_text); i 684 core/ngx_connection.c if (ls[i].sockaddr->sa_family == AF_UNIX i 688 core/ngx_connection.c u_char *name = ls[i].addr_text.data + sizeof("unix:") - 1; i 698 core/ngx_connection.c ls[i].fd = (ngx_socket_t) -1; i 937 core/ngx_connection.c ngx_int_t i; i 941 core/ngx_connection.c for (i = 0; i < 32; i++) { i 967 core/ngx_connection.c ngx_uint_t i; i 977 core/ngx_connection.c for (addr = 0, i = 0; addr == 0 && i < 16; i++) { i 978 core/ngx_connection.c addr |= sin6->sin6_addr.s6_addr[i]; i 14 core/ngx_cpuinfo.c static ngx_inline void ngx_cpuid(uint32_t i, uint32_t *buf); i 20 core/ngx_cpuinfo.c ngx_cpuid(uint32_t i, uint32_t *buf) i 41 core/ngx_cpuinfo.c : : "a" (i), "D" (buf) : "ecx", "edx", "esi", "memory" ); i 49 core/ngx_cpuinfo.c ngx_cpuid(uint32_t i, uint32_t *buf) i 57 core/ngx_cpuinfo.c : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (i) ); i 46 core/ngx_cycle.c ngx_uint_t i, n; i 214 core/ngx_cycle.c for (i = 0; ngx_modules[i]; i++) { i 215 core/ngx_cycle.c if (ngx_modules[i]->type != NGX_CORE_MODULE) { i 219 core/ngx_cycle.c module = ngx_modules[i]->ctx; i 227 core/ngx_cycle.c cycle->conf_ctx[ngx_modules[i]->index] = rv; i 278 core/ngx_cycle.c for (i = 0; ngx_modules[i]; i++) { i 279 core/ngx_cycle.c if (ngx_modules[i]->type != NGX_CORE_MODULE) { i 283 core/ngx_cycle.c module = ngx_modules[i]->ctx; i 286 core/ngx_cycle.c if (module->init_conf(cycle, cycle->conf_ctx[ngx_modules[i]->index]) i 353 core/ngx_cycle.c for (i = 0; /* void */ ; i++) { i 355 core/ngx_cycle.c if (i >= part->nelts) { i 361 core/ngx_cycle.c i = 0; i 364 core/ngx_cycle.c if (file[i].name.len == 0) { i 368 core/ngx_cycle.c file[i].fd = ngx_open_file(file[i].name.data, i 375 core/ngx_cycle.c &file[i], file[i].fd, file[i].name.data); i 377 core/ngx_cycle.c if (file[i].fd == NGX_INVALID_FILE) { i 380 core/ngx_cycle.c file[i].name.data); i 385 core/ngx_cycle.c if (fcntl(file[i].fd, F_SETFD, FD_CLOEXEC) == -1) { i 388 core/ngx_cycle.c file[i].name.data); i 403 core/ngx_cycle.c for (i = 0; /* void */ ; i++) { i 405 core/ngx_cycle.c if (i >= part->nelts) { i 411 core/ngx_cycle.c i = 0; i 414 core/ngx_cycle.c if (shm_zone[i].shm.size == 0) { i 417 core/ngx_cycle.c &shm_zone[i].shm.name); i 421 core/ngx_cycle.c if (shm_zone[i].init == NULL) { i 426 core/ngx_cycle.c shm_zone[i].shm.log = cycle->log; i 442 core/ngx_cycle.c if (shm_zone[i].shm.name.len != oshm_zone[n].shm.name.len) { i 446 core/ngx_cycle.c if (ngx_strncmp(shm_zone[i].shm.name.data, i 448 core/ngx_cycle.c shm_zone[i].shm.name.len) i 454 core/ngx_cycle.c if (shm_zone[i].shm.size == oshm_zone[n].shm.size) { i 455 core/ngx_cycle.c shm_zone[i].shm.addr = oshm_zone[n].shm.addr; i 457 core/ngx_cycle.c if (shm_zone[i].init(&shm_zone[i], oshm_zone[n].data) i 471 core/ngx_cycle.c if (ngx_shm_alloc(&shm_zone[i].shm) != NGX_OK) { i 475 core/ngx_cycle.c if (ngx_init_zone_pool(cycle, &shm_zone[i]) != NGX_OK) { i 479 core/ngx_cycle.c if (shm_zone[i].init(&shm_zone[i], NULL) != NGX_OK) { i 493 core/ngx_cycle.c for (i = 0; i < old_cycle->listening.nelts; i++) { i 494 core/ngx_cycle.c ls[i].remain = 0; i 500 core/ngx_cycle.c for (i = 0; i < old_cycle->listening.nelts; i++) { i 501 core/ngx_cycle.c if (ls[i].ignore) { i 505 core/ngx_cycle.c if (ngx_cmp_sockaddr(nls[n].sockaddr, ls[i].sockaddr) == NGX_OK) i 507 core/ngx_cycle.c nls[n].fd = ls[i].fd; i 508 core/ngx_cycle.c nls[n].previous = &ls[i]; i 509 core/ngx_cycle.c ls[i].remain = 1; i 511 core/ngx_cycle.c if (ls[n].backlog != nls[i].backlog) { i 521 core/ngx_cycle.c nls[n].deferred_accept = ls[i].deferred_accept; i 523 core/ngx_cycle.c if (ls[i].accept_filter && nls[n].accept_filter) { i 524 core/ngx_cycle.c if (ngx_strcmp(ls[i].accept_filter, i 532 core/ngx_cycle.c } else if (ls[i].accept_filter) { i 545 core/ngx_cycle.c } else if (ls[i].deferred_accept != nls[n].deferred_accept) i 561 core/ngx_cycle.c for (i = 0; i < cycle->listening.nelts; i++) { i 562 core/ngx_cycle.c ls[i].open = 1; i 564 core/ngx_cycle.c if (ls[i].accept_filter) { i 565 core/ngx_cycle.c ls[i].add_deferred = 1; i 569 core/ngx_cycle.c if (ls[i].deferred_accept) { i 570 core/ngx_cycle.c ls[i].add_deferred = 1; i 597 core/ngx_cycle.c for (i = 0; ngx_modules[i]; i++) { i 598 core/ngx_cycle.c if (ngx_modules[i]->init_module) { i 599 core/ngx_cycle.c if (ngx_modules[i]->init_module(cycle) != NGX_OK) { i 614 core/ngx_cycle.c for (i = 0; /* void */ ; i++) { i 616 core/ngx_cycle.c if (i >= opart->nelts) { i 622 core/ngx_cycle.c i = 0; i 639 core/ngx_cycle.c if (oshm_zone[i].shm.name.len == shm_zone[n].shm.name.len i 640 core/ngx_cycle.c && ngx_strncmp(oshm_zone[i].shm.name.data, i 642 core/ngx_cycle.c oshm_zone[i].shm.name.len) i 649 core/ngx_cycle.c ngx_shm_free(&oshm_zone[i].shm); i 662 core/ngx_cycle.c for (i = 0; i < old_cycle->listening.nelts; i++) { i 664 core/ngx_cycle.c if (ls[i].remain || ls[i].fd == -1) { i 668 core/ngx_cycle.c if (ngx_close_socket(ls[i].fd) == -1) { i 671 core/ngx_cycle.c &ls[i].addr_text); i 676 core/ngx_cycle.c if (ls[i].sockaddr->sa_family == AF_UNIX) { i 679 core/ngx_cycle.c name = ls[i].addr_text.data + sizeof("unix:") - 1; i 699 core/ngx_cycle.c for (i = 0; /* void */ ; i++) { i 701 core/ngx_cycle.c if (i >= part->nelts) { i 707 core/ngx_cycle.c i = 0; i 710 core/ngx_cycle.c if (file[i].fd == NGX_INVALID_FILE || file[i].fd == ngx_stderr) { i 714 core/ngx_cycle.c if (ngx_close_file(file[i].fd) == NGX_FILE_ERROR) { i 717 core/ngx_cycle.c file[i].name.data); i 799 core/ngx_cycle.c for (i = 0; /* void */ ; i++) { i 801 core/ngx_cycle.c if (i >= part->nelts) { i 807 core/ngx_cycle.c i = 0; i 810 core/ngx_cycle.c if (file[i].fd == NGX_INVALID_FILE || file[i].fd == ngx_stderr) { i 814 core/ngx_cycle.c if (ngx_close_file(file[i].fd) == NGX_FILE_ERROR) { i 817 core/ngx_cycle.c file[i].name.data); i 827 core/ngx_cycle.c for (i = 0; i < cycle->listening.nelts; i++) { i 828 core/ngx_cycle.c if (ls[i].fd == -1 || !ls[i].open) { i 832 core/ngx_cycle.c if (ngx_close_socket(ls[i].fd) == -1) { i 835 core/ngx_cycle.c &ls[i].addr_text); i 1120 core/ngx_cycle.c ngx_uint_t i; i 1127 core/ngx_cycle.c for (i = 0; /* void */ ; i++) { i 1129 core/ngx_cycle.c if (i >= part->nelts) { i 1135 core/ngx_cycle.c i = 0; i 1138 core/ngx_cycle.c if (file[i].name.len == 0) { i 1142 core/ngx_cycle.c len = file[i].pos - file[i].buffer; i 1144 core/ngx_cycle.c if (file[i].buffer && len != 0) { i 1146 core/ngx_cycle.c n = ngx_write_fd(file[i].fd, file[i].buffer, len); i 1151 core/ngx_cycle.c file[i].name.data); i 1156 core/ngx_cycle.c file[i].name.data, n, len); i 1159 core/ngx_cycle.c file[i].pos = file[i].buffer; i 1162 core/ngx_cycle.c fd = ngx_open_file(file[i].name.data, NGX_FILE_APPEND, i 1167 core/ngx_cycle.c file[i].name.data, file[i].fd, fd); i 1171 core/ngx_cycle.c ngx_open_file_n " \"%s\" failed", file[i].name.data); i 1179 core/ngx_cycle.c if (ngx_file_info((const char *) file[i].name.data, &fi) i 1184 core/ngx_cycle.c file[i].name.data); i 1189 core/ngx_cycle.c file[i].name.data); i 1194 core/ngx_cycle.c if (chown((const char *) file[i].name.data, user, -1) == -1) { i 1197 core/ngx_cycle.c file[i].name.data, user); i 1202 core/ngx_cycle.c file[i].name.data); i 1211 core/ngx_cycle.c if (chmod((const char *) file[i].name.data, fi.st_mode) == -1) { i 1213 core/ngx_cycle.c "chmod() \"%s\" failed", file[i].name.data); i 1218 core/ngx_cycle.c file[i].name.data); i 1227 core/ngx_cycle.c file[i].name.data); i 1232 core/ngx_cycle.c file[i].name.data); i 1239 core/ngx_cycle.c if (ngx_close_file(file[i].fd) == NGX_FILE_ERROR) { i 1242 core/ngx_cycle.c file[i].name.data); i 1245 core/ngx_cycle.c file[i].fd = fd; i 1264 core/ngx_cycle.c ngx_uint_t i; i 1271 core/ngx_cycle.c for (i = 0; /* void */ ; i++) { i 1273 core/ngx_cycle.c if (i >= part->nelts) { i 1279 core/ngx_cycle.c i = 0; i 1282 core/ngx_cycle.c if (name->len != shm_zone[i].shm.name.len) { i 1286 core/ngx_cycle.c if (ngx_strncmp(name->data, shm_zone[i].shm.name.data, name->len) i 1292 core/ngx_cycle.c if (size && size != shm_zone[i].shm.size) { i 1296 core/ngx_cycle.c size, &shm_zone[i].shm.name, shm_zone[i].shm.size); i 1300 core/ngx_cycle.c if (tag != shm_zone[i].tag) { i 1304 core/ngx_cycle.c &shm_zone[i].shm.name); i 1308 core/ngx_cycle.c return &shm_zone[i]; i 1332 core/ngx_cycle.c ngx_uint_t i, n, found, live; i 1344 core/ngx_cycle.c for (i = 0; i < ngx_old_cycles.nelts; i++) { i 1346 core/ngx_cycle.c if (cycle[i] == NULL) { i 1352 core/ngx_cycle.c for (n = 0; n < cycle[i]->connection_n; n++) { i 1353 core/ngx_cycle.c if (cycle[i]->connections[n].fd != (ngx_socket_t) -1) { i 1367 core/ngx_cycle.c ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0, "clean old cycle: %d", i); i 1369 core/ngx_cycle.c ngx_destroy_pool(cycle[i]->pool); i 1370 core/ngx_cycle.c cycle[i] = NULL; i 56 core/ngx_file.c for (i = 0; i < file->name.len; i++) { i 57 core/ngx_file.c file->name.data[i] = 'X'; i 120 core/ngx_file.c size_t i, level; i 123 core/ngx_file.c i = path->name.len + 1; i 135 core/ngx_file.c file[i - 1] = '/'; i 136 core/ngx_file.c ngx_memcpy(&file[i], &file[len], level); i 137 core/ngx_file.c i += level + 1; i 147 core/ngx_file.c ngx_uint_t i; i 151 core/ngx_file.c for (i = 0; i < 3; i++) { i 152 core/ngx_file.c if (path->level[i] == 0) { i 156 core/ngx_file.c pos += path->level[i] + 1; i 244 core/ngx_file.c ngx_uint_t i, n; i 276 core/ngx_file.c for (i = 0, n = 2; n < cf->args->nelts; i++, n++) { i 282 core/ngx_file.c path->level[i] = level; i 286 core/ngx_file.c while (i < 3) { i 287 core/ngx_file.c path->level[i++] = 0; i 351 core/ngx_file.c ngx_uint_t i, right, shift, *access; i 363 core/ngx_file.c for (i = 1; i < cf->args->nelts; i++) { i 365 core/ngx_file.c p = value[i].data; i 400 core/ngx_file.c ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "invalid value \"%V\"", &value[i]); i 409 core/ngx_file.c ngx_uint_t i, n; i 415 core/ngx_file.c for (i = 0; i < cf->cycle->pathes.nelts; i++) { i 416 core/ngx_file.c if (p[i]->name.len == path->name.len i 417 core/ngx_file.c && ngx_strcmp(p[i]->name.data, path->name.data) == 0) i 420 core/ngx_file.c if (p[i]->level[n] != path->level[n]) { i 422 core/ngx_file.c if (p[i]->conf_file == NULL) { i 428 core/ngx_file.c &p[i]->name); i 437 core/ngx_file.c &p[i]->name, p[i]->conf_file, p[i]->line); i 444 core/ngx_file.c &p[i]->name, p[i]->conf_file, p[i]->line); i 448 core/ngx_file.c if (p[i]->level[n] == 0) { i 453 core/ngx_file.c *slot = p[i]; i 474 core/ngx_file.c ngx_uint_t i; i 478 core/ngx_file.c for (i = 0; i < cycle->pathes.nelts; i++) { i 480 core/ngx_file.c if (ngx_create_dir(path[i]->name.data, 0700) == NGX_FILE_ERROR) { i 485 core/ngx_file.c path[i]->name.data); i 498 core/ngx_file.c if (ngx_file_info((const char *) path[i]->name.data, &fi) i 502 core/ngx_file.c ngx_file_info_n " \"%s\" failed", path[i]->name.data); i 507 core/ngx_file.c if (chown((const char *) path[i]->name.data, user, -1) == -1) { i 510 core/ngx_file.c path[i]->name.data, user); i 520 core/ngx_file.c if (chmod((const char *) path[i]->name.data, fi.st_mode) == -1) { i 522 core/ngx_file.c "chmod() \"%s\" failed", path[i]->name.data); i 14 core/ngx_hash.c ngx_uint_t i; i 32 core/ngx_hash.c for (i = 0; i < len; i++) { i 33 core/ngx_hash.c if (name[i] != elt->name[i]) { i 55 core/ngx_hash.c ngx_uint_t i, n, key; i 73 core/ngx_hash.c for (i = n; i < len; i++) { i 74 core/ngx_hash.c key = ngx_hash(key, name[i]); i 149 core/ngx_hash.c ngx_uint_t i, key; i 157 core/ngx_hash.c for (i = 0; i < len; i++) { i 158 core/ngx_hash.c if (name[i] == '.') { i 162 core/ngx_hash.c key = ngx_hash(key, name[i]); i 165 core/ngx_hash.c if (i == len) { i 173 core/ngx_hash.c value = ngx_hash_find(&hwc->hash, key, name, i); i 189 core/ngx_hash.c i++; i 193 core/ngx_hash.c value = ngx_hash_find_wc_tail(hwc, &name[i], len - i); i 256 core/ngx_hash.c ngx_uint_t i, n, key, size, start, bucket_size; i 326 core/ngx_hash.c for (i = 0; i < size; i++) { i 327 core/ngx_hash.c test[i] = sizeof(void *); i 341 core/ngx_hash.c for (i = 0; i < size; i++) { i 342 core/ngx_hash.c if (test[i] == sizeof(void *)) { i 346 core/ngx_hash.c test[i] = (u_short) (ngx_align(test[i], ngx_cacheline_size)); i 348 core/ngx_hash.c len += test[i]; i 378 core/ngx_hash.c for (i = 0; i < size; i++) { i 379 core/ngx_hash.c if (test[i] == sizeof(void *)) { i 383 core/ngx_hash.c buckets[i] = (ngx_hash_elt_t *) elts; i 384 core/ngx_hash.c elts += test[i]; i 388 core/ngx_hash.c for (i = 0; i < size; i++) { i 389 core/ngx_hash.c test[i] = 0; i 408 core/ngx_hash.c for (i = 0; i < size; i++) { i 409 core/ngx_hash.c if (buckets[i] == NULL) { i 413 core/ngx_hash.c elt = (ngx_hash_elt_t *) ((u_char *) buckets[i] + test[i]); i 425 core/ngx_hash.c for (i = 0; i < size; i++) { i 429 core/ngx_hash.c elt = buckets[i]; i 433 core/ngx_hash.c "%ui: NULL", i); i 444 core/ngx_hash.c "%ui: %p \"%V\" %ui", i, elt, &val, key); i 462 core/ngx_hash.c ngx_uint_t i, n, dot; i 482 core/ngx_hash.c for (n = 0; n < nelts; n = i) { i 538 core/ngx_hash.c for (i = n + 1; i < nelts; i++) { i 539 core/ngx_hash.c if (ngx_strncmp(names[n].key.data, names[i].key.data, len) != 0) { i 544 core/ngx_hash.c && names[i].key.len > len i 545 core/ngx_hash.c && names[i].key.data[len] != '.') i 555 core/ngx_hash.c next_name->key.len = names[i].key.len - dot_len; i 556 core/ngx_hash.c next_name->key.data = names[i].key.data + dot_len; i 558 core/ngx_hash.c next_name->value = names[i].value; i 605 core/ngx_hash.c ngx_uint_t i, key; i 609 core/ngx_hash.c for (i = 0; i < len; i++) { i 610 core/ngx_hash.c key = ngx_hash(key, data[i]); i 620 core/ngx_hash.c ngx_uint_t i, key; i 624 core/ngx_hash.c for (i = 0; i < len; i++) { i 625 core/ngx_hash.c key = ngx_hash(key, ngx_tolower(data[i])); i 712 core/ngx_hash.c ngx_uint_t i, k, n, skip, last; i 727 core/ngx_hash.c for (i = 0; i < key->len; i++) { i 729 core/ngx_hash.c if (key->data[i] == '*') { i 735 core/ngx_hash.c if (key->data[i] == '.' && key->data[i + 1] == '.') { i 752 core/ngx_hash.c if (key->data[i - 2] == '.' && key->data[i - 1] == '*') { i 768 core/ngx_hash.c for (i = 0; i < last; i++) { i 770 core/ngx_hash.c key->data[i] = ngx_tolower(key->data[i]); i 772 core/ngx_hash.c k = ngx_hash(k, key->data[i]); i 782 core/ngx_hash.c for (i = 0; i < ha->keys_hash[k].nelts; i++) { i 783 core/ngx_hash.c if (last != name[i].len) { i 787 core/ngx_hash.c if (ngx_strncmp(key->data, name[i].data, last) == 0) { i 837 core/ngx_hash.c for (i = 0; i < ha->keys_hash[k].nelts; i++) { i 838 core/ngx_hash.c if (len != name[i].len) { i 842 core/ngx_hash.c if (ngx_strncmp(&key->data[1], name[i].data, len) == 0) { i 886 core/ngx_hash.c for (i = last - 1; i; i--) { i 887 core/ngx_hash.c if (key->data[i] == '.') { i 888 core/ngx_hash.c ngx_memcpy(&p[n], &key->data[i + 1], len); i 944 core/ngx_hash.c for (i = 0; i < keys->nelts; i++) { i 945 core/ngx_hash.c if (len != name[i].len) { i 949 core/ngx_hash.c if (ngx_strncmp(key->data + skip, name[i].data, len) == 0) { i 283 core/ngx_inet.c ngx_uint_t i, zero, last; i 294 core/ngx_inet.c for (i = 0; i < 16; i += 2) { i 296 core/ngx_inet.c if (p[i] || p[i + 1]) { i 308 core/ngx_inet.c last = i; i 332 core/ngx_inet.c for (i = 0; i < n; i += 2) { i 334 core/ngx_inet.c if (i == zero) { i 336 core/ngx_inet.c i += (max - 1) * 2; i 340 core/ngx_inet.c dst = ngx_sprintf(dst, "%uxi", p[i] * 256 + p[i + 1]); i 342 core/ngx_inet.c if (i < 14) { i 365 core/ngx_inet.c ngx_uint_t s, i; i 413 core/ngx_inet.c for (i = 0; i < 16; i++) { i 418 core/ngx_inet.c mask[i] = (u_char) (0 - (1 << (8 - s))); i 420 core/ngx_inet.c if (addr[i] != (addr[i] & mask[i])) { i 422 core/ngx_inet.c addr[i] &= mask[i]; i 903 core/ngx_inet.c ngx_uint_t i; i 931 core/ngx_inet.c for (i = 0; h->h_addr_list[i] != NULL; i++) { /* void */ } i 934 core/ngx_inet.c i = 1; i 939 core/ngx_inet.c u->addrs = ngx_pcalloc(pool, i * sizeof(ngx_addr_t)); i 944 core/ngx_inet.c u->naddrs = i; i 946 core/ngx_inet.c for (i = 0; i < u->naddrs; i++) { i 955 core/ngx_inet.c sin->sin_addr.s_addr = *(in_addr_t *) (h->h_addr_list[i]); i 957 core/ngx_inet.c u->addrs[i].sockaddr = (struct sockaddr *) sin; i 958 core/ngx_inet.c u->addrs[i].socklen = sizeof(struct sockaddr_in); i 969 core/ngx_inet.c u->addrs[i].name.len = len; i 970 core/ngx_inet.c u->addrs[i].name.data = p; i 372 core/ngx_log.c ngx_uint_t i, n, d; i 377 core/ngx_log.c for (i = 2; i < cf->args->nelts; i++) { i 380 core/ngx_log.c if (ngx_strcmp(value[i].data, err_levels[n].data) == 0) { i 385 core/ngx_log.c &value[i]); i 395 core/ngx_log.c if (ngx_strcmp(value[i].data, debug_levels[n++]) == 0) { i 399 core/ngx_log.c &value[i]); i 410 core/ngx_log.c "invalid log level \"%V\"", &value[i]); i 43 core/ngx_rbtree.h #define ngx_rbtree_init(tree, s, i) \ i 47 core/ngx_rbtree.h (tree)->insert = i i 160 core/ngx_regex.c ngx_uint_t i; i 165 core/ngx_regex.c for (i = 0; i < a->nelts; i++) { i 167 core/ngx_regex.c n = ngx_regex_exec(re[i].regex, s, NULL, 0); i 176 core/ngx_regex.c n, s, re[i].name); i 790 core/ngx_resolver.c ngx_uint_t i; i 798 core/ngx_resolver.c for (i = 0; i < 2; i++) { i 969 core/ngx_resolver.c ngx_uint_t i, times, ident, qident, flags, code, nqs, nan, i 1033 core/ngx_resolver.c i = sizeof(ngx_resolver_query_t); i 1035 core/ngx_resolver.c while (i < (ngx_uint_t) n) { i 1036 core/ngx_resolver.c if (buf[i] == '\0') { i 1040 core/ngx_resolver.c len = buf[i]; i 1041 core/ngx_resolver.c i += 1 + len; i 1048 core/ngx_resolver.c if (i++ == 0) { i 1053 core/ngx_resolver.c if (i + sizeof(ngx_resolver_qs_t) + nan * (2 + sizeof(ngx_resolver_an_t)) i 1059 core/ngx_resolver.c qs = (ngx_resolver_qs_t *) &buf[i]; i 1078 core/ngx_resolver.c i + sizeof(ngx_resolver_qs_t)); i 1125 core/ngx_resolver.c ngx_uint_t qtype, qident, naddrs, a, i, n, start; i 1186 core/ngx_resolver.c i = ans; i 1195 core/ngx_resolver.c start = i; i 1197 core/ngx_resolver.c while (i < last) { i 1199 core/ngx_resolver.c if (buf[i] & 0xc0) { i 1200 core/ngx_resolver.c i += 2; i 1204 core/ngx_resolver.c if (buf[i] == 0) { i 1205 core/ngx_resolver.c i++; i 1209 core/ngx_resolver.c i += 1 + buf[i]; i 1216 core/ngx_resolver.c if (i - start < 2) { i 1223 core/ngx_resolver.c if (i + sizeof(ngx_resolver_an_t) >= last) { i 1227 core/ngx_resolver.c an = (ngx_resolver_an_t *) &buf[i]; i 1234 core/ngx_resolver.c i += sizeof(ngx_resolver_an_t); i 1236 core/ngx_resolver.c if (i + len > last) { i 1240 core/ngx_resolver.c addr = htonl((buf[i] << 24) + (buf[i + 1] << 16) i 1241 core/ngx_resolver.c + (buf[i + 2] << 8) + (buf[i + 3])); i 1245 core/ngx_resolver.c i += len; i 1248 core/ngx_resolver.c cname = &buf[i] + sizeof(ngx_resolver_an_t); i 1249 core/ngx_resolver.c i += sizeof(ngx_resolver_an_t) + len; i 1252 core/ngx_resolver.c i += sizeof(ngx_resolver_an_t) + len; i 1276 core/ngx_resolver.c i = ans; i 1282 core/ngx_resolver.c if (buf[i] & 0xc0) { i 1283 core/ngx_resolver.c i += 2; i 1287 core/ngx_resolver.c if (buf[i] == 0) { i 1288 core/ngx_resolver.c i++; i 1292 core/ngx_resolver.c i += 1 + buf[i]; i 1297 core/ngx_resolver.c an = (ngx_resolver_an_t *) &buf[i]; i 1302 core/ngx_resolver.c i += sizeof(ngx_resolver_an_t); i 1306 core/ngx_resolver.c addrs[n++] = htonl((buf[i] << 24) + (buf[i + 1] << 16) i 1307 core/ngx_resolver.c + (buf[i + 2] << 8) + (buf[i + 3])); i 1314 core/ngx_resolver.c i += len; i 1425 core/ngx_resolver.c ngx_uint_t i, mask, qtype, qclass, qident; i 1435 core/ngx_resolver.c i = 12; i 1438 core/ngx_resolver.c len = buf[i++]; i 1440 core/ngx_resolver.c digit = ngx_atoi(&buf[i], len); i 1446 core/ngx_resolver.c i += len; i 1449 core/ngx_resolver.c if (ngx_strcmp(&buf[i], "\7in-addr\4arpa") != 0) { i 1502 core/ngx_resolver.c i += sizeof("\7in-addr\4arpa") + sizeof(ngx_resolver_qs_t); i 1504 core/ngx_resolver.c if (i + 2 + sizeof(ngx_resolver_an_t) > (ngx_uint_t) n) { i 1510 core/ngx_resolver.c if (buf[i] != 0xc0 || buf[i + 1] != 0x0c) { i 1515 core/ngx_resolver.c an = (ngx_resolver_an_t *) &buf[i + 2]; i 1524 core/ngx_resolver.c i += 2 + sizeof(ngx_resolver_an_t); i 1526 core/ngx_resolver.c if (i + len > (ngx_uint_t) n) { i 1530 core/ngx_resolver.c if (ngx_resolver_copy(r, &name, buf, &buf[i], &buf[n]) != NGX_OK) { i 1863 core/ngx_resolver.c ngx_uint_t i, n; i 1873 core/ngx_resolver.c for (i = 0; i < 128; i++) { i 81 core/ngx_slab.c ngx_uint_t i, n, pages; i 104 core/ngx_slab.c for (i = 0; i < n; i++) { i 105 core/ngx_slab.c slots[i].slab = 0; i 106 core/ngx_slab.c slots[i].next = &slots[i]; i 107 core/ngx_slab.c slots[i].prev = 0; i 160 core/ngx_slab.c ngx_uint_t i, slot, shift, map; i 213 core/ngx_slab.c for (m = 1, i = 0; m; m <<= 1, i++) { i 220 core/ngx_slab.c i = ((n * sizeof(uintptr_t) * 8) << shift) i 221 core/ngx_slab.c + (i << shift); i 226 core/ngx_slab.c p = (uintptr_t) bitmap + i; i 241 core/ngx_slab.c p = (uintptr_t) bitmap + i; i 257 core/ngx_slab.c for (m = 1, i = 0; m; m <<= 1, i++) { i 275 core/ngx_slab.c p += i << shift; i 296 core/ngx_slab.c for (m = (uintptr_t) 1 << NGX_SLAB_MAP_SHIFT, i = 0; i 298 core/ngx_slab.c m <<= 1, i++) i 317 core/ngx_slab.c p += i << shift; i 348 core/ngx_slab.c for (i = 1; i < map; i++) { i 349 core/ngx_slab.c bitmap[i] = 0; i 17 core/ngx_spinlock.c ngx_uint_t i, n; i 29 core/ngx_spinlock.c for (i = 0; i < n; i++) { i 1210 core/ngx_string.c uint32_t u, i, valid; i 1244 core/ngx_string.c i = *(*p)++; i 1246 core/ngx_string.c if (i < 0x80) { i 1250 core/ngx_string.c u = (u << 6) | (i & 0x3f); i 344 event/modules/ngx_devpoll_module.c ngx_int_t i; i 408 event/modules/ngx_devpoll_module.c for (i = 0; i < events; i++) { i 410 event/modules/ngx_devpoll_module.c fd = event_list[i].fd; i 411 event/modules/ngx_devpoll_module.c revents = event_list[i].revents; i 467 event/modules/ngx_devpoll_module.c fd, event_list[i].events, revents); i 472 event/modules/ngx_devpoll_module.c fd, event_list[i].events, revents); i 479 event/modules/ngx_devpoll_module.c fd, event_list[i].events, revents); i 518 event/modules/ngx_epoll_module.c ngx_int_t instance, i; i 570 event/modules/ngx_epoll_module.c for (i = 0; i < events; i++) { i 571 event/modules/ngx_epoll_module.c c = event_list[i].data.ptr; i 594 event/modules/ngx_epoll_module.c revents = event_list[i].events; i 598 event/modules/ngx_epoll_module.c c->fd, revents, event_list[i].data.ptr); i 678 event/modules/ngx_epoll_module.c long i, events; i 722 event/modules/ngx_epoll_module.c for (i = 0; i < events; i++) { i 726 event/modules/ngx_epoll_module.c event[i].data, event[i].obj, i 727 event/modules/ngx_epoll_module.c event[i].res, event[i].res2); i 729 event/modules/ngx_epoll_module.c e = (ngx_event_t *) (uintptr_t) event[i].data; i 736 event/modules/ngx_epoll_module.c aio->res = event[i].res; i 384 event/modules/ngx_eventport_module.c ngx_uint_t i, level; i 439 event/modules/ngx_eventport_module.c for (i = 0; i < events; i++) { i 441 event/modules/ngx_eventport_module.c if (event_list[i].portev_source == PORT_SOURCE_TIMER) { i 446 event/modules/ngx_eventport_module.c ev = event_list[i].portev_user; i 448 event/modules/ngx_eventport_module.c switch (event_list[i].portev_source) { i 467 event/modules/ngx_eventport_module.c revents = event_list[i].portev_events; i 471 event/modules/ngx_eventport_module.c event_list[i].portev_object, revents); i 476 event/modules/ngx_eventport_module.c event_list[i].portev_object, revents); i 482 event/modules/ngx_eventport_module.c event_list[i].portev_object, revents); i 566 event/modules/ngx_eventport_module.c event_list[i].portev_object); i 494 event/modules/ngx_kqueue_module.c ngx_int_t i, instance; i 577 event/modules/ngx_kqueue_module.c for (i = 0; i < events; i++) { i 579 event/modules/ngx_kqueue_module.c ngx_kqueue_dump_event(cycle->log, &event_list[i]); i 581 event/modules/ngx_kqueue_module.c if (event_list[i].flags & EV_ERROR) { i 582 event/modules/ngx_kqueue_module.c ngx_log_error(NGX_LOG_ALERT, cycle->log, event_list[i].data, i 584 event/modules/ngx_kqueue_module.c event_list[i].ident, event_list[i].filter, i 585 event/modules/ngx_kqueue_module.c event_list[i].flags); i 591 event/modules/ngx_kqueue_module.c if (event_list[i].filter == EVFILT_TIMER) { i 598 event/modules/ngx_kqueue_module.c ev = (ngx_event_t *) event_list[i].udata; i 600 event/modules/ngx_kqueue_module.c switch (event_list[i].filter) { i 621 event/modules/ngx_kqueue_module.c ngx_kqueue_dump_event(ev->log, &event_list[i]); i 632 event/modules/ngx_kqueue_module.c ev->posted_available = event_list[i].data; i 634 event/modules/ngx_kqueue_module.c if (event_list[i].flags & EV_EOF) { i 636 event/modules/ngx_kqueue_module.c ev->posted_errno = event_list[i].fflags; i 646 event/modules/ngx_kqueue_module.c ev->available = event_list[i].data; i 648 event/modules/ngx_kqueue_module.c if (event_list[i].flags & EV_EOF) { i 650 event/modules/ngx_kqueue_module.c ev->kq_errno = event_list[i].fflags; i 671 event/modules/ngx_kqueue_module.c event_list[i].filter); i 242 event/modules/ngx_poll_module.c ngx_int_t i, nready; i 251 event/modules/ngx_poll_module.c for (i = 0; i < nevents; i++) { i 254 event/modules/ngx_poll_module.c i, event_list[i].fd, event_list[i].events); i 304 event/modules/ngx_poll_module.c for (i = 0; i < nevents && ready; i++) { i 306 event/modules/ngx_poll_module.c revents = event_list[i].revents; i 311 event/modules/ngx_poll_module.c i, event_list[i].fd, event_list[i].events, revents); i 316 event/modules/ngx_poll_module.c i, event_list[i].fd, event_list[i].events, revents); i 323 event/modules/ngx_poll_module.c event_list[i].fd, event_list[i].events, revents); i 329 event/modules/ngx_poll_module.c event_list[i].fd, event_list[i].events, revents); i 332 event/modules/ngx_poll_module.c if (event_list[i].fd == -1) { i 340 event/modules/ngx_poll_module.c c = ngx_cycle->files[event_list[i].fd]; i 350 event/modules/ngx_poll_module.c if (i == nevents - 1) { i 353 event/modules/ngx_poll_module.c event_list[i].fd = -1; i 469 event/modules/ngx_rtsig_module.c ngx_uint_t tested, n, i; i 546 event/modules/ngx_rtsig_module.c for (i = 0; i < n; i++) { i 547 event/modules/ngx_rtsig_module.c c = cycle->files[overflow_list[i].fd]; i 558 event/modules/ngx_rtsig_module.c && (overflow_list[i].revents i 586 event/modules/ngx_rtsig_module.c && (overflow_list[i].revents i 215 event/modules/ngx_select_module.c ngx_uint_t i, found; i 221 event/modules/ngx_select_module.c for (i = 0; i < nevents; i++) { i 222 event/modules/ngx_select_module.c c = event_index[i]->data; i 234 event/modules/ngx_select_module.c for (i = 0; i < nevents; i++) { i 235 event/modules/ngx_select_module.c ev = event_index[i]; i 311 event/modules/ngx_select_module.c for (i = 0; i < nevents; i++) { i 312 event/modules/ngx_select_module.c ev = event_index[i]; i 222 event/modules/ngx_win32_select_module.c ngx_uint_t i, found; i 229 event/modules/ngx_win32_select_module.c for (i = 0; i < nevents; i++) { i 230 event/modules/ngx_win32_select_module.c ev = event_index[i]; i 302 event/modules/ngx_win32_select_module.c for (i = 0; i < nevents; i++) { i 303 event/modules/ngx_win32_select_module.c ev = event_index[i]; i 350 event/modules/ngx_win32_select_module.c u_int i; i 355 event/modules/ngx_win32_select_module.c for (i = 0; i < master_read_fd_set.fd_count; i++) { i 357 event/modules/ngx_win32_select_module.c s = master_read_fd_set.fd_array[i]; i 370 event/modules/ngx_win32_select_module.c for (i = 0; i < master_write_fd_set.fd_count; i++) { i 372 event/modules/ngx_win32_select_module.c s = master_write_fd_set.fd_array[i]; i 576 event/ngx_event.c ngx_uint_t m, i; i 688 event/ngx_event.c for (i = 0; i < cycle->connection_n; i++) { i 689 event/ngx_event.c rev[i].closed = 1; i 690 event/ngx_event.c rev[i].instance = 1; i 692 event/ngx_event.c rev[i].lock = &c[i].lock; i 693 event/ngx_event.c rev[i].own_lock = &c[i].lock; i 704 event/ngx_event.c for (i = 0; i < cycle->connection_n; i++) { i 705 event/ngx_event.c wev[i].closed = 1; i 707 event/ngx_event.c wev[i].lock = &c[i].lock; i 708 event/ngx_event.c wev[i].own_lock = &c[i].lock; i 712 event/ngx_event.c i = cycle->connection_n; i 716 event/ngx_event.c i--; i 718 event/ngx_event.c c[i].data = next; i 719 event/ngx_event.c c[i].read = &cycle->read_events[i]; i 720 event/ngx_event.c c[i].write = &cycle->write_events[i]; i 721 event/ngx_event.c c[i].fd = (ngx_socket_t) -1; i 723 event/ngx_event.c next = &c[i]; i 726 event/ngx_event.c c[i].lock = 0; i 728 event/ngx_event.c } while (i); i 736 event/ngx_event.c for (i = 0; i < cycle->listening.nelts; i++) { i 738 event/ngx_event.c c = ngx_get_connection(ls[i].fd, cycle->log); i 744 event/ngx_event.c c->log = &ls[i].log; i 746 event/ngx_event.c c->listening = &ls[i]; i 747 event/ngx_event.c ls[i].connection = c; i 755 event/ngx_event.c rev->deferred_accept = ls[i].deferred_accept; i 759 event/ngx_event.c if (ls[i].previous) { i 766 event/ngx_event.c old = ls[i].previous->connection; i 793 event/ngx_event.c ls[i].log.handler = ngx_acceptex_log_error; i 796 event/ngx_event.c if (ngx_event_post_acceptex(&ls[i], iocpcf->post_acceptex) i 881 event/ngx_event.c ngx_uint_t i; i 888 event/ngx_event.c for (i = 0; ngx_modules[i]; i++) { i 889 event/ngx_event.c if (ngx_modules[i]->type != NGX_EVENT_MODULE) { i 893 event/ngx_event.c ngx_modules[i]->ctx_index = ngx_event_max_module++; i 908 event/ngx_event.c for (i = 0; ngx_modules[i]; i++) { i 909 event/ngx_event.c if (ngx_modules[i]->type != NGX_EVENT_MODULE) { i 913 event/ngx_event.c m = ngx_modules[i]->ctx; i 916 event/ngx_event.c (*ctx)[ngx_modules[i]->ctx_index] = m->create_conf(cf->cycle); i 917 event/ngx_event.c if ((*ctx)[ngx_modules[i]->ctx_index] == NULL) { i 935 event/ngx_event.c for (i = 0; ngx_modules[i]; i++) { i 936 event/ngx_event.c if (ngx_modules[i]->type != NGX_EVENT_MODULE) { i 940 event/ngx_event.c m = ngx_modules[i]->ctx; i 943 event/ngx_event.c rv = m->init_conf(cf->cycle, (*ctx)[ngx_modules[i]->ctx_index]); i 1158 event/ngx_event.c ngx_int_t i; i 1211 event/ngx_event.c for (i = 0; ngx_modules[i]; i++) { i 1213 event/ngx_event.c if (ngx_modules[i]->type != NGX_EVENT_MODULE) { i 1217 event/ngx_event.c event_module = ngx_modules[i]->ctx; i 1224 event/ngx_event.c module = ngx_modules[i]; i 254 event/ngx_event_accept.c in_addr_t i; i 260 event/ngx_event_accept.c for (i = 0; i < ecf->debug_connection.nelts; i++) { i 261 event/ngx_event_accept.c if ((sin->sin_addr.s_addr & dc[i].mask) == dc[i].addr) { i 337 event/ngx_event_accept.c ngx_uint_t i; i 342 event/ngx_event_accept.c for (i = 0; i < cycle->listening.nelts; i++) { i 344 event/ngx_event_accept.c c = ls[i].connection; i 366 event/ngx_event_accept.c ngx_uint_t i; i 371 event/ngx_event_accept.c for (i = 0; i < cycle->listening.nelts; i++) { i 373 event/ngx_event_accept.c c = ls[i].connection; i 208 event/ngx_event_busy_lock.c ngx_uint_t i, bit, cacheable, mask; i 218 event/ngx_event_busy_lock.c for (i = 0; i < bl->max_busy; i++) { i 221 event/ngx_event_busy_lock.c mask = bl->md5_mask[i / 8]; i 225 event/ngx_event_busy_lock.c if (ngx_memcmp(&bl->md5[i * 16], ctx->md5, 16) == 0) { i 227 event/ngx_event_busy_lock.c ctx->slot = i; i 233 event/ngx_event_busy_lock.c free = i; i 238 event/ngx_event_busy_lock.c free = i + 1; i 2069 event/ngx_event_openssl.c ngx_uint_t i; i 2083 event/ngx_event_openssl.c for (i = 0; i < cert.len - 1; i++) { i 2084 event/ngx_event_openssl.c if (cert.data[i] == LF) { i 2097 event/ngx_event_openssl.c for (i = 0; i < cert.len - 1; i++) { i 2098 event/ngx_event_openssl.c *p++ = cert.data[i]; i 2099 event/ngx_event_openssl.c if (cert.data[i] == LF) { i 49 event/ngx_event_posted.c ngx_int_t i; i 74 event/ngx_event_posted.c for (i = 0; i < ngx_threads_n; i++) { i 75 event/ngx_event_posted.c if (ngx_threads[i].state == NGX_THREAD_FREE) { i 76 event/ngx_event_posted.c ngx_cond_signal(ngx_threads[i].cv); i 150 http/modules/ngx_http_access_module.c ngx_uint_t i; i 154 http/modules/ngx_http_access_module.c for (i = 0; i < alcf->rules->nelts; i++) { i 158 http/modules/ngx_http_access_module.c addr, rule[i].mask, rule[i].addr); i 160 http/modules/ngx_http_access_module.c if ((addr & rule[i].mask) == rule[i].addr) { i 161 http/modules/ngx_http_access_module.c return ngx_http_access_found(r, rule[i].deny); i 176 http/modules/ngx_http_access_module.c ngx_uint_t i; i 180 http/modules/ngx_http_access_module.c for (i = 0; i < alcf->rules6->nelts; i++) { i 190 http/modules/ngx_http_access_module.c ml = ngx_inet6_ntop(rule6[i].mask.s6_addr, mt, NGX_INET6_ADDRSTRLEN); i 191 http/modules/ngx_http_access_module.c al = ngx_inet6_ntop(rule6[i].addr.s6_addr, at, NGX_INET6_ADDRSTRLEN); i 199 http/modules/ngx_http_access_module.c if ((p[n] & rule6[i].mask.s6_addr[n]) != rule6[i].addr.s6_addr[n]) { i 204 http/modules/ngx_http_access_module.c return ngx_http_access_found(r, rule6[i].deny); i 105 http/modules/ngx_http_auth_basic_module.c ngx_uint_t i, level, login, left, passwd; i 180 http/modules/ngx_http_auth_basic_module.c i = left; i 194 http/modules/ngx_http_auth_basic_module.c for (i = left; i < left + n; i++) { i 200 http/modules/ngx_http_auth_basic_module.c if (buf[i] == '#' || buf[i] == CR) { i 205 http/modules/ngx_http_auth_basic_module.c if (buf[i] == LF) { i 210 http/modules/ngx_http_auth_basic_module.c if (buf[i] != r->headers_in.user.data[login]) { i 217 http/modules/ngx_http_auth_basic_module.c passwd = i + 1; i 225 http/modules/ngx_http_auth_basic_module.c if (buf[i] == LF || buf[i] == CR || buf[i] == ':') { i 226 http/modules/ngx_http_auth_basic_module.c buf[i] = '\0'; i 230 http/modules/ngx_http_auth_basic_module.c pwd.len = i - passwd; i 240 http/modules/ngx_http_auth_basic_module.c if (buf[i] == LF) { i 264 http/modules/ngx_http_auth_basic_module.c pwd.len = i - passwd; i 148 http/modules/ngx_http_autoindex_module.c ngx_uint_t i, level, utf8; i 371 http/modules/ngx_http_autoindex_module.c for (i = 0; i < entries.nelts; i++) { i 373 http/modules/ngx_http_autoindex_module.c + entry[i].name.len + entry[i].escape i 376 http/modules/ngx_http_autoindex_module.c + entry[i].name.len - entry[i].utf_len + entry[i].colon * 2 i 406 http/modules/ngx_http_autoindex_module.c for (i = 0; i < entries.nelts; i++) { i 409 http/modules/ngx_http_autoindex_module.c if (entry[i].colon) { i 414 http/modules/ngx_http_autoindex_module.c if (entry[i].escape) { i 415 http/modules/ngx_http_autoindex_module.c ngx_escape_uri(b->last, entry[i].name.data, entry[i].name.len, i 418 http/modules/ngx_http_autoindex_module.c b->last += entry[i].name.len + entry[i].escape; i 421 http/modules/ngx_http_autoindex_module.c b->last = ngx_cpymem(b->last, entry[i].name.data, i 422 http/modules/ngx_http_autoindex_module.c entry[i].name.len); i 425 http/modules/ngx_http_autoindex_module.c if (entry[i].dir) { i 432 http/modules/ngx_http_autoindex_module.c len = entry[i].utf_len; i 434 http/modules/ngx_http_autoindex_module.c if (entry[i].name.len != len) { i 442 http/modules/ngx_http_autoindex_module.c b->last = ngx_utf8_cpystrn(b->last, entry[i].name.data, i 443 http/modules/ngx_http_autoindex_module.c utf_len, entry[i].name.len + 1); i 447 http/modules/ngx_http_autoindex_module.c b->last = ngx_cpystrn(b->last, entry[i].name.data, i 456 http/modules/ngx_http_autoindex_module.c if (entry[i].dir && NGX_HTTP_AUTOINDEX_NAME_LEN - len > 0) { i 468 http/modules/ngx_http_autoindex_module.c ngx_gmtime(entry[i].mtime + tp->gmtoff * 60 * alcf->localtime, &tm); i 478 http/modules/ngx_http_autoindex_module.c if (entry[i].dir) { i 482 http/modules/ngx_http_autoindex_module.c b->last = ngx_sprintf(b->last, "%19O", entry[i].size); i 486 http/modules/ngx_http_autoindex_module.c if (entry[i].dir) { i 491 http/modules/ngx_http_autoindex_module.c length = entry[i].size; i 262 http/modules/ngx_http_browser_module.c ngx_uint_t i, version, ver, scale; i 280 http/modules/ngx_http_browser_module.c for (i = 0; i < cf->modern_browsers->nelts; i++) { i 281 http/modules/ngx_http_browser_module.c name = ua + modern[i].skip; i 287 http/modules/ngx_http_browser_module.c name = (u_char *) ngx_strstr(name, modern[i].name); i 296 http/modules/ngx_http_browser_module.c name += modern[i].add; i 303 http/modules/ngx_http_browser_module.c "version: \"%ui\" \"%s\"", modern[i].version, name); i 323 http/modules/ngx_http_browser_module.c modern[i].version, version); i 325 http/modules/ngx_http_browser_module.c if (version > modern[i].version) { i 341 http/modules/ngx_http_browser_module.c modern[i].version, version); i 343 http/modules/ngx_http_browser_module.c if (version >= modern[i].version) { i 367 http/modules/ngx_http_browser_module.c for (i = 0; i < cf->ancient_browsers->nelts; i++) { i 368 http/modules/ngx_http_browser_module.c if (len >= ancient[i].len i 369 http/modules/ngx_http_browser_module.c && ngx_strstr(ua, ancient[i].data) != NULL) i 451 http/modules/ngx_http_browser_module.c ngx_uint_t i, n; i 466 http/modules/ngx_http_browser_module.c for (i = 0; i < conf->modern_browsers->nelts; i++) { i 467 http/modules/ngx_http_browser_module.c if (browsers[i].skip == 0) { i 493 http/modules/ngx_http_browser_module.c for (i = 0; i < conf->modern_browsers->nelts; i++) { i 494 http/modules/ngx_http_browser_module.c n = browsers[i].skip; i 496 http/modules/ngx_http_browser_module.c browsers[i].skip = ngx_http_modern_browser_masks[n].skip; i 497 http/modules/ngx_http_browser_module.c browsers[i].add = ngx_http_modern_browser_masks[n].add; i 498 http/modules/ngx_http_browser_module.c (void) ngx_cpystrn(browsers[i].name, i 544 http/modules/ngx_http_browser_module.c ngx_uint_t i, n, version, ver, scale; i 599 http/modules/ngx_http_browser_module.c for (i = 0; i < value[2].len; i++) { i 601 http/modules/ngx_http_browser_module.c c = value[2].data[i]; i 635 http/modules/ngx_http_browser_module.c ngx_uint_t i; i 639 http/modules/ngx_http_browser_module.c for (i = 1; i < cf->args->nelts; i++) { i 640 http/modules/ngx_http_browser_module.c if (ngx_strcmp(value[i].data, "netscape4") == 0) { i 658 http/modules/ngx_http_browser_module.c *browser = value[i]; i 462 http/modules/ngx_http_charset_filter_module.c ngx_uint_t i, n; i 471 http/modules/ngx_http_charset_filter_module.c for (i = 0; i < n; i++) { i 472 http/modules/ngx_http_charset_filter_module.c if (charset[i].name.len != name->len) { i 476 http/modules/ngx_http_charset_filter_module.c if (ngx_strncasecmp(charset[i].name.data, name->data, name->len) == 0) { i 477 http/modules/ngx_http_charset_filter_module.c return i; i 687 http/modules/ngx_http_charset_filter_module.c ngx_uint_t i; i 783 http/modules/ngx_http_charset_filter_module.c for (i = ctx->saved_len; i < NGX_UTF_LEN; i++) { i 784 http/modules/ngx_http_charset_filter_module.c ctx->saved[i] = *p++; i 792 http/modules/ngx_http_charset_filter_module.c n = ngx_utf8_decode(&saved, i); i 808 http/modules/ngx_http_charset_filter_module.c if (i < NGX_UTF_LEN) { i 821 http/modules/ngx_http_charset_filter_module.c ngx_memcpy(&ctx->saved[ctx->saved_len], src, i); i 822 http/modules/ngx_http_charset_filter_module.c ctx->saved_len += i; i 1173 http/modules/ngx_http_charset_filter_module.c ngx_uint_t i, n; i 1200 http/modules/ngx_http_charset_filter_module.c for (i = 0; i < mcf->tables.nelts; i++) { i 1238 http/modules/ngx_http_charset_filter_module.c for (i = 0; i < 128; i++) { i 1239 http/modules/ngx_http_charset_filter_module.c p = &table->src2dst[i * NGX_UTF_LEN]; i 1241 http/modules/ngx_http_charset_filter_module.c p[1] = (u_char) i; i 1242 http/modules/ngx_http_charset_filter_module.c dst2src[i] = (u_char) i; i 1245 http/modules/ngx_http_charset_filter_module.c for (/* void */; i < 256; i++) { i 1246 http/modules/ngx_http_charset_filter_module.c p = &table->src2dst[i * NGX_UTF_LEN]; i 1262 http/modules/ngx_http_charset_filter_module.c for (i = 0; i < 128; i++) { i 1263 http/modules/ngx_http_charset_filter_module.c table->src2dst[i] = (u_char) i; i 1264 http/modules/ngx_http_charset_filter_module.c table->dst2src[i] = (u_char) i; i 1267 http/modules/ngx_http_charset_filter_module.c for (/* void */; i < 256; i++) { i 1268 http/modules/ngx_http_charset_filter_module.c table->src2dst[i] = '?'; i 1269 http/modules/ngx_http_charset_filter_module.c table->dst2src[i] = '?'; i 1308 http/modules/ngx_http_charset_filter_module.c ngx_uint_t i; i 1334 http/modules/ngx_http_charset_filter_module.c for (i = 0; i < value[1].len; i += 2) { i 1335 http/modules/ngx_http_charset_filter_module.c dst = ngx_hextoi(&value[1].data[i], 2); i 1345 http/modules/ngx_http_charset_filter_module.c i /= 2; i 1347 http/modules/ngx_http_charset_filter_module.c ctx->charset->length += i; i 1352 http/modules/ngx_http_charset_filter_module.c n = ngx_utf8_decode(&p, i); i 1446 http/modules/ngx_http_charset_filter_module.c ngx_uint_t i; i 1450 http/modules/ngx_http_charset_filter_module.c for (i = 0; i < charsets->nelts; i++) { i 1451 http/modules/ngx_http_charset_filter_module.c if (name->len != c[i].name.len) { i 1455 http/modules/ngx_http_charset_filter_module.c if (ngx_strcasecmp(name->data, c[i].name.data) == 0) { i 1460 http/modules/ngx_http_charset_filter_module.c if (i < charsets->nelts) { i 1461 http/modules/ngx_http_charset_filter_module.c return i; i 1480 http/modules/ngx_http_charset_filter_module.c return i; i 1549 http/modules/ngx_http_charset_filter_module.c ngx_uint_t i; i 1582 http/modules/ngx_http_charset_filter_module.c for (i = 0; i < mcf->recodes.nelts; i++) { i 1583 http/modules/ngx_http_charset_filter_module.c if (conf->source_charset == recode[i].src i 1584 http/modules/ngx_http_charset_filter_module.c && conf->charset == recode[i].dst) i 1607 http/modules/ngx_http_charset_filter_module.c ngx_uint_t i, t; i 1620 http/modules/ngx_http_charset_filter_module.c for (i = 0; i < mcf->recodes.nelts; i++) { i 1622 http/modules/ngx_http_charset_filter_module.c c = recode[i].src; i 1626 http/modules/ngx_http_charset_filter_module.c if (c == tables[t].src && recode[i].dst == tables[t].dst) { i 1630 http/modules/ngx_http_charset_filter_module.c if (c == tables[t].dst && recode[i].dst == tables[t].src) { i 1637 http/modules/ngx_http_charset_filter_module.c &charset[c].name, &charset[recode[i].dst].name); i 288 http/modules/ngx_http_dav_module.c ngx_uint_t i, d, dir; i 304 http/modules/ngx_http_dav_module.c for (i = 0; i < r->uri.len; /* void */) { i 305 http/modules/ngx_http_dav_module.c if (r->uri.data[i++] == '/') { i 306 http/modules/ngx_http_dav_module.c if (++d >= dlcf->min_delete_depth && i < r->uri.len) { i 694 http/modules/ngx_http_fastcgi_module.c ngx_uint_t i, n, next, hash, header_params; i 749 http/modules/ngx_http_fastcgi_module.c for (i = 0; /* void */; i++) { i 751 http/modules/ngx_http_fastcgi_module.c if (i >= part->nelts) { i 758 http/modules/ngx_http_fastcgi_module.c i = 0; i 762 http/modules/ngx_http_fastcgi_module.c if (allocated < header[i].key.len) { i 763 http/modules/ngx_http_fastcgi_module.c allocated = header[i].key.len + 16; i 772 http/modules/ngx_http_fastcgi_module.c for (n = 0; n < header[i].key.len; n++) { i 773 http/modules/ngx_http_fastcgi_module.c ch = header[i].key.data[n]; i 787 http/modules/ngx_http_fastcgi_module.c ignored[header_params++] = &header[i]; i 794 http/modules/ngx_http_fastcgi_module.c n = sizeof("HTTP_") - 1 + header[i].key.len; i 797 http/modules/ngx_http_fastcgi_module.c len += ((n > 127) ? 4 : 1) + ((header[i].value.len > 127) ? 4 : 1) i 798 http/modules/ngx_http_fastcgi_module.c + n + header[i].value.len; i 906 http/modules/ngx_http_fastcgi_module.c for (i = 0; /* void */; i++) { i 908 http/modules/ngx_http_fastcgi_module.c if (i >= part->nelts) { i 915 http/modules/ngx_http_fastcgi_module.c i = 0; i 919 http/modules/ngx_http_fastcgi_module.c if (&header[i] == ignored[n]) { i 924 http/modules/ngx_http_fastcgi_module.c key_len = sizeof("HTTP_") - 1 + header[i].key.len; i 935 http/modules/ngx_http_fastcgi_module.c val_len = header[i].value.len; i 948 http/modules/ngx_http_fastcgi_module.c for (n = 0; n < header[i].key.len; n++) { i 949 http/modules/ngx_http_fastcgi_module.c ch = header[i].key.data[n]; i 961 http/modules/ngx_http_fastcgi_module.c b->last = ngx_copy(b->last, header[i].value.data, val_len); i 1143 http/modules/ngx_http_fastcgi_module.c ngx_uint_t i; i 1252 http/modules/ngx_http_fastcgi_module.c for (i = 0; i < flcf->catch_stderr->nelts; i++) { i 1253 http/modules/ngx_http_fastcgi_module.c if (ngx_strnstr(msg, (char *) pattern[i].data, i 1384 http/modules/ngx_http_fastcgi_module.c for (i = 0; i < f->split_parts->nelts; i++) { i 1385 http/modules/ngx_http_fastcgi_module.c size += part[i].end - part[i].start; i 1395 http/modules/ngx_http_fastcgi_module.c for (i = 0; i < f->split_parts->nelts; i++) { i 1396 http/modules/ngx_http_fastcgi_module.c p = ngx_cpymem(p, part[i].start, i 1397 http/modules/ngx_http_fastcgi_module.c part[i].end - part[i].start); i 2019 http/modules/ngx_http_fastcgi_module.c ngx_uint_t i; i 2342 http/modules/ngx_http_fastcgi_module.c for (i = 0; i < conf->params_source->nelts; i++) { i 2343 http/modules/ngx_http_fastcgi_module.c if (ngx_strcasecmp(h->key.data, src[i].key.data) == 0) { i 2365 http/modules/ngx_http_fastcgi_module.c for (i = 0; i < conf->params_source->nelts; i++) { i 2367 http/modules/ngx_http_fastcgi_module.c if (src[i].key.len > sizeof("HTTP_") - 1 i 2368 http/modules/ngx_http_fastcgi_module.c && ngx_strncmp(src[i].key.data, "HTTP_", sizeof("HTTP_") - 1) == 0) i 2375 http/modules/ngx_http_fastcgi_module.c hk->key.len = src[i].key.len - 5; i 2376 http/modules/ngx_http_fastcgi_module.c hk->key.data = src[i].key.data + 5; i 2380 http/modules/ngx_http_fastcgi_module.c if (src[i].value.len == 0) { i 2392 http/modules/ngx_http_fastcgi_module.c copy->len = src[i].key.len; i 2396 http/modules/ngx_http_fastcgi_module.c + src[i].key.len + sizeof(uintptr_t) - 1) i 2405 http/modules/ngx_http_fastcgi_module.c copy->len = src[i].key.len; i 2408 http/modules/ngx_http_fastcgi_module.c ngx_memcpy(p, src[i].key.data, src[i].key.len); i 2414 http/modules/ngx_http_fastcgi_module.c sc.source = &src[i].value; i 67 http/modules/ngx_http_flv_module.c ngx_uint_t level, i; i 163 http/modules/ngx_http_flv_module.c i = 1; i 177 http/modules/ngx_http_flv_module.c i = 0; i 192 http/modules/ngx_http_flv_module.c if (i == 0) { i 240 http/modules/ngx_http_flv_module.c return ngx_http_output_filter(r, &out[i]); i 217 http/modules/ngx_http_geo_module.c ngx_uint_t i, n; i 232 http/modules/ngx_http_geo_module.c for (i = 0; i < n; i++) { i 233 http/modules/ngx_http_geo_module.c if ((addr & proxies[i].mask) == proxies[i].addr) { i 296 http/modules/ngx_http_geo_module.c ngx_uint_t i; i 370 http/modules/ngx_http_geo_module.c for (i = 0; i < 0x10000; i++) { i 371 http/modules/ngx_http_geo_module.c a = (ngx_array_t *) ctx.high.low[i]; i 379 http/modules/ngx_http_geo_module.c ctx.high.low[i] = ngx_palloc(cf->pool, len + sizeof(void *)); i 380 http/modules/ngx_http_geo_module.c if (ctx.high.low[i] == NULL) { i 384 http/modules/ngx_http_geo_module.c p = (void **) ngx_cpymem(ctx.high.low[i], a->elts, len); i 633 http/modules/ngx_http_geo_module.c ngx_uint_t h, i, s, e; i 666 http/modules/ngx_http_geo_module.c i = a->nelts; i 669 http/modules/ngx_http_geo_module.c while (i) { i 671 http/modules/ngx_http_geo_module.c i--; i 673 http/modules/ngx_http_geo_module.c if (e < (ngx_uint_t) range[i].start) { i 677 http/modules/ngx_http_geo_module.c if (s > (ngx_uint_t) range[i].end) { i 688 http/modules/ngx_http_geo_module.c ngx_memmove(&range[i + 2], &range[i + 1], i 689 http/modules/ngx_http_geo_module.c (a->nelts - 2 - i) * sizeof(ngx_http_geo_range_t)); i 691 http/modules/ngx_http_geo_module.c range[i + 1].start = (u_short) s; i 692 http/modules/ngx_http_geo_module.c range[i + 1].end = (u_short) e; i 693 http/modules/ngx_http_geo_module.c range[i + 1].value = ctx->value; i 698 http/modules/ngx_http_geo_module.c if (s == (ngx_uint_t) range[i].start i 699 http/modules/ngx_http_geo_module.c && e == (ngx_uint_t) range[i].end) i 703 http/modules/ngx_http_geo_module.c ctx->net, ctx->value, range[i].value); i 705 http/modules/ngx_http_geo_module.c range[i].value = ctx->value; i 710 http/modules/ngx_http_geo_module.c if (s > (ngx_uint_t) range[i].start i 711 http/modules/ngx_http_geo_module.c && e < (ngx_uint_t) range[i].end) i 727 http/modules/ngx_http_geo_module.c ngx_memmove(&range[i + 3], &range[i + 1], i 728 http/modules/ngx_http_geo_module.c (a->nelts - 3 - i) * sizeof(ngx_http_geo_range_t)); i 730 http/modules/ngx_http_geo_module.c range[i + 2].start = (u_short) (e + 1); i 731 http/modules/ngx_http_geo_module.c range[i + 2].end = range[i].end; i 732 http/modules/ngx_http_geo_module.c range[i + 2].value = range[i].value; i 734 http/modules/ngx_http_geo_module.c range[i + 1].start = (u_short) s; i 735 http/modules/ngx_http_geo_module.c range[i + 1].end = (u_short) e; i 736 http/modules/ngx_http_geo_module.c range[i + 1].value = ctx->value; i 738 http/modules/ngx_http_geo_module.c range[i].end = (u_short) (s - 1); i 743 http/modules/ngx_http_geo_module.c if (s == (ngx_uint_t) range[i].start i 744 http/modules/ngx_http_geo_module.c && e < (ngx_uint_t) range[i].end) i 755 http/modules/ngx_http_geo_module.c ngx_memmove(&range[i + 1], &range[i], i 756 http/modules/ngx_http_geo_module.c (a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t)); i 758 http/modules/ngx_http_geo_module.c range[i + 1].start = (u_short) (e + 1); i 760 http/modules/ngx_http_geo_module.c range[i].start = (u_short) s; i 761 http/modules/ngx_http_geo_module.c range[i].end = (u_short) e; i 762 http/modules/ngx_http_geo_module.c range[i].value = ctx->value; i 767 http/modules/ngx_http_geo_module.c if (s > (ngx_uint_t) range[i].start i 768 http/modules/ngx_http_geo_module.c && e == (ngx_uint_t) range[i].end) i 779 http/modules/ngx_http_geo_module.c ngx_memmove(&range[i + 2], &range[i + 1], i 780 http/modules/ngx_http_geo_module.c (a->nelts - 2 - i) * sizeof(ngx_http_geo_range_t)); i 782 http/modules/ngx_http_geo_module.c range[i + 1].start = (u_short) s; i 783 http/modules/ngx_http_geo_module.c range[i + 1].end = (u_short) e; i 784 http/modules/ngx_http_geo_module.c range[i + 1].value = ctx->value; i 786 http/modules/ngx_http_geo_module.c range[i].end = (u_short) (s - 1); i 791 http/modules/ngx_http_geo_module.c s = (ngx_uint_t) range[i].start; i 792 http/modules/ngx_http_geo_module.c e = (ngx_uint_t) range[i].end; i 828 http/modules/ngx_http_geo_module.c ngx_uint_t h, i, s, e, warn; i 859 http/modules/ngx_http_geo_module.c for (i = 0; i < a->nelts; i++) { i 861 http/modules/ngx_http_geo_module.c if (s == (ngx_uint_t) range[i].start i 862 http/modules/ngx_http_geo_module.c && e == (ngx_uint_t) range[i].end) i 864 http/modules/ngx_http_geo_module.c ngx_memmove(&range[i], &range[i + 1], i 865 http/modules/ngx_http_geo_module.c (a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t)); i 872 http/modules/ngx_http_geo_module.c if (s != (ngx_uint_t) range[i].start i 873 http/modules/ngx_http_geo_module.c && e != (ngx_uint_t) range[i].end) i 892 http/modules/ngx_http_geo_module.c ngx_uint_t i; i 941 http/modules/ngx_http_geo_module.c for (i = 2; i; i--) { i 1150 http/modules/ngx_http_geo_module.c ngx_uint_t i; i 1257 http/modules/ngx_http_geo_module.c for (i = 0; i < 0x10000; i++) { i 1258 http/modules/ngx_http_geo_module.c ngx_crc32_update(&crc32, (u_char *) &ranges[i], sizeof(void *)); i 1259 http/modules/ngx_http_geo_module.c if (ranges[i]) { i 1260 http/modules/ngx_http_geo_module.c ranges[i] = (ngx_http_geo_range_t *) i 1261 http/modules/ngx_http_geo_module.c ((u_char *) ranges[i] + (size_t) base); i 1318 http/modules/ngx_http_geo_module.c ngx_uint_t i; i 1353 http/modules/ngx_http_geo_module.c for (i = 0; i < 0x10000; i++) { i 1354 http/modules/ngx_http_geo_module.c r = ctx->high.low[i]; i 1360 http/modules/ngx_http_geo_module.c ranges[i] = (ngx_http_geo_range_t *) (p - (u_char *) fm.addr); i 138 http/modules/ngx_http_headers_filter_module.c ngx_uint_t i; i 163 http/modules/ngx_http_headers_filter_module.c for (i = 0; i < conf->headers->nelts; i++) { i 165 http/modules/ngx_http_headers_filter_module.c if (ngx_http_complex_value(r, &h[i].value, &value) != NGX_OK) { i 169 http/modules/ngx_http_headers_filter_module.c if (h[i].handler(r, &h[i], &value) != NGX_OK) { i 184 http/modules/ngx_http_headers_filter_module.c ngx_uint_t i; i 231 http/modules/ngx_http_headers_filter_module.c for (i = 1; i < r->headers_out.cache_control.nelts; i++) { i 232 http/modules/ngx_http_headers_filter_module.c ccp[i]->hash = 0; i 559 http/modules/ngx_http_headers_filter_module.c ngx_uint_t i; i 585 http/modules/ngx_http_headers_filter_module.c for (i = 0; set[i].name.len; i++) { i 586 http/modules/ngx_http_headers_filter_module.c if (ngx_strcasecmp(value[1].data, set[i].name.data) != 0) { i 590 http/modules/ngx_http_headers_filter_module.c hv->offset = set[i].offset; i 591 http/modules/ngx_http_headers_filter_module.c hv->handler = set[i].handler; i 1201 http/modules/ngx_http_image_filter_module.c ngx_uint_t i; i 1207 http/modules/ngx_http_image_filter_module.c i = 1; i 1210 http/modules/ngx_http_image_filter_module.c if (ngx_strcmp(value[i].data, "off") == 0) { i 1213 http/modules/ngx_http_image_filter_module.c } else if (ngx_strcmp(value[i].data, "test") == 0) { i 1216 http/modules/ngx_http_image_filter_module.c } else if (ngx_strcmp(value[i].data, "size") == 0) { i 1227 http/modules/ngx_http_image_filter_module.c if (ngx_strcmp(value[i].data, "rotate") == 0) { i 1233 http/modules/ngx_http_image_filter_module.c ccv.value = &value[++i]; i 1241 http/modules/ngx_http_image_filter_module.c n = ngx_http_image_filter_value(&value[i]); i 1266 http/modules/ngx_http_image_filter_module.c if (ngx_strcmp(value[i].data, "resize") == 0) { i 1269 http/modules/ngx_http_image_filter_module.c } else if (ngx_strcmp(value[i].data, "crop") == 0) { i 1279 http/modules/ngx_http_image_filter_module.c ccv.value = &value[++i]; i 1287 http/modules/ngx_http_image_filter_module.c n = ngx_http_image_filter_value(&value[i]); i 1307 http/modules/ngx_http_image_filter_module.c ccv.value = &value[++i]; i 1315 http/modules/ngx_http_image_filter_module.c n = ngx_http_image_filter_value(&value[i]); i 1337 http/modules/ngx_http_image_filter_module.c &value[i]); i 102 http/modules/ngx_http_index_module.c ngx_uint_t i, dir_tested; i 130 http/modules/ngx_http_index_module.c for (i = 0; i < ilcf->indices->nelts; i++) { i 132 http/modules/ngx_http_index_module.c if (index[i].lengths == NULL) { i 134 http/modules/ngx_http_index_module.c if (index[i].name.data[0] == '/') { i 135 http/modules/ngx_http_index_module.c return ngx_http_internal_redirect(r, &index[i].name, &r->args); i 139 http/modules/ngx_http_index_module.c len = index[i].name.len; i 144 http/modules/ngx_http_index_module.c e.ip = index[i].lengths->elts; i 171 http/modules/ngx_http_index_module.c if (index[i].values == NULL) { i 175 http/modules/ngx_http_index_module.c ngx_memcpy(name, index[i].name.data, index[i].name.len); i 177 http/modules/ngx_http_index_module.c path.len = (name + index[i].name.len - 1) - path.data; i 180 http/modules/ngx_http_index_module.c e.ip = index[i].values->elts; i 444 http/modules/ngx_http_index_module.c ngx_uint_t i, n; i 457 http/modules/ngx_http_index_module.c for (i = 1; i < cf->args->nelts; i++) { i 459 http/modules/ngx_http_index_module.c if (value[i].data[0] == '/' && i != cf->args->nelts - 1) { i 465 http/modules/ngx_http_index_module.c if (value[i].len == 0) { i 477 http/modules/ngx_http_index_module.c index->name.len = value[i].len; i 478 http/modules/ngx_http_index_module.c index->name.data = value[i].data; i 482 http/modules/ngx_http_index_module.c n = ngx_http_script_variables_count(&value[i]); i 502 http/modules/ngx_http_index_module.c sc.source = &value[i]; i 592 http/modules/ngx_http_limit_req_module.c ngx_uint_t i; i 604 http/modules/ngx_http_limit_req_module.c for (i = 1; i < cf->args->nelts; i++) { i 606 http/modules/ngx_http_limit_req_module.c if (ngx_strncmp(value[i].data, "zone=", 5) == 0) { i 608 http/modules/ngx_http_limit_req_module.c name.data = value[i].data + 5; i 619 http/modules/ngx_http_limit_req_module.c s.len = value[i].data + value[i].len - p; i 629 http/modules/ngx_http_limit_req_module.c "invalid zone size \"%V\"", &value[i]); i 633 http/modules/ngx_http_limit_req_module.c if (ngx_strncmp(value[i].data, "rate=", 5) == 0) { i 635 http/modules/ngx_http_limit_req_module.c len = value[i].len; i 636 http/modules/ngx_http_limit_req_module.c p = value[i].data + len - 3; i 647 http/modules/ngx_http_limit_req_module.c rate = ngx_atoi(value[i].data + 5, len - 5); i 650 http/modules/ngx_http_limit_req_module.c "invalid rate \"%V\"", &value[i]); i 657 http/modules/ngx_http_limit_req_module.c if (value[i].data[0] == '$') { i 659 http/modules/ngx_http_limit_req_module.c value[i].len--; i 660 http/modules/ngx_http_limit_req_module.c value[i].data++; i 667 http/modules/ngx_http_limit_req_module.c ctx->index = ngx_http_get_variable_index(cf, &value[i]); i 672 http/modules/ngx_http_limit_req_module.c ctx->var = value[i]; i 678 http/modules/ngx_http_limit_req_module.c "invalid parameter \"%V\"", &value[i]); i 727 http/modules/ngx_http_limit_req_module.c ngx_uint_t i; i 737 http/modules/ngx_http_limit_req_module.c for (i = 1; i < cf->args->nelts; i++) { i 739 http/modules/ngx_http_limit_req_module.c if (ngx_strncmp(value[i].data, "zone=", 5) == 0) { i 741 http/modules/ngx_http_limit_req_module.c s.len = value[i].len - 5; i 742 http/modules/ngx_http_limit_req_module.c s.data = value[i].data + 5; i 753 http/modules/ngx_http_limit_req_module.c if (ngx_strncmp(value[i].data, "burst=", 6) == 0) { i 755 http/modules/ngx_http_limit_req_module.c burst = ngx_atoi(value[i].data + 6, value[i].len - 6); i 758 http/modules/ngx_http_limit_req_module.c "invalid burst rate \"%V\"", &value[i]); i 765 http/modules/ngx_http_limit_req_module.c if (ngx_strncmp(value[i].data, "nodelay", 7) == 0) { i 771 http/modules/ngx_http_limit_req_module.c "invalid parameter \"%V\"", &value[i]); i 221 http/modules/ngx_http_log_module.c ngx_uint_t i, l; i 254 http/modules/ngx_http_log_module.c for (i = 0; i < log[l].format->ops->nelts; i++) { i 255 http/modules/ngx_http_log_module.c if (op[i].len == 0) { i 256 http/modules/ngx_http_log_module.c len += op[i].getlen(r, op[i].data); i 259 http/modules/ngx_http_log_module.c len += op[i].len; i 281 http/modules/ngx_http_log_module.c for (i = 0; i < log[l].format->ops->nelts; i++) { i 282 http/modules/ngx_http_log_module.c p = op[i].run(r, p, &op[i]); i 300 http/modules/ngx_http_log_module.c for (i = 0; i < log[l].format->ops->nelts; i++) { i 301 http/modules/ngx_http_log_module.c p = op[i].run(r, p, &op[i]); i 857 http/modules/ngx_http_log_module.c ngx_uint_t i, n; i 939 http/modules/ngx_http_log_module.c for (i = 0; i < lmcf->formats.nelts; i++) { i 940 http/modules/ngx_http_log_module.c if (fmt[i].name.len == name.len i 941 http/modules/ngx_http_log_module.c && ngx_strcasecmp(fmt[i].name.data, name.data) == 0) i 943 http/modules/ngx_http_log_module.c log->format = &fmt[i]; i 1004 http/modules/ngx_http_log_module.c ngx_uint_t i; i 1010 http/modules/ngx_http_log_module.c for (i = 0; i < lmcf->formats.nelts; i++) { i 1011 http/modules/ngx_http_log_module.c if (fmt[i].name.len == value[1].len i 1012 http/modules/ngx_http_log_module.c && ngx_strcmp(fmt[i].name.data, value[1].data) == 0) i 1047 http/modules/ngx_http_log_module.c size_t i, len; i 1058 http/modules/ngx_http_log_module.c for (i = 0; i < value[s].len; i++) { i 1059 http/modules/ngx_http_log_module.c if (value[s].data[i] != '%') { i 1063 http/modules/ngx_http_log_module.c ch = value[s].data[i + 1]; i 1077 http/modules/ngx_http_log_module.c i = 0; i 1079 http/modules/ngx_http_log_module.c while (i < value[s].len) { i 1086 http/modules/ngx_http_log_module.c data = &value[s].data[i]; i 1088 http/modules/ngx_http_log_module.c if (value[s].data[i] == '$') { i 1090 http/modules/ngx_http_log_module.c if (++i == value[s].len) { i 1094 http/modules/ngx_http_log_module.c if (value[s].data[i] == '{') { i 1097 http/modules/ngx_http_log_module.c if (++i == value[s].len) { i 1101 http/modules/ngx_http_log_module.c var.data = &value[s].data[i]; i 1105 http/modules/ngx_http_log_module.c var.data = &value[s].data[i]; i 1108 http/modules/ngx_http_log_module.c for (var.len = 0; i < value[s].len; i++, var.len++) { i 1109 http/modules/ngx_http_log_module.c ch = value[s].data[i]; i 1112 http/modules/ngx_http_log_module.c i++; i 1178 http/modules/ngx_http_log_module.c i++; i 1180 http/modules/ngx_http_log_module.c while (i < value[s].len && value[s].data[i] != '$') { i 1181 http/modules/ngx_http_log_module.c i++; i 1184 http/modules/ngx_http_log_module.c len = &value[s].data[i] - data; i 1233 http/modules/ngx_http_log_module.c ngx_uint_t i; i 1246 http/modules/ngx_http_log_module.c for (i = 1; i < cf->args->nelts; i++) { i 1248 http/modules/ngx_http_log_module.c if (ngx_strncmp(value[i].data, "max=", 4) == 0) { i 1250 http/modules/ngx_http_log_module.c max = ngx_atoi(value[i].data + 4, value[i].len - 4); i 1258 http/modules/ngx_http_log_module.c if (ngx_strncmp(value[i].data, "inactive=", 9) == 0) { i 1260 http/modules/ngx_http_log_module.c s.len = value[i].len - 9; i 1261 http/modules/ngx_http_log_module.c s.data = value[i].data + 9; i 1271 http/modules/ngx_http_log_module.c if (ngx_strncmp(value[i].data, "min_uses=", 9) == 0) { i 1273 http/modules/ngx_http_log_module.c min_uses = ngx_atoi(value[i].data + 9, value[i].len - 9); i 1281 http/modules/ngx_http_log_module.c if (ngx_strncmp(value[i].data, "valid=", 6) == 0) { i 1283 http/modules/ngx_http_log_module.c s.len = value[i].len - 6; i 1284 http/modules/ngx_http_log_module.c s.data = value[i].data + 6; i 1294 http/modules/ngx_http_log_module.c if (ngx_strcmp(value[i].data, "off") == 0) { i 1305 http/modules/ngx_http_log_module.c &value[i]); i 376 http/modules/ngx_http_map_module.c ngx_uint_t i, key; i 420 http/modules/ngx_http_map_module.c for (i = 0; i < ctx->var_values.nelts; i++) { i 421 http/modules/ngx_http_map_module.c if (index == (ngx_int_t) var[i].data) { i 449 http/modules/ngx_http_map_module.c for (i = 0; i < value[1].len; i++) { i 450 http/modules/ngx_http_map_module.c key = ngx_hash(key, value[1].data[i]); i 458 http/modules/ngx_http_map_module.c for (i = 0; i < ctx->values_hash[key].nelts; i++) { i 459 http/modules/ngx_http_map_module.c if (value[1].len != (size_t) vp[i]->len) { i 463 http/modules/ngx_http_map_module.c if (ngx_strncmp(value[1].data, vp[i]->data, value[1].len) == 0) { i 464 http/modules/ngx_http_map_module.c var = vp[i]; i 839 http/modules/ngx_http_proxy_module.c ngx_uint_t i, unparsed_uri; i 938 http/modules/ngx_http_proxy_module.c for (i = 0; /* void */; i++) { i 940 http/modules/ngx_http_proxy_module.c if (i >= part->nelts) { i 947 http/modules/ngx_http_proxy_module.c i = 0; i 950 http/modules/ngx_http_proxy_module.c if (ngx_hash_find(&plcf->headers_set_hash, header[i].hash, i 951 http/modules/ngx_http_proxy_module.c header[i].lowcase_key, header[i].key.len)) i 956 http/modules/ngx_http_proxy_module.c len += header[i].key.len + sizeof(": ") - 1 i 957 http/modules/ngx_http_proxy_module.c + header[i].value.len + sizeof(CRLF) - 1; i 1056 http/modules/ngx_http_proxy_module.c for (i = 0; /* void */; i++) { i 1058 http/modules/ngx_http_proxy_module.c if (i >= part->nelts) { i 1065 http/modules/ngx_http_proxy_module.c i = 0; i 1068 http/modules/ngx_http_proxy_module.c if (ngx_hash_find(&plcf->headers_set_hash, header[i].hash, i 1069 http/modules/ngx_http_proxy_module.c header[i].lowcase_key, header[i].key.len)) i 1074 http/modules/ngx_http_proxy_module.c b->last = ngx_copy(b->last, header[i].key.data, header[i].key.len); i 1078 http/modules/ngx_http_proxy_module.c b->last = ngx_copy(b->last, header[i].value.data, i 1079 http/modules/ngx_http_proxy_module.c header[i].value.len); i 1085 http/modules/ngx_http_proxy_module.c &header[i].key, &header[i].value); i 1496 http/modules/ngx_http_proxy_module.c ngx_uint_t i; i 1508 http/modules/ngx_http_proxy_module.c for (i = 0; i < plcf->redirects->nelts; i++) { i 1509 http/modules/ngx_http_proxy_module.c rc = pr[i].handler(r, h, prefix, &pr[i]); i 2100 http/modules/ngx_http_proxy_module.c ngx_uint_t i; i 2165 http/modules/ngx_http_proxy_module.c for (i = 0; i < conf->headers_source->nelts; i++) { i 2166 http/modules/ngx_http_proxy_module.c if (ngx_strcasecmp(h->key.data, src[i].key.data) == 0) { i 2187 http/modules/ngx_http_proxy_module.c for (i = 0; i < conf->headers_source->nelts; i++) { i 2194 http/modules/ngx_http_proxy_module.c hk->key = src[i].key; i 2195 http/modules/ngx_http_proxy_module.c hk->key_hash = ngx_hash_key_lc(src[i].key.data, src[i].key.len); i 2198 http/modules/ngx_http_proxy_module.c if (src[i].value.len == 0) { i 2202 http/modules/ngx_http_proxy_module.c if (ngx_http_script_variables_count(&src[i].value) == 0) { i 2211 http/modules/ngx_http_proxy_module.c copy->len = src[i].key.len + sizeof(": ") - 1 i 2212 http/modules/ngx_http_proxy_module.c + src[i].value.len + sizeof(CRLF) - 1; i 2216 http/modules/ngx_http_proxy_module.c + src[i].key.len + sizeof(": ") - 1 i 2217 http/modules/ngx_http_proxy_module.c + src[i].value.len + sizeof(CRLF) - 1 i 2227 http/modules/ngx_http_proxy_module.c copy->len = src[i].key.len + sizeof(": ") - 1 i 2228 http/modules/ngx_http_proxy_module.c + src[i].value.len + sizeof(CRLF) - 1; i 2232 http/modules/ngx_http_proxy_module.c p = ngx_cpymem(p, src[i].key.data, src[i].key.len); i 2234 http/modules/ngx_http_proxy_module.c p = ngx_cpymem(p, src[i].value.data, src[i].value.len); i 2246 http/modules/ngx_http_proxy_module.c copy->len = src[i].key.len + sizeof(": ") - 1; i 2250 http/modules/ngx_http_proxy_module.c + src[i].key.len + sizeof(": ") - 1 + sizeof(uintptr_t) - 1) i 2259 http/modules/ngx_http_proxy_module.c copy->len = src[i].key.len + sizeof(": ") - 1; i 2262 http/modules/ngx_http_proxy_module.c p = ngx_cpymem(p, src[i].key.data, src[i].key.len); i 2269 http/modules/ngx_http_proxy_module.c sc.source = &src[i].value; i 390 http/modules/ngx_http_range_filter_module.c ngx_uint_t i; i 473 http/modules/ngx_http_range_filter_module.c for (i = 0; i < ctx->ranges.nelts; i++) { i 477 http/modules/ngx_http_range_filter_module.c range[i].content_range.data = i 480 http/modules/ngx_http_range_filter_module.c if (range[i].content_range.data == NULL) { i 484 http/modules/ngx_http_range_filter_module.c range[i].content_range.len = ngx_sprintf(range[i].content_range.data, i 486 http/modules/ngx_http_range_filter_module.c range[i].start, range[i].end - 1, i 488 http/modules/ngx_http_range_filter_module.c - range[i].content_range.data; i 490 http/modules/ngx_http_range_filter_module.c len += ctx->boundary_header.len + range[i].content_range.len i 491 http/modules/ngx_http_range_filter_module.c + (size_t) (range[i].end - range[i].start); i 580 http/modules/ngx_http_range_filter_module.c ngx_uint_t i; i 601 http/modules/ngx_http_range_filter_module.c for (i = 0; i < ctx->ranges.nelts; i++) { i 602 http/modules/ngx_http_range_filter_module.c if (start > range[i].start || last < range[i].end) { i 713 http/modules/ngx_http_range_filter_module.c ngx_uint_t i; i 727 http/modules/ngx_http_range_filter_module.c for (i = 0; i < ctx->ranges.nelts; i++) { i 762 http/modules/ngx_http_range_filter_module.c b->pos = range[i].content_range.data; i 763 http/modules/ngx_http_range_filter_module.c b->last = range[i].content_range.data + range[i].content_range.len; i 787 http/modules/ngx_http_range_filter_module.c b->file_pos = body_start + range[i].start; i 788 http/modules/ngx_http_range_filter_module.c b->file_last = body_start + range[i].end; i 792 http/modules/ngx_http_range_filter_module.c b->pos = buf->start + (size_t) range[i].start; i 793 http/modules/ngx_http_range_filter_module.c b->last = buf->start + (size_t) range[i].end; i 112 http/modules/ngx_http_realip_module.c ngx_uint_t i, hash; i 180 http/modules/ngx_http_realip_module.c for (i = 0; /* void */ ; i++) { i 182 http/modules/ngx_http_realip_module.c if (i >= part->nelts) { i 189 http/modules/ngx_http_realip_module.c i = 0; i 192 http/modules/ngx_http_realip_module.c if (hash == header[i].hash i 193 http/modules/ngx_http_realip_module.c && len == header[i].key.len i 194 http/modules/ngx_http_realip_module.c && ngx_strncmp(p, header[i].lowcase_key, len) == 0) i 196 http/modules/ngx_http_realip_module.c len = header[i].value.len; i 197 http/modules/ngx_http_realip_module.c ip = header[i].value.data; i 218 http/modules/ngx_http_realip_module.c for (i = 0; i < rlcf->from->nelts; i++) { i 222 http/modules/ngx_http_realip_module.c sin->sin_addr.s_addr, from[i].mask, from[i].addr); i 224 http/modules/ngx_http_realip_module.c if ((sin->sin_addr.s_addr & from[i].mask) == from[i].addr) { i 99 http/modules/ngx_http_referer_module.c ngx_uint_t i, key; i 148 http/modules/ngx_http_referer_module.c i = 0; i 156 http/modules/ngx_http_referer_module.c buf[i] = ngx_tolower(*p); i 157 http/modules/ngx_http_referer_module.c key = ngx_hash(key, buf[i++]); i 159 http/modules/ngx_http_referer_module.c if (i == 256) { i 361 http/modules/ngx_http_referer_module.c ngx_uint_t i, n; i 392 http/modules/ngx_http_referer_module.c for (i = 1; i < cf->args->nelts; i++) { i 393 http/modules/ngx_http_referer_module.c if (value[i].len == 0) { i 395 http/modules/ngx_http_referer_module.c "invalid referer \"%V\"", &value[i]); i 399 http/modules/ngx_http_referer_module.c if (ngx_strcmp(value[i].data, "none") == 0) { i 404 http/modules/ngx_http_referer_module.c if (ngx_strcmp(value[i].data, "blocked") == 0) { i 411 http/modules/ngx_http_referer_module.c if (ngx_strcmp(value[i].data, "server_names") == 0) { i 442 http/modules/ngx_http_referer_module.c if (value[i].data[0] == '~') { i 443 http/modules/ngx_http_referer_module.c if (ngx_http_add_regex_referer(cf, rlcf, &value[i], NULL) != NGX_OK) i 451 http/modules/ngx_http_referer_module.c p = (u_char *) ngx_strchr(value[i].data, '/'); i 454 http/modules/ngx_http_referer_module.c uri.len = (value[i].data + value[i].len) - p; i 456 http/modules/ngx_http_referer_module.c value[i].len = p - value[i].data; i 459 http/modules/ngx_http_referer_module.c if (ngx_http_add_referer(cf, rlcf->keys, &value[i], &uri) != NGX_OK) { i 522 http/modules/ngx_http_rewrite_module.c ngx_uint_t i; i 544 http/modules/ngx_http_rewrite_module.c for (i = 0; ngx_modules[i]; i++) { i 545 http/modules/ngx_http_rewrite_module.c if (ngx_modules[i]->type != NGX_HTTP_MODULE) { i 549 http/modules/ngx_http_rewrite_module.c module = ngx_modules[i]->ctx; i 558 http/modules/ngx_http_rewrite_module.c ctx->loc_conf[ngx_modules[i]->ctx_index] = mconf; i 516 http/modules/ngx_http_scgi_module.c ngx_uint_t i, n, hash, header_params; i 573 http/modules/ngx_http_scgi_module.c for (i = 0; /* void */; i++) { i 575 http/modules/ngx_http_scgi_module.c if (i >= part->nelts) { i 582 http/modules/ngx_http_scgi_module.c i = 0; i 586 http/modules/ngx_http_scgi_module.c if (allocated < header[i].key.len) { i 587 http/modules/ngx_http_scgi_module.c allocated = header[i].key.len + 16; i 596 http/modules/ngx_http_scgi_module.c for (n = 0; n < header[i].key.len; n++) { i 597 http/modules/ngx_http_scgi_module.c ch = header[i].key.data[n]; i 611 http/modules/ngx_http_scgi_module.c ignored[header_params++] = &header[i]; i 616 http/modules/ngx_http_scgi_module.c len += sizeof("HTTP_") - 1 + header[i].key.len + 1 i 617 http/modules/ngx_http_scgi_module.c + header[i].value.len + 1; i 679 http/modules/ngx_http_scgi_module.c for (i = 0; /* void */; i++) { i 681 http/modules/ngx_http_scgi_module.c if (i >= part->nelts) { i 688 http/modules/ngx_http_scgi_module.c i = 0; i 692 http/modules/ngx_http_scgi_module.c if (&header[i] == ignored[n]) { i 700 http/modules/ngx_http_scgi_module.c for (n = 0; n < header[i].key.len; n++) { i 701 http/modules/ngx_http_scgi_module.c ch = header[i].key.data[n]; i 716 http/modules/ngx_http_scgi_module.c b->last = ngx_copy(val, header[i].value.data, header[i].value.len); i 1046 http/modules/ngx_http_scgi_module.c ngx_uint_t i; i 1349 http/modules/ngx_http_scgi_module.c for (i = 0; i < conf->params_source->nelts; i++) { i 1350 http/modules/ngx_http_scgi_module.c if (ngx_strcasecmp(h->key.data, src[i].key.data) == 0) { i 1372 http/modules/ngx_http_scgi_module.c for (i = 0; i < conf->params_source->nelts; i++) { i 1374 http/modules/ngx_http_scgi_module.c if (src[i].key.len > sizeof("HTTP_") - 1 i 1375 http/modules/ngx_http_scgi_module.c && ngx_strncmp(src[i].key.data, "HTTP_", sizeof("HTTP_") - 1) == 0) i 1382 http/modules/ngx_http_scgi_module.c hk->key.len = src[i].key.len - 5; i 1383 http/modules/ngx_http_scgi_module.c hk->key.data = src[i].key.data + 5; i 1387 http/modules/ngx_http_scgi_module.c if (src[i].value.len == 0) { i 1399 http/modules/ngx_http_scgi_module.c copy->len = src[i].key.len + 1; i 1403 http/modules/ngx_http_scgi_module.c + src[i].key.len + 1 + sizeof(uintptr_t) - 1) i 1412 http/modules/ngx_http_scgi_module.c copy->len = src[i].key.len + 1; i 1415 http/modules/ngx_http_scgi_module.c (void) ngx_cpystrn(p, src[i].key.data, src[i].key.len + 1); i 1421 http/modules/ngx_http_scgi_module.c sc.source = &src[i].value; i 206 http/modules/ngx_http_secure_link_module.c ngx_uint_t i; i 246 http/modules/ngx_http_secure_link_module.c for (i = 0; i < 16; i++) { i 247 http/modules/ngx_http_secure_link_module.c n = ngx_hextoi(&start[2 * i], 2); i 248 http/modules/ngx_http_secure_link_module.c if (n == NGX_ERROR || n != hash[i]) { i 81 http/modules/ngx_http_split_clients_module.c ngx_uint_t i; i 94 http/modules/ngx_http_split_clients_module.c for (i = 0; i < ctx->parts.nelts; i++) { i 97 http/modules/ngx_http_split_clients_module.c "%D %D", hash, part[i].percent); i 99 http/modules/ngx_http_split_clients_module.c if (hash < part[i].percent) { i 100 http/modules/ngx_http_split_clients_module.c *v = part[i].value; i 114 http/modules/ngx_http_split_clients_module.c ngx_uint_t i, sum, last; i 174 http/modules/ngx_http_split_clients_module.c for (i = 0; i < ctx->parts.nelts; i++) { i 175 http/modules/ngx_http_split_clients_module.c sum = part[i].percent ? sum + part[i].percent : 10000; i 182 http/modules/ngx_http_split_clients_module.c if (part[i].percent) { i 183 http/modules/ngx_http_split_clients_module.c part[i].percent = (uint32_t) i 184 http/modules/ngx_http_split_clients_module.c (last + 0xffffffff / 10000 * part[i].percent); i 186 http/modules/ngx_http_split_clients_module.c part[i].percent = 0xffffffff; i 189 http/modules/ngx_http_split_clients_module.c last = part[i].percent; i 373 http/modules/ngx_http_ssi_filter_module.c ngx_uint_t i, index; i 646 http/modules/ngx_http_ssi_filter_module.c for (i = 0; i < ctx->params.nelts; i++) { i 647 http/modules/ngx_http_ssi_filter_module.c len += 1 + param[i].key.len + 2 i 648 http/modules/ngx_http_ssi_filter_module.c + param[i].value.len + 1; i 674 http/modules/ngx_http_ssi_filter_module.c for (i = 0; i < ctx->params.nelts; i++) { i 676 http/modules/ngx_http_ssi_filter_module.c b->last = ngx_cpymem(b->last, param[i].key.data, i 677 http/modules/ngx_http_ssi_filter_module.c param[i].key.len); i 680 http/modules/ngx_http_ssi_filter_module.c b->last = ngx_cpymem(b->last, param[i].value.data, i 681 http/modules/ngx_http_ssi_filter_module.c param[i].value.len); i 724 http/modules/ngx_http_ssi_filter_module.c for (i = 0; i < ctx->params.nelts; i++) { i 728 http/modules/ngx_http_ssi_filter_module.c if (param[i].key.len != prm->name.len i 729 http/modules/ngx_http_ssi_filter_module.c || ngx_strncmp(param[i].key.data, prm->name.data, i 741 http/modules/ngx_http_ssi_filter_module.c ¶m[i].key, &ctx->command); i 746 http/modules/ngx_http_ssi_filter_module.c params[prm->index] = ¶m[i].value; i 755 http/modules/ngx_http_ssi_filter_module.c params[index] = ¶m[i].value; i 764 http/modules/ngx_http_ssi_filter_module.c ¶m[i].key, &ctx->command); i 1527 http/modules/ngx_http_ssi_filter_module.c ngx_uint_t i; i 1541 http/modules/ngx_http_ssi_filter_module.c for (i = 0; /* void */ ; i++) { i 1543 http/modules/ngx_http_ssi_filter_module.c if (i >= part->nelts) { i 1550 http/modules/ngx_http_ssi_filter_module.c i = 0; i 1553 http/modules/ngx_http_ssi_filter_module.c if (name->len != var[i].name.len) { i 1557 http/modules/ngx_http_ssi_filter_module.c if (key != var[i].key) { i 1561 http/modules/ngx_http_ssi_filter_module.c if (ngx_strncmp(name->data, var[i].name.data, name->len) == 0) { i 1562 http/modules/ngx_http_ssi_filter_module.c return &var[i].value; i 1578 http/modules/ngx_http_ssi_filter_module.c ngx_uint_t i, n, bracket, quoted; i 1611 http/modules/ngx_http_ssi_filter_module.c for (i = 0; i < text->len; i++) { i 1612 http/modules/ngx_http_ssi_filter_module.c ch = text->data[i]; i 1647 http/modules/ngx_http_ssi_filter_module.c i = 0; i 1649 http/modules/ngx_http_ssi_filter_module.c while (i < text->len) { i 1651 http/modules/ngx_http_ssi_filter_module.c if (text->data[i] == '$') { i 1655 http/modules/ngx_http_ssi_filter_module.c if (++i == text->len) { i 1659 http/modules/ngx_http_ssi_filter_module.c if (text->data[i] == '{') { i 1662 http/modules/ngx_http_ssi_filter_module.c if (++i == text->len) { i 1666 http/modules/ngx_http_ssi_filter_module.c var.data = &text->data[i]; i 1670 http/modules/ngx_http_ssi_filter_module.c var.data = &text->data[i]; i 1673 http/modules/ngx_http_ssi_filter_module.c for ( /* void */ ; i < text->len; i++, var.len++) { i 1674 http/modules/ngx_http_ssi_filter_module.c ch = text->data[i]; i 1677 http/modules/ngx_http_ssi_filter_module.c i++; i 1727 http/modules/ngx_http_ssi_filter_module.c part_data = &text->data[i]; i 1730 http/modules/ngx_http_ssi_filter_module.c for (p = part_data; i < text->len; i++) { i 1731 http/modules/ngx_http_ssi_filter_module.c ch = text->data[i]; i 1781 http/modules/ngx_http_ssi_filter_module.c for (i = 0; i < values.nelts; i++) { i 1782 http/modules/ngx_http_ssi_filter_module.c if (size[i] != 0) { i 1783 http/modules/ngx_http_ssi_filter_module.c if (*value[i] != '/') { i 1807 http/modules/ngx_http_ssi_filter_module.c for (i = 0; i < values.nelts; i++) { i 1808 http/modules/ngx_http_ssi_filter_module.c p = ngx_copy(p, value[i], size[i]); i 1831 http/modules/ngx_http_ssi_filter_module.c ngx_uint_t flags, i; i 1927 http/modules/ngx_http_ssi_filter_module.c for (i = 0; i < mctx->blocks->nelts; i++) { i 1928 http/modules/ngx_http_ssi_filter_module.c if (stub->len == bl[i].name.len i 1929 http/modules/ngx_http_ssi_filter_module.c && ngx_strncmp(stub->data, bl[i].name.data, stub->len) == 0) i 1949 http/modules/ngx_http_ssi_filter_module.c if (bl[i].count++) { i 1954 http/modules/ngx_http_ssi_filter_module.c for (tl = bl[i].bufs; tl; tl = tl->next) { i 1987 http/modules/ngx_http_ssi_filter_module.c psr->data = bl[i].bufs; i 523 http/modules/ngx_http_ssl_module.c ngx_uint_t i, j; i 527 http/modules/ngx_http_ssl_module.c for (i = 1; i < cf->args->nelts; i++) { i 529 http/modules/ngx_http_ssl_module.c if (ngx_strcmp(value[i].data, "off") == 0) { i 534 http/modules/ngx_http_ssl_module.c if (ngx_strcmp(value[i].data, "none") == 0) { i 539 http/modules/ngx_http_ssl_module.c if (ngx_strcmp(value[i].data, "builtin") == 0) { i 544 http/modules/ngx_http_ssl_module.c if (value[i].len > sizeof("builtin:") - 1 i 545 http/modules/ngx_http_ssl_module.c && ngx_strncmp(value[i].data, "builtin:", sizeof("builtin:") - 1) i 548 http/modules/ngx_http_ssl_module.c n = ngx_atoi(value[i].data + sizeof("builtin:") - 1, i 549 http/modules/ngx_http_ssl_module.c value[i].len - (sizeof("builtin:") - 1)); i 560 http/modules/ngx_http_ssl_module.c if (value[i].len > sizeof("shared:") - 1 i 561 http/modules/ngx_http_ssl_module.c && ngx_strncmp(value[i].data, "shared:", sizeof("shared:") - 1) i 566 http/modules/ngx_http_ssl_module.c for (j = sizeof("shared:") - 1; j < value[i].len; j++) { i 567 http/modules/ngx_http_ssl_module.c if (value[i].data[j] == ':') { i 568 http/modules/ngx_http_ssl_module.c value[i].data[j] = '\0'; i 580 http/modules/ngx_http_ssl_module.c name.data = value[i].data + sizeof("shared:") - 1; i 582 http/modules/ngx_http_ssl_module.c size.len = value[i].len - j - 1; i 594 http/modules/ngx_http_ssl_module.c &value[i]); i 620 http/modules/ngx_http_ssl_module.c "invalid session cache \"%V\"", &value[i]); i 143 http/modules/ngx_http_upstream_ip_hash_module.c ngx_uint_t i, n, p, hash; i 164 http/modules/ngx_http_upstream_ip_hash_module.c for (i = 0; i < 3; i++) { i 165 http/modules/ngx_http_upstream_ip_hash_module.c hash = (hash * 113 + iphp->addr[i]) % 6271; i 547 http/modules/ngx_http_uwsgi_module.c ngx_uint_t i, n, hash, header_params; i 601 http/modules/ngx_http_uwsgi_module.c for (i = 0; /* void */ ; i++) { i 603 http/modules/ngx_http_uwsgi_module.c if (i >= part->nelts) { i 610 http/modules/ngx_http_uwsgi_module.c i = 0; i 614 http/modules/ngx_http_uwsgi_module.c if (allocated < header[i].key.len) { i 615 http/modules/ngx_http_uwsgi_module.c allocated = header[i].key.len + 16; i 624 http/modules/ngx_http_uwsgi_module.c for (n = 0; n < header[i].key.len; n++) { i 625 http/modules/ngx_http_uwsgi_module.c ch = header[i].key.data[n]; i 639 http/modules/ngx_http_uwsgi_module.c ignored[header_params++] = &header[i]; i 644 http/modules/ngx_http_uwsgi_module.c len += 2 + sizeof("HTTP_") - 1 + header[i].key.len i 645 http/modules/ngx_http_uwsgi_module.c + 2 + header[i].value.len; i 727 http/modules/ngx_http_uwsgi_module.c for (i = 0; /* void */ ; i++) { i 729 http/modules/ngx_http_uwsgi_module.c if (i >= part->nelts) { i 736 http/modules/ngx_http_uwsgi_module.c i = 0; i 740 http/modules/ngx_http_uwsgi_module.c if (&header[i] == ignored[n]) { i 745 http/modules/ngx_http_uwsgi_module.c key_len = sizeof("HTTP_") - 1 + header[i].key.len; i 750 http/modules/ngx_http_uwsgi_module.c for (n = 0; n < header[i].key.len; n++) { i 751 http/modules/ngx_http_uwsgi_module.c ch = header[i].key.data[n]; i 763 http/modules/ngx_http_uwsgi_module.c val_len = header[i].value.len; i 766 http/modules/ngx_http_uwsgi_module.c b->last = ngx_copy(b->last, header[i].value.data, val_len); i 1099 http/modules/ngx_http_uwsgi_module.c ngx_uint_t i; i 1407 http/modules/ngx_http_uwsgi_module.c for (i = 0; i < conf->params_source->nelts; i++) { i 1408 http/modules/ngx_http_uwsgi_module.c if (ngx_strcasecmp(h->key.data, src[i].key.data) == 0) { i 1430 http/modules/ngx_http_uwsgi_module.c for (i = 0; i < conf->params_source->nelts; i++) { i 1432 http/modules/ngx_http_uwsgi_module.c if (src[i].key.len > sizeof("HTTP_") - 1 i 1433 http/modules/ngx_http_uwsgi_module.c && ngx_strncmp(src[i].key.data, "HTTP_", sizeof("HTTP_") - 1) == 0) i 1440 http/modules/ngx_http_uwsgi_module.c hk->key.len = src[i].key.len - 5; i 1441 http/modules/ngx_http_uwsgi_module.c hk->key.data = src[i].key.data + 5; i 1445 http/modules/ngx_http_uwsgi_module.c if (src[i].value.len == 0) { i 1457 http/modules/ngx_http_uwsgi_module.c copy->len = src[i].key.len; i 1461 http/modules/ngx_http_uwsgi_module.c + src[i].key.len + sizeof(uintptr_t) - 1) i 1470 http/modules/ngx_http_uwsgi_module.c copy->len = src[i].key.len; i 1473 http/modules/ngx_http_uwsgi_module.c ngx_memcpy(p, src[i].key.data, src[i].key.len); i 1479 http/modules/ngx_http_uwsgi_module.c sc.source = &src[i].value; i 450 http/modules/ngx_http_xslt_filter_module.c ngx_uint_t i; i 469 http/modules/ngx_http_xslt_filter_module.c for (i = 0; i < conf->sheets.nelts; i++) { i 471 http/modules/ngx_http_xslt_filter_module.c if (ngx_http_xslt_params(r, ctx, &sheet[i].params) != NGX_OK) { i 476 http/modules/ngx_http_xslt_filter_module.c res = xsltApplyStylesheet(sheet[i].stylesheet, doc, ctx->params.elts); i 495 http/modules/ngx_http_xslt_filter_module.c type = ngx_http_xslt_content_type(sheet[i - 1].stylesheet); i 501 http/modules/ngx_http_xslt_filter_module.c encoding = ngx_http_xslt_encoding(sheet[i - 1].stylesheet); i 509 http/modules/ngx_http_xslt_filter_module.c rc = xsltSaveResultToString(&buf, &len, doc, sheet[i - 1].stylesheet); i 571 http/modules/ngx_http_xslt_filter_module.c ngx_uint_t i; i 577 http/modules/ngx_http_xslt_filter_module.c for (i = 0; i < params->nelts; i++) { i 579 http/modules/ngx_http_xslt_filter_module.c if (ngx_http_complex_value(r, ¶m[i], &string) != NGX_OK) { i 711 http/modules/ngx_http_xslt_filter_module.c ngx_uint_t i; i 725 http/modules/ngx_http_xslt_filter_module.c for (i = 0; i < xmcf->dtd_files.nelts; i++) { i 726 http/modules/ngx_http_xslt_filter_module.c if (ngx_strcmp(file[i].name, &value[1].data) == 0) { i 727 http/modules/ngx_http_xslt_filter_module.c xlcf->dtd = file[i].data; i 766 http/modules/ngx_http_xslt_filter_module.c ngx_uint_t i, n; i 799 http/modules/ngx_http_xslt_filter_module.c for (i = 0; i < xmcf->sheet_files.nelts; i++) { i 800 http/modules/ngx_http_xslt_filter_module.c if (ngx_strcmp(file[i].name, &value[1].data) == 0) { i 801 http/modules/ngx_http_xslt_filter_module.c sheet->stylesheet = file[i].data; i 845 http/modules/ngx_http_xslt_filter_module.c for (i = 2; i < n; i++) { i 855 http/modules/ngx_http_xslt_filter_module.c ccv.value = &value[i]; i 360 http/modules/perl/ngx_http_perl_module.c ngx_uint_t i; i 414 http/modules/perl/ngx_http_perl_module.c for (i = 0; args[i]; i++) { /* void */ } i 416 http/modules/perl/ngx_http_perl_module.c asv = ngx_pcalloc(r->pool, (i + 1) * sizeof(SV *)); i 423 http/modules/perl/ngx_http_perl_module.c asv[0] = (SV *) i; i 425 http/modules/perl/ngx_http_perl_module.c for (i = 0; args[i]; i++) { i 426 http/modules/perl/ngx_http_perl_module.c asv[i + 1] = newSVpvn((char *) args[i]->data, args[i]->len); i 456 http/modules/perl/ngx_http_perl_module.c ngx_uint_t i; i 486 http/modules/perl/ngx_http_perl_module.c for (i = 0; i < pmcf->modules->nelts; i++) { i 487 http/modules/perl/ngx_http_perl_module.c if (ngx_conf_full_name(cf->cycle, &m[i], 0) != NGX_OK) { i 551 http/modules/perl/ngx_http_perl_module.c ngx_uint_t i; i 588 http/modules/perl/ngx_http_perl_module.c for (i = 0; i < pmcf->modules->nelts; i++) { i 589 http/modules/perl/ngx_http_perl_module.c embedding[2 * i + 1] = "-I"; i 590 http/modules/perl/ngx_http_perl_module.c embedding[2 * i + 2] = (char *) m[i].data; i 639 http/modules/perl/ngx_http_perl_module.c ngx_uint_t i; i 646 http/modules/perl/ngx_http_perl_module.c for (i = 0; i < requires->nelts; i++) { i 648 http/modules/perl/ngx_http_perl_module.c require_pv((char *) script[i].data); i 657 http/modules/perl/ngx_http_perl_module.c script[i].data, len + 1, err); i 676 http/modules/perl/ngx_http_perl_module.c ngx_uint_t i; i 694 http/modules/perl/ngx_http_perl_module.c for (i = 1; i <= (ngx_uint_t) args[0]; i++) { i 695 http/modules/perl/ngx_http_perl_module.c PUSHs(sv_2mortal(args[i])); i 449 http/ngx_http.c ngx_uint_t i, n; i 463 http/ngx_http.c for (i = 0; i < NGX_HTTP_LOG_PHASE; i++) { i 464 http/ngx_http.c n += cmcf->phases[i].handlers.nelts; i 476 http/ngx_http.c for (i = 0; i < NGX_HTTP_LOG_PHASE; i++) { i 477 http/ngx_http.c h = cmcf->phases[i].handlers.elts; i 479 http/ngx_http.c switch (i) { i 547 http/ngx_http.c n += cmcf->phases[i].handlers.nelts; i 549 http/ngx_http.c for (j = cmcf->phases[i].handlers.nelts - 1; j >=0; j--) { i 1143 http/ngx_http.c ngx_uint_t i; i 1186 http/ngx_http.c for (i = 0; i < cmcf->ports->nelts; i++) { i 1188 http/ngx_http.c if (p != port[i].port || sa->sa_family != port[i].family) { i 1194 http/ngx_http.c return ngx_http_add_addresses(cf, cscf, &port[i], lsopt); i 1218 http/ngx_http.c ngx_uint_t i, default_server; i 1261 http/ngx_http.c for (i = 0; i < port->addrs.nelts; i++) { i 1263 http/ngx_http.c if (ngx_memcmp(p, addr[i].opt.u.sockaddr_data + off, len) != 0) { i 1269 http/ngx_http.c if (ngx_http_add_server(cf, cscf, &addr[i]) != NGX_OK) { i 1274 http/ngx_http.c default_server = addr[i].opt.default_server; i 1277 http/ngx_http.c ssl = lsopt->ssl || addr[i].opt.ssl; i 1282 http/ngx_http.c if (addr[i].opt.set) { i 1284 http/ngx_http.c "a duplicate listen options for %s", addr[i].opt.addr); i 1288 http/ngx_http.c addr[i].opt = *lsopt; i 1297 http/ngx_http.c "a duplicate default server for %s", addr[i].opt.addr); i 1302 http/ngx_http.c addr[i].default_server = cscf; i 1305 http/ngx_http.c addr[i].opt.default_server = default_server; i 1307 http/ngx_http.c addr[i].opt.ssl = ssl; i 1366 http/ngx_http.c ngx_uint_t i; i 1379 http/ngx_http.c for (i = 0; i < addr->servers.nelts; i++) { i 1380 http/ngx_http.c if (server[i] == cscf) { i 1457 http/ngx_http.c ngx_uint_t regex, i; i 1577 http/ngx_http.c i = 0; i 1585 http/ngx_http.c addr->regex[i++] = name[n]; i 1646 http/ngx_http.c ngx_uint_t i, last, bind_wildcard; i 1669 http/ngx_http.c i = 0; i 1671 http/ngx_http.c while (i < last) { i 1673 http/ngx_http.c if (bind_wildcard && !addr[i].opt.bind) { i 1674 http/ngx_http.c i++; i 1678 http/ngx_http.c ls = ngx_http_add_listening(cf, &addr[i]); i 1690 http/ngx_http.c if (i == last - 1) { i 1695 http/ngx_http.c i = 0; i 1787 http/ngx_http.c ngx_uint_t i; i 1800 http/ngx_http.c for (i = 0; i < hport->naddrs; i++) { i 1802 http/ngx_http.c sin = &addr[i].opt.u.sockaddr_in; i 1803 http/ngx_http.c addrs[i].addr = sin->sin_addr.s_addr; i 1804 http/ngx_http.c addrs[i].conf.default_server = addr[i].default_server; i 1806 http/ngx_http.c addrs[i].conf.ssl = addr[i].opt.ssl; i 1809 http/ngx_http.c if (addr[i].hash.buckets == NULL i 1810 http/ngx_http.c && (addr[i].wc_head == NULL i 1811 http/ngx_http.c || addr[i].wc_head->hash.buckets == NULL) i 1812 http/ngx_http.c && (addr[i].wc_tail == NULL i 1813 http/ngx_http.c || addr[i].wc_tail->hash.buckets == NULL) i 1815 http/ngx_http.c && addr[i].nregex == 0 i 1827 http/ngx_http.c addrs[i].conf.virtual_names = vn; i 1829 http/ngx_http.c vn->names.hash = addr[i].hash; i 1830 http/ngx_http.c vn->names.wc_head = addr[i].wc_head; i 1831 http/ngx_http.c vn->names.wc_tail = addr[i].wc_tail; i 1833 http/ngx_http.c vn->nregex = addr[i].nregex; i 1834 http/ngx_http.c vn->regex = addr[i].regex; i 1848 http/ngx_http.c ngx_uint_t i; i 1861 http/ngx_http.c for (i = 0; i < hport->naddrs; i++) { i 1863 http/ngx_http.c sin6 = &addr[i].opt.u.sockaddr_in6; i 1864 http/ngx_http.c addrs6[i].addr6 = sin6->sin6_addr; i 1865 http/ngx_http.c addrs6[i].conf.default_server = addr[i].default_server; i 1867 http/ngx_http.c addrs6[i].conf.ssl = addr[i].opt.ssl; i 1870 http/ngx_http.c if (addr[i].hash.buckets == NULL i 1871 http/ngx_http.c && (addr[i].wc_head == NULL i 1872 http/ngx_http.c || addr[i].wc_head->hash.buckets == NULL) i 1873 http/ngx_http.c && (addr[i].wc_tail == NULL i 1874 http/ngx_http.c || addr[i].wc_tail->hash.buckets == NULL) i 1876 http/ngx_http.c && addr[i].nregex == 0 i 1888 http/ngx_http.c addrs6[i].conf.virtual_names = vn; i 1890 http/ngx_http.c vn->names.hash = addr[i].hash; i 1891 http/ngx_http.c vn->names.wc_head = addr[i].wc_head; i 1892 http/ngx_http.c vn->names.wc_tail = addr[i].wc_tail; i 1894 http/ngx_http.c vn->nregex = addr[i].nregex; i 1895 http/ngx_http.c vn->regex = addr[i].regex; i 1912 http/ngx_http.c ngx_uint_t i, n, hash; i 1944 http/ngx_http.c for (i = 1; i < cf->args->nelts; i++) { i 1946 http/ngx_http.c if (value[i].len == 1 && value[i].data[0] == '*') { i 1951 http/ngx_http.c hash = ngx_hash_strlow(value[i].data, value[i].data, value[i].len); i 1952 http/ngx_http.c value[i].data[value[i].len] = '\0'; i 1957 http/ngx_http.c if (ngx_strcmp(value[i].data, type[n].key.data) == 0) { i 1959 http/ngx_http.c "duplicate MIME type \"%V\"", &value[i]); i 1969 http/ngx_http.c type->key = value[i]; i 135 http/ngx_http_busy_lock.c int i, b, cacheable, free; i 146 http/ngx_http_busy_lock.c for (i = 0; i < bl->max_busy; i++) { i 149 http/ngx_http_busy_lock.c mask = bl->md5_mask[i / 8]; i 153 http/ngx_http_busy_lock.c if (ngx_memcmp(&bl->md5[i * 16], bc->md5, 16) == 0) { i 159 http/ngx_http_busy_lock.c free = i; i 165 http/ngx_http_busy_lock.c free = i + 1; i 202 http/ngx_http_busy_lock.c ngx_uint_t i, dup, invalid; i 228 http/ngx_http_busy_lock.c for (i = 1; i < cf->args->nelts; i++) { i 230 http/ngx_http_busy_lock.c if (value[i].data[1] != '=') { i 232 http/ngx_http_busy_lock.c "invalid value \"%s\"", value[i].data); i 236 http/ngx_http_busy_lock.c switch (value[i].data[0]) { i 244 http/ngx_http_busy_lock.c bl->max_busy = ngx_atoi(value[i].data + 2, value[i].len - 2); i 258 http/ngx_http_busy_lock.c bl->max_waiting = ngx_atoi(value[i].data + 2, value[i].len - 2); i 272 http/ngx_http_busy_lock.c line.len = value[i].len - 2; i 273 http/ngx_http_busy_lock.c line.data = value[i].data + 2; i 289 http/ngx_http_busy_lock.c "duplicate value \"%s\"", value[i].data); i 295 http/ngx_http_busy_lock.c "invalid value \"%s\"", value[i].data); i 1637 http/ngx_http_core_module.c ngx_uint_t i, hash; i 1660 http/ngx_http_core_module.c for (i = 0; i < len; i++) { i 1661 http/ngx_http_core_module.c c = ngx_tolower(r->headers_out.content_type.data[i]); i 1663 http/ngx_http_core_module.c lowcase[i] = c; i 1679 http/ngx_http_core_module.c ngx_uint_t i, hash; i 1692 http/ngx_http_core_module.c for (i = 0; i < r->exten.len; i++) { i 1693 http/ngx_http_core_module.c c = r->exten.data[i]; i 1733 http/ngx_http_core_module.c ngx_int_t i; i 1737 http/ngx_http_core_module.c for (i = r->uri.len - 1; i > 1; i--) { i 1738 http/ngx_http_core_module.c if (r->uri.data[i] == '.' && r->uri.data[i - 1] != '/') { i 1740 http/ngx_http_core_module.c r->exten.len = r->uri.len - i - 1; i 1741 http/ngx_http_core_module.c r->exten.data = &r->uri.data[i + 1]; i 1745 http/ngx_http_core_module.c } else if (r->uri.data[i] == '/') { i 2442 http/ngx_http_core_module.c ngx_uint_t i; i 2473 http/ngx_http_core_module.c for (i = 0; ngx_modules[i]; i++) { i 2474 http/ngx_http_core_module.c if (ngx_modules[i]->type != NGX_HTTP_MODULE) { i 2478 http/ngx_http_core_module.c module = ngx_modules[i]->ctx; i 2486 http/ngx_http_core_module.c ctx->srv_conf[ngx_modules[i]->ctx_index] = mconf; i 2495 http/ngx_http_core_module.c ctx->loc_conf[ngx_modules[i]->ctx_index] = mconf; i 2568 http/ngx_http_core_module.c ngx_uint_t i; i 2588 http/ngx_http_core_module.c for (i = 0; ngx_modules[i]; i++) { i 2589 http/ngx_http_core_module.c if (ngx_modules[i]->type != NGX_HTTP_MODULE) { i 2593 http/ngx_http_core_module.c module = ngx_modules[i]->ctx; i 2596 http/ngx_http_core_module.c ctx->loc_conf[ngx_modules[i]->ctx_index] = i 2598 http/ngx_http_core_module.c if (ctx->loc_conf[ngx_modules[i]->ctx_index] == NULL) { i 2828 http/ngx_http_core_module.c ngx_uint_t i, n, hash; i 2852 http/ngx_http_core_module.c for (i = 1; i < cf->args->nelts; i++) { i 2854 http/ngx_http_core_module.c hash = ngx_hash_strlow(value[i].data, value[i].data, value[i].len); i 2858 http/ngx_http_core_module.c if (ngx_strcmp(value[i].data, type[n].key.data) == 0) { i 2866 http/ngx_http_core_module.c &value[i], content_type, old); i 2877 http/ngx_http_core_module.c type->key = value[i]; i 3176 http/ngx_http_core_module.c ngx_uint_t i; i 3243 http/ngx_http_core_module.c for (i = 0; ngx_http_core_default_types[i].key.len; i++) { i 3249 http/ngx_http_core_module.c type->key = ngx_http_core_default_types[i].key; i 3251 http/ngx_http_core_module.c ngx_hash_key_lc(ngx_http_core_default_types[i].key.data, i 3252 http/ngx_http_core_module.c ngx_http_core_default_types[i].key.len); i 3253 http/ngx_http_core_module.c type->value = ngx_http_core_default_types[i].value; i 3650 http/ngx_http_core_module.c ngx_uint_t i; i 3655 http/ngx_http_core_module.c for (i = 1; i < cf->args->nelts; i++) { i 3657 http/ngx_http_core_module.c ch = value[i].data[0]; i 3659 http/ngx_http_core_module.c if ((ch == '*' && (value[i].len < 3 || value[i].data[1] != '.')) i 3660 http/ngx_http_core_module.c || (ch == '.' && value[i].len < 2)) i 3663 http/ngx_http_core_module.c "server name \"%V\" is invalid", &value[i]); i 3667 http/ngx_http_core_module.c if (ngx_strchr(value[i].data, '/')) { i 3670 http/ngx_http_core_module.c &value[i]); i 3673 http/ngx_http_core_module.c if (value[i].len == 1 && ch == '*') { i 3690 http/ngx_http_core_module.c if (ngx_strcasecmp(value[i].data, (u_char *) "$hostname") == 0) { i 3694 http/ngx_http_core_module.c sn->name = value[i]; i 3697 http/ngx_http_core_module.c if (value[i].data[0] != '~') { i 3708 http/ngx_http_core_module.c if (value[i].len == 1) { i 3710 http/ngx_http_core_module.c "empty regex in server name \"%V\"", &value[i]); i 3714 http/ngx_http_core_module.c value[i].len--; i 3715 http/ngx_http_core_module.c value[i].data++; i 3719 http/ngx_http_core_module.c rc.pattern = value[i]; i 3723 http/ngx_http_core_module.c for (p = value[i].data; p < value[i].data + value[i].len; p++) { i 3735 http/ngx_http_core_module.c sn->name = value[i]; i 3741 http/ngx_http_core_module.c "requires PCRE library", &value[i]); i 3879 http/ngx_http_core_module.c ngx_uint_t i; i 3894 http/ngx_http_core_module.c for (i = 1; i < cf->args->nelts; i++) { i 3897 http/ngx_http_core_module.c if (ngx_strcasecmp(value[i].data, name->name) == 0) { i 3904 http/ngx_http_core_module.c "invalid method \"%V\"", &value[i]); i 3929 http/ngx_http_core_module.c for (i = 0; ngx_modules[i]; i++) { i 3930 http/ngx_http_core_module.c if (ngx_modules[i]->type != NGX_HTTP_MODULE) { i 3934 http/ngx_http_core_module.c module = ngx_modules[i]->ctx; i 3943 http/ngx_http_core_module.c ctx->loc_conf[ngx_modules[i]->ctx_index] = mconf; i 4006 http/ngx_http_core_module.c ngx_uint_t i, n; i 4021 http/ngx_http_core_module.c i = cf->args->nelts - 2; i 4023 http/ngx_http_core_module.c if (value[i].data[0] == '=') { i 4024 http/ngx_http_core_module.c if (i == 1) { i 4026 http/ngx_http_core_module.c "invalid value \"%V\"", &value[i]); i 4030 http/ngx_http_core_module.c if (value[i].len > 1) { i 4031 http/ngx_http_core_module.c overwrite = ngx_atoi(&value[i].data[1], value[i].len - 1); i 4035 http/ngx_http_core_module.c "invalid value \"%V\"", &value[i]); i 4076 http/ngx_http_core_module.c for (i = 1; i < cf->args->nelts - n; i++) { i 4082 http/ngx_http_core_module.c err->status = ngx_atoi(value[i].data, value[i].len); i 4086 http/ngx_http_core_module.c "invalid value \"%V\"", &value[i]); i 4093 http/ngx_http_core_module.c &value[i]); i 4125 http/ngx_http_core_module.c ngx_uint_t i, n; i 4147 http/ngx_http_core_module.c for (i = 0; i < cf->args->nelts - 1; i++) { i 4149 http/ngx_http_core_module.c tf[i].name = value[i + 1]; i 4151 http/ngx_http_core_module.c if (tf[i].name.data[tf[i].name.len - 1] == '/') { i 4152 http/ngx_http_core_module.c tf[i].test_dir = 1; i 4153 http/ngx_http_core_module.c tf[i].name.len--; i 4154 http/ngx_http_core_module.c tf[i].name.data[tf[i].name.len] = '\0'; i 4157 http/ngx_http_core_module.c n = ngx_http_script_variables_count(&tf[i].name); i 4163 http/ngx_http_core_module.c sc.source = &tf[i].name; i 4164 http/ngx_http_core_module.c sc.lengths = &tf[i].lengths; i 4165 http/ngx_http_core_module.c sc.values = &tf[i].values; i 4176 http/ngx_http_core_module.c tf[i].name.len++; i 4180 http/ngx_http_core_module.c if (tf[i - 1].name.data[0] == '=') { i 4182 http/ngx_http_core_module.c code = ngx_atoi(tf[i - 1].name.data + 1, tf[i - 1].name.len - 2); i 4187 http/ngx_http_core_module.c tf[i - 1].name.len - 1, tf[i - 1].name.data); i 4191 http/ngx_http_core_module.c tf[i].code = code; i 4206 http/ngx_http_core_module.c ngx_uint_t i; i 4217 http/ngx_http_core_module.c for (i = 1; i < cf->args->nelts; i++) { i 4219 http/ngx_http_core_module.c if (ngx_strncmp(value[i].data, "max=", 4) == 0) { i 4221 http/ngx_http_core_module.c max = ngx_atoi(value[i].data + 4, value[i].len - 4); i 4229 http/ngx_http_core_module.c if (ngx_strncmp(value[i].data, "inactive=", 9) == 0) { i 4231 http/ngx_http_core_module.c s.len = value[i].len - 9; i 4232 http/ngx_http_core_module.c s.data = value[i].data + 9; i 4242 http/ngx_http_core_module.c if (ngx_strcmp(value[i].data, "off") == 0) { i 4253 http/ngx_http_core_module.c &value[i]); i 4402 http/ngx_http_core_module.c ngx_uint_t i; i 4423 http/ngx_http_core_module.c for (i = 1; i < cf->args->nelts; i++) { i 4425 http/ngx_http_core_module.c if (ngx_strcmp(value[i].data, "msie6") == 0) { i 4432 http/ngx_http_core_module.c if (ngx_strcmp(value[i].data, "degradation") == 0) { i 4444 http/ngx_http_core_module.c rc.pattern = value[i]; i 4453 http/ngx_http_core_module.c re->name = value[i].data; i 4460 http/ngx_http_core_module.c ngx_uint_t i; i 4464 http/ngx_http_core_module.c for (i = 1; i < cf->args->nelts; i++) { i 4465 http/ngx_http_core_module.c if (ngx_strcmp(value[i].data, "msie6") == 0) { i 4472 http/ngx_http_core_module.c if (ngx_strcmp(value[i].data, "degradation") == 0) { i 207 http/ngx_http_file_cache.c ngx_uint_t i; i 219 http/ngx_http_file_cache.c for (i = 0; i < c->keys.nelts; i++) { i 221 http/ngx_http_file_cache.c "http cache key: \"%V\"", &key[i]); i 223 http/ngx_http_file_cache.c len += key[i].len; i 225 http/ngx_http_file_cache.c ngx_crc32_update(&c->crc32, key[i].data, key[i].len); i 226 http/ngx_http_file_cache.c ngx_md5_update(&md5, key[i].data, key[i].len); i 748 http/ngx_http_file_cache.c ngx_uint_t i; i 769 http/ngx_http_file_cache.c for (i = 0; i < c->keys.nelts; i++) { i 770 http/ngx_http_file_cache.c p = ngx_copy(p, key[i].data, key[i].len); i 1338 http/ngx_http_file_cache.c ngx_uint_t i; i 1397 http/ngx_http_file_cache.c for (i = 0; i < NGX_HTTP_CACHE_KEY_LEN; i++) { i 1406 http/ngx_http_file_cache.c c.key[i] = (u_char) n; i 1486 http/ngx_http_file_cache.c ngx_uint_t i; i 1494 http/ngx_http_file_cache.c for (i = 0; i < cache_valid->nelts; i++) { i 1496 http/ngx_http_file_cache.c if (valid[i].status == 0) { i 1497 http/ngx_http_file_cache.c return valid[i].valid; i 1500 http/ngx_http_file_cache.c if (valid[i].status == status) { i 1501 http/ngx_http_file_cache.c return valid[i].valid; i 1517 http/ngx_http_file_cache.c ngx_uint_t i, n; i 1548 http/ngx_http_file_cache.c for (i = 2; i < cf->args->nelts; i++) { i 1550 http/ngx_http_file_cache.c if (ngx_strncmp(value[i].data, "levels=", 7) == 0) { i 1552 http/ngx_http_file_cache.c p = value[i].data + 7; i 1553 http/ngx_http_file_cache.c last = value[i].data + value[i].len; i 1583 http/ngx_http_file_cache.c "invalid \"levels\" \"%V\"", &value[i]); i 1587 http/ngx_http_file_cache.c if (ngx_strncmp(value[i].data, "keys_zone=", 10) == 0) { i 1589 http/ngx_http_file_cache.c name.data = value[i].data + 10; i 1600 http/ngx_http_file_cache.c s.len = value[i].data + value[i].len - p; i 1610 http/ngx_http_file_cache.c "invalid keys zone size \"%V\"", &value[i]); i 1614 http/ngx_http_file_cache.c if (ngx_strncmp(value[i].data, "inactive=", 9) == 0) { i 1616 http/ngx_http_file_cache.c s.len = value[i].len - 9; i 1617 http/ngx_http_file_cache.c s.data = value[i].data + 9; i 1622 http/ngx_http_file_cache.c "invalid inactive value \"%V\"", &value[i]); i 1629 http/ngx_http_file_cache.c if (ngx_strncmp(value[i].data, "max_size=", 9) == 0) { i 1631 http/ngx_http_file_cache.c s.len = value[i].len - 9; i 1632 http/ngx_http_file_cache.c s.data = value[i].data + 9; i 1637 http/ngx_http_file_cache.c "invalid max_size value \"%V\"", &value[i]); i 1645 http/ngx_http_file_cache.c "invalid parameter \"%V\"", &value[i]); i 1694 http/ngx_http_file_cache.c ngx_uint_t i, n, status; i 1720 http/ngx_http_file_cache.c for (i = 0; i < 3; i++) { i 1726 http/ngx_http_file_cache.c v->status = statuses[i]; i 1733 http/ngx_http_file_cache.c for (i = 1; i < n; i++) { i 1735 http/ngx_http_file_cache.c if (ngx_strcmp(value[i].data, "any") == 0) { i 1741 http/ngx_http_file_cache.c status = ngx_atoi(value[i].data, value[i].len); i 1744 http/ngx_http_file_cache.c "invalid status \"%V\"", &value[i]); i 1766 http/ngx_http_file_cache.c ngx_uint_t i; i 1771 http/ngx_http_file_cache.c for (i = 0; i < no_cache->nelts; i++) { i 1772 http/ngx_http_file_cache.c if (ngx_http_complex_value(r, &cv[i], &val) != NGX_OK) { i 1791 http/ngx_http_file_cache.c ngx_uint_t i; i 1807 http/ngx_http_file_cache.c for (i = 1; i < cf->args->nelts; i++) { i 1816 http/ngx_http_file_cache.c ccv.value = &value[i]; i 160 http/ngx_http_header_filter_module.c ngx_uint_t status, i, port; i 418 http/ngx_http_header_filter_module.c for (i = 0; /* void */; i++) { i 420 http/ngx_http_header_filter_module.c if (i >= part->nelts) { i 427 http/ngx_http_header_filter_module.c i = 0; i 430 http/ngx_http_header_filter_module.c if (header[i].hash == 0) { i 434 http/ngx_http_header_filter_module.c len += header[i].key.len + sizeof(": ") - 1 + header[i].value.len i 578 http/ngx_http_header_filter_module.c for (i = 0; /* void */; i++) { i 580 http/ngx_http_header_filter_module.c if (i >= part->nelts) { i 587 http/ngx_http_header_filter_module.c i = 0; i 590 http/ngx_http_header_filter_module.c if (header[i].hash == 0) { i 594 http/ngx_http_header_filter_module.c b->last = ngx_copy(b->last, header[i].key.data, header[i].key.len); i 597 http/ngx_http_header_filter_module.c b->last = ngx_copy(b->last, header[i].value.data, header[i].value.len); i 758 http/ngx_http_parse.c ngx_uint_t hash, i; i 784 http/ngx_http_parse.c i = r->lowcase_index; i 812 http/ngx_http_parse.c i = 1; i 829 http/ngx_http_parse.c r->lowcase_header[i++] = c; i 830 http/ngx_http_parse.c i &= (NGX_HTTP_LC_HEADER_LEN - 1); i 837 http/ngx_http_parse.c r->lowcase_header[i++] = ch; i 838 http/ngx_http_parse.c i &= (NGX_HTTP_LC_HEADER_LEN - 1); i 973 http/ngx_http_parse.c r->lowcase_index = i; i 982 http/ngx_http_parse.c r->lowcase_index = i; i 1590 http/ngx_http_parse.c ngx_uint_t i; i 1596 http/ngx_http_parse.c for (i = 0; i < headers->nelts; i++) { i 1599 http/ngx_http_parse.c "parse header: \"%V: %V\"", &h[i]->key, &h[i]->value); i 1601 http/ngx_http_parse.c if (name->len > h[i]->value.len) { i 1605 http/ngx_http_parse.c start = h[i]->value.data; i 1606 http/ngx_http_parse.c end = h[i]->value.data + h[i]->value.len; i 1620 http/ngx_http_parse.c return i; i 1640 http/ngx_http_parse.c return i; i 240 http/ngx_http_request.c ngx_uint_t i; i 338 http/ngx_http_request.c for (i = 0; i < port->naddrs - 1; i++) { i 339 http/ngx_http_request.c if (ngx_memcmp(&addr6[i].addr6, &sin6->sin6_addr, 16) == 0) { i 344 http/ngx_http_request.c addr_conf = &addr6[i].conf; i 356 http/ngx_http_request.c for (i = 0; i < port->naddrs - 1; i++) { i 357 http/ngx_http_request.c if (addr[i].addr == sin->sin_addr.s_addr) { i 362 http/ngx_http_request.c addr_conf = &addr[i].conf; i 1661 http/ngx_http_request.c size_t i, last; i 1668 http/ngx_http_request.c for (i = 0; i < len; i++) { i 1669 http/ngx_http_request.c ch = h[i]; i 1683 http/ngx_http_request.c last = i; i 1734 http/ngx_http_request.c ngx_uint_t i; i 1743 http/ngx_http_request.c for (i = 0; i < r->virtual_names->nregex; i++) { i 1745 http/ngx_http_request.c n = ngx_http_regex_exec(r, sn[i].regex, &name); i 1748 http/ngx_http_request.c cscf = sn[i].server; i 2383 http/ngx_http_request.c ngx_int_t i; i 2436 http/ngx_http_request.c for (i = 0; i < hc->nbusy - 1; i++) { i 2437 http/ngx_http_request.c f = hc->busy[i]; i 2514 http/ngx_http_request.c for (i = 0; i < hc->nfree; i++) { i 2515 http/ngx_http_request.c ngx_pfree(c->pool, hc->free[i]->start); i 2516 http/ngx_http_request.c hc->free[i] = NULL; i 2526 http/ngx_http_request.c for (i = 0; i < hc->nbusy; i++) { i 2527 http/ngx_http_request.c ngx_pfree(c->pool, hc->busy[i]->start); i 2528 http/ngx_http_request.c hc->busy[i] = NULL; i 3003 http/ngx_http_request.c ngx_uint_t i, n; i 3012 http/ngx_http_request.c for (i = 0; i < n; i++) { i 3013 http/ngx_http_request.c log_handler[i](r); i 110 http/ngx_http_script.c ngx_uint_t i, n, nv, nc; i 124 http/ngx_http_script.c for (i = 0; i < v->len; i++) { i 125 http/ngx_http_script.c if (v->data[i] == '$') { i 126 http/ngx_http_script.c if (v->data[i + 1] >= '1' && v->data[i + 1] <= '9') { i 254 http/ngx_http_script.c ngx_uint_t i; i 263 http/ngx_http_script.c for (i = 0; i < predicates->nelts; i++) { i 264 http/ngx_http_script.c if (ngx_http_complex_value(r, &cv[i], &val) != NGX_OK) { i 283 http/ngx_http_script.c ngx_uint_t i; i 299 http/ngx_http_script.c for (i = 1; i < cf->args->nelts; i++) { i 308 http/ngx_http_script.c ccv.value = &value[i]; i 323 http/ngx_http_script.c ngx_uint_t i, n; i 325 http/ngx_http_script.c for (n = 0, i = 0; i < value->len; i++) { i 326 http/ngx_http_script.c if (value->data[i] == '$') { i 340 http/ngx_http_script.c ngx_uint_t i, bracket; i 346 http/ngx_http_script.c for (i = 0; i < sc->source->len; /* void */ ) { i 350 http/ngx_http_script.c if (sc->source->data[i] == '$') { i 352 http/ngx_http_script.c if (++i == sc->source->len) { i 360 http/ngx_http_script.c if (sc->source->data[i] >= '1' && sc->source->data[i] <= '9') { i 362 http/ngx_http_script.c n = sc->source->data[i] - '0'; i 374 http/ngx_http_script.c i++; i 381 http/ngx_http_script.c if (sc->source->data[i] == '{') { i 384 http/ngx_http_script.c if (++i == sc->source->len) { i 388 http/ngx_http_script.c name.data = &sc->source->data[i]; i 392 http/ngx_http_script.c name.data = &sc->source->data[i]; i 395 http/ngx_http_script.c for ( /* void */ ; i < sc->source->len; i++, name.len++) { i 396 http/ngx_http_script.c ch = sc->source->data[i]; i 399 http/ngx_http_script.c i++; i 435 http/ngx_http_script.c if (sc->source->data[i] == '?' && sc->compile_args) { i 443 http/ngx_http_script.c i++; i 448 http/ngx_http_script.c name.data = &sc->source->data[i]; i 450 http/ngx_http_script.c while (i < sc->source->len) { i 452 http/ngx_http_script.c if (sc->source->data[i] == '$') { i 456 http/ngx_http_script.c if (sc->source->data[i] == '?') { i 465 http/ngx_http_script.c i++; i 471 http/ngx_http_script.c if (ngx_http_script_add_copy_code(sc, &name, (i == sc->source->len)) i 492 http/ngx_http_script.c ngx_uint_t i; i 500 http/ngx_http_script.c for (i = 0; i < cmcf->variables.nelts; i++) { i 501 http/ngx_http_script.c if (r->variables[i].no_cacheable) { i 502 http/ngx_http_script.c r->variables[i].valid = 0; i 503 http/ngx_http_script.c r->variables[i].not_found = 0; i 355 http/ngx_http_special_response.c ngx_uint_t i, err; i 400 http/ngx_http_special_response.c for (i = 0; i < clcf->error_pages->nelts; i++) { i 401 http/ngx_http_special_response.c if (err_page[i].status == error) { i 402 http/ngx_http_special_response.c return ngx_http_send_error_page(r, &err_page[i]); i 437 http/ngx_http_upstream.c ngx_uint_t i; i 564 http/ngx_http_upstream.c for (i = 0; i < umcf->upstreams.nelts; i++) { i 566 http/ngx_http_upstream.c uscf = uscfp[i]; i 853 http/ngx_http_upstream.c ngx_uint_t i; i 855 http/ngx_http_upstream.c for (i = 0; i < ctx->naddrs; i++) { i 856 http/ngx_http_upstream.c addr = ntohl(ur->addrs[i]); i 1688 http/ngx_http_upstream.c ngx_uint_t i; i 1711 http/ngx_http_upstream.c for (i = 0; i < clcf->error_pages->nelts; i++) { i 1713 http/ngx_http_upstream.c if (err_page[i].status == status) { i 1804 http/ngx_http_upstream.c ngx_uint_t i, flags; i 1820 http/ngx_http_upstream.c for (i = 0; /* void */; i++) { i 1822 http/ngx_http_upstream.c if (i >= part->nelts) { i 1829 http/ngx_http_upstream.c i = 0; i 1832 http/ngx_http_upstream.c hh = ngx_hash_find(&umcf->headers_in_hash, h[i].hash, i 1833 http/ngx_http_upstream.c h[i].lowcase_key, h[i].key.len); i 1836 http/ngx_http_upstream.c if (hh->copy_handler(r, &h[i], hh->conf) != NGX_OK) { i 1867 http/ngx_http_upstream.c for (i = 0; /* void */; i++) { i 1869 http/ngx_http_upstream.c if (i >= part->nelts) { i 1876 http/ngx_http_upstream.c i = 0; i 1879 http/ngx_http_upstream.c if (ngx_hash_find(&u->conf->hide_headers_hash, h[i].hash, i 1880 http/ngx_http_upstream.c h[i].lowcase_key, h[i].key.len)) i 1885 http/ngx_http_upstream.c hh = ngx_hash_find(&umcf->headers_in_hash, h[i].hash, i 1886 http/ngx_http_upstream.c h[i].lowcase_key, h[i].key.len); i 1889 http/ngx_http_upstream.c if (hh->copy_handler(r, &h[i], hh->conf) != NGX_OK) { i 1898 http/ngx_http_upstream.c if (ngx_http_upstream_copy_header_line(r, &h[i], 0) != NGX_OK) { i 3642 http/ngx_http_upstream.c ngx_uint_t i; i 3657 http/ngx_http_upstream.c for (i = 0; i < r->upstream_states->nelts; i++) { i 3658 http/ngx_http_upstream.c if (state[i].peer) { i 3659 http/ngx_http_upstream.c len += state[i].peer->len + 2; i 3673 http/ngx_http_upstream.c i = 0; i 3676 http/ngx_http_upstream.c if (state[i].peer) { i 3677 http/ngx_http_upstream.c p = ngx_cpymem(p, state[i].peer->data, state[i].peer->len); i 3680 http/ngx_http_upstream.c if (++i == r->upstream_states->nelts) { i 3684 http/ngx_http_upstream.c if (state[i].peer) { i 3693 http/ngx_http_upstream.c if (++i == r->upstream_states->nelts) { i 3713 http/ngx_http_upstream.c ngx_uint_t i; i 3734 http/ngx_http_upstream.c i = 0; i 3738 http/ngx_http_upstream.c if (state[i].status) { i 3739 http/ngx_http_upstream.c p = ngx_sprintf(p, "%ui", state[i].status); i 3745 http/ngx_http_upstream.c if (++i == r->upstream_states->nelts) { i 3749 http/ngx_http_upstream.c if (state[i].peer) { i 3758 http/ngx_http_upstream.c if (++i == r->upstream_states->nelts) { i 3778 http/ngx_http_upstream.c ngx_uint_t i; i 3800 http/ngx_http_upstream.c i = 0; i 3804 http/ngx_http_upstream.c if (state[i].status) { i 3806 http/ngx_http_upstream.c (state[i].response_sec * 1000 + state[i].response_msec); i 3814 http/ngx_http_upstream.c if (++i == r->upstream_states->nelts) { i 3818 http/ngx_http_upstream.c if (state[i].peer) { i 3827 http/ngx_http_upstream.c if (++i == r->upstream_states->nelts) { i 3847 http/ngx_http_upstream.c ngx_uint_t i; i 3868 http/ngx_http_upstream.c i = 0; i 3872 http/ngx_http_upstream.c p = ngx_sprintf(p, "%O", state[i].response_length); i 3874 http/ngx_http_upstream.c if (++i == r->upstream_states->nelts) { i 3878 http/ngx_http_upstream.c if (state[i].peer) { i 3887 http/ngx_http_upstream.c if (++i == r->upstream_states->nelts) { i 4060 http/ngx_http_upstream.c ngx_uint_t i; i 4098 http/ngx_http_upstream.c for (i = 2; i < cf->args->nelts; i++) { i 4100 http/ngx_http_upstream.c if (ngx_strncmp(value[i].data, "weight=", 7) == 0) { i 4106 http/ngx_http_upstream.c weight = ngx_atoi(&value[i].data[7], value[i].len - 7); i 4115 http/ngx_http_upstream.c if (ngx_strncmp(value[i].data, "max_fails=", 10) == 0) { i 4121 http/ngx_http_upstream.c max_fails = ngx_atoi(&value[i].data[10], value[i].len - 10); i 4130 http/ngx_http_upstream.c if (ngx_strncmp(value[i].data, "fail_timeout=", 13) == 0) { i 4136 http/ngx_http_upstream.c s.len = value[i].len - 13; i 4137 http/ngx_http_upstream.c s.data = &value[i].data[13]; i 4148 http/ngx_http_upstream.c if (ngx_strncmp(value[i].data, "backup", 6) == 0) { i 4159 http/ngx_http_upstream.c if (ngx_strncmp(value[i].data, "down", 4) == 0) { i 4184 http/ngx_http_upstream.c "invalid parameter \"%V\"", &value[i]); i 4193 http/ngx_http_upstream.c ngx_uint_t i; i 4214 http/ngx_http_upstream.c for (i = 0; i < umcf->upstreams.nelts; i++) { i 4216 http/ngx_http_upstream.c if (uscfp[i]->host.len != u->host.len i 4217 http/ngx_http_upstream.c || ngx_strncasecmp(uscfp[i]->host.data, u->host.data, u->host.len) i 4224 http/ngx_http_upstream.c && (uscfp[i]->flags & NGX_HTTP_UPSTREAM_CREATE)) i 4231 http/ngx_http_upstream.c if ((uscfp[i]->flags & NGX_HTTP_UPSTREAM_CREATE) && u->port) { i 4238 http/ngx_http_upstream.c if ((flags & NGX_HTTP_UPSTREAM_CREATE) && uscfp[i]->port) { i 4241 http/ngx_http_upstream.c &u->host, uscfp[i]->port, i 4242 http/ngx_http_upstream.c uscfp[i]->file_name, uscfp[i]->line); i 4246 http/ngx_http_upstream.c if (uscfp[i]->port != u->port) { i 4250 http/ngx_http_upstream.c if (uscfp[i]->default_port && u->default_port i 4251 http/ngx_http_upstream.c && uscfp[i]->default_port != u->default_port) i 4256 http/ngx_http_upstream.c return uscfp[i]; i 4341 http/ngx_http_upstream.c ngx_uint_t i, j; i 4393 http/ngx_http_upstream.c for (i = 0; i < conf->hide_headers->nelts; i++) { i 4398 http/ngx_http_upstream.c if (ngx_strcasecmp(h[i].data, hk[j].key.data) == 0) { i 4408 http/ngx_http_upstream.c hk->key = h[i]; i 4409 http/ngx_http_upstream.c hk->key_hash = ngx_hash_key_lc(h[i].data, h[i].len); i 4423 http/ngx_http_upstream.c for (i = 0; i < conf->pass_headers->nelts; i++) { i 4430 http/ngx_http_upstream.c if (ngx_strcasecmp(h[i].data, hk[j].key.data) == 0) { i 4473 http/ngx_http_upstream.c ngx_uint_t i; i 4483 http/ngx_http_upstream.c for (i = 0; i < umcf->upstreams.nelts; i++) { i 4485 http/ngx_http_upstream.c init = uscfp[i]->peer.init_upstream ? uscfp[i]->peer.init_upstream: i 4488 http/ngx_http_upstream.c if (init(cf, uscfp[i]) != NGX_OK) { i 23 http/ngx_http_upstream_round_robin.c ngx_uint_t i, j, n; i 34 http/ngx_http_upstream_round_robin.c for (i = 0; i < us->servers->nelts; i++) { i 35 http/ngx_http_upstream_round_robin.c if (server[i].backup) { i 39 http/ngx_http_upstream_round_robin.c n += server[i].naddrs; i 54 http/ngx_http_upstream_round_robin.c for (i = 0; i < us->servers->nelts; i++) { i 55 http/ngx_http_upstream_round_robin.c for (j = 0; j < server[i].naddrs; j++) { i 56 http/ngx_http_upstream_round_robin.c if (server[i].backup) { i 60 http/ngx_http_upstream_round_robin.c peers->peer[n].sockaddr = server[i].addrs[j].sockaddr; i 61 http/ngx_http_upstream_round_robin.c peers->peer[n].socklen = server[i].addrs[j].socklen; i 62 http/ngx_http_upstream_round_robin.c peers->peer[n].name = server[i].addrs[j].name; i 63 http/ngx_http_upstream_round_robin.c peers->peer[n].max_fails = server[i].max_fails; i 64 http/ngx_http_upstream_round_robin.c peers->peer[n].fail_timeout = server[i].fail_timeout; i 65 http/ngx_http_upstream_round_robin.c peers->peer[n].down = server[i].down; i 66 http/ngx_http_upstream_round_robin.c peers->peer[n].weight = server[i].down ? 0 : server[i].weight; i 82 http/ngx_http_upstream_round_robin.c for (i = 0; i < us->servers->nelts; i++) { i 83 http/ngx_http_upstream_round_robin.c if (!server[i].backup) { i 87 http/ngx_http_upstream_round_robin.c n += server[i].naddrs; i 107 http/ngx_http_upstream_round_robin.c for (i = 0; i < us->servers->nelts; i++) { i 108 http/ngx_http_upstream_round_robin.c for (j = 0; j < server[i].naddrs; j++) { i 109 http/ngx_http_upstream_round_robin.c if (!server[i].backup) { i 113 http/ngx_http_upstream_round_robin.c backup->peer[n].sockaddr = server[i].addrs[j].sockaddr; i 114 http/ngx_http_upstream_round_robin.c backup->peer[n].socklen = server[i].addrs[j].socklen; i 115 http/ngx_http_upstream_round_robin.c backup->peer[n].name = server[i].addrs[j].name; i 116 http/ngx_http_upstream_round_robin.c backup->peer[n].weight = server[i].weight; i 117 http/ngx_http_upstream_round_robin.c backup->peer[n].current_weight = server[i].weight; i 118 http/ngx_http_upstream_round_robin.c backup->peer[n].max_fails = server[i].max_fails; i 119 http/ngx_http_upstream_round_robin.c backup->peer[n].fail_timeout = server[i].fail_timeout; i 120 http/ngx_http_upstream_round_robin.c backup->peer[n].down = server[i].down; i 171 http/ngx_http_upstream_round_robin.c for (i = 0; i < u.naddrs; i++) { i 172 http/ngx_http_upstream_round_robin.c peers->peer[i].sockaddr = u.addrs[i].sockaddr; i 173 http/ngx_http_upstream_round_robin.c peers->peer[i].socklen = u.addrs[i].socklen; i 174 http/ngx_http_upstream_round_robin.c peers->peer[i].name = u.addrs[i].name; i 175 http/ngx_http_upstream_round_robin.c peers->peer[i].weight = 1; i 176 http/ngx_http_upstream_round_robin.c peers->peer[i].current_weight = 1; i 177 http/ngx_http_upstream_round_robin.c peers->peer[i].max_fails = 1; i 178 http/ngx_http_upstream_round_robin.c peers->peer[i].fail_timeout = 10; i 256 http/ngx_http_upstream_round_robin.c ngx_uint_t i, n; i 293 http/ngx_http_upstream_round_robin.c for (i = 0; i < ur->naddrs; i++) { i 302 http/ngx_http_upstream_round_robin.c len = ngx_inet_ntop(AF_INET, &ur->addrs[i], p, NGX_INET_ADDRSTRLEN); i 312 http/ngx_http_upstream_round_robin.c sin->sin_addr.s_addr = ur->addrs[i]; i 314 http/ngx_http_upstream_round_robin.c peers->peer[i].sockaddr = (struct sockaddr *) sin; i 315 http/ngx_http_upstream_round_robin.c peers->peer[i].socklen = sizeof(struct sockaddr_in); i 316 http/ngx_http_upstream_round_robin.c peers->peer[i].name.len = len; i 317 http/ngx_http_upstream_round_robin.c peers->peer[i].name.data = p; i 318 http/ngx_http_upstream_round_robin.c peers->peer[i].weight = 1; i 319 http/ngx_http_upstream_round_robin.c peers->peer[i].current_weight = 1; i 320 http/ngx_http_upstream_round_robin.c peers->peer[i].max_fails = 1; i 321 http/ngx_http_upstream_round_robin.c peers->peer[i].fail_timeout = 10; i 364 http/ngx_http_upstream_round_robin.c ngx_uint_t i, n; i 410 http/ngx_http_upstream_round_robin.c i = pc->tries; i 452 http/ngx_http_upstream_round_robin.c if (--i == 0) { i 464 http/ngx_http_upstream_round_robin.c i = pc->tries; i 506 http/ngx_http_upstream_round_robin.c if (--i == 0) { i 530 http/ngx_http_upstream_round_robin.c for (i = 0; i < n; i++) { i 531 http/ngx_http_upstream_round_robin.c rrp->tried[i] = 0; i 551 http/ngx_http_upstream_round_robin.c for (i = 0; i < n; i++) { i 552 http/ngx_http_upstream_round_robin.c rrp->tried[i] = 0; i 566 http/ngx_http_upstream_round_robin.c for (i = 0; i < peers->number; i++) { i 567 http/ngx_http_upstream_round_robin.c peers->peer[i].fails = 0; i 581 http/ngx_http_upstream_round_robin.c ngx_uint_t i, n; i 588 http/ngx_http_upstream_round_robin.c for (i = 0; i < peers->number; i++) { i 590 http/ngx_http_upstream_round_robin.c if (peer[i].current_weight <= 0) { i 594 http/ngx_http_upstream_round_robin.c n = i; i 596 http/ngx_http_upstream_round_robin.c while (i < peers->number - 1) { i 598 http/ngx_http_upstream_round_robin.c i++; i 600 http/ngx_http_upstream_round_robin.c if (peer[i].current_weight <= 0) { i 604 http/ngx_http_upstream_round_robin.c if (peer[n].current_weight * 1000 / peer[i].current_weight i 605 http/ngx_http_upstream_round_robin.c > peer[n].weight * 1000 / peer[i].weight) i 610 http/ngx_http_upstream_round_robin.c n = i; i 613 http/ngx_http_upstream_round_robin.c if (peer[i].current_weight > 0) { i 614 http/ngx_http_upstream_round_robin.c n = i; i 620 http/ngx_http_upstream_round_robin.c for (i = 0; i < peers->number; i++) { i 621 http/ngx_http_upstream_round_robin.c peer[i].current_weight = peer[i].weight; i 271 http/ngx_http_variables.c ngx_uint_t i; i 279 http/ngx_http_variables.c for (i = 0; i < cmcf->variables_keys->keys.nelts; i++) { i 280 http/ngx_http_variables.c if (name->len != key[i].key.len i 281 http/ngx_http_variables.c || ngx_strncasecmp(name->data, key[i].key.data, name->len) != 0) i 286 http/ngx_http_variables.c v = key[i].value; i 335 http/ngx_http_variables.c ngx_uint_t i; i 352 http/ngx_http_variables.c for (i = 0; i < cmcf->variables.nelts; i++) { i 353 http/ngx_http_variables.c if (name->len != v[i].name.len i 354 http/ngx_http_variables.c || ngx_strncasecmp(name->data, v[i].name.data, name->len) != 0) i 359 http/ngx_http_variables.c return i; i 645 http/ngx_http_variables.c ngx_uint_t i, n; i 673 http/ngx_http_variables.c for (i = 0; i < n; i++) { i 674 http/ngx_http_variables.c len += h[i]->value.len + sizeof("; ") - 1; i 685 http/ngx_http_variables.c for (i = 0; /* void */ ; i++) { i 686 http/ngx_http_variables.c p = ngx_copy(p, h[i]->value.data, h[i]->value.len); i 688 http/ngx_http_variables.c if (i == n - 1) { i 724 http/ngx_http_variables.c ngx_uint_t i, n; i 729 http/ngx_http_variables.c for (i = 0; /* void */ ; i++) { i 731 http/ngx_http_variables.c if (i >= part->nelts) { i 738 http/ngx_http_variables.c i = 0; i 741 http/ngx_http_variables.c for (n = 0; n + prefix < var->len && n < header[i].key.len; n++) { i 742 http/ngx_http_variables.c ch = header[i].key.data[n]; i 756 http/ngx_http_variables.c if (n + prefix == var->len && n == header[i].key.len) { i 757 http/ngx_http_variables.c v->len = header[i].value.len; i 761 http/ngx_http_variables.c v->data = header[i].value.data; i 1678 http/ngx_http_variables.c ngx_uint_t i; i 1683 http/ngx_http_variables.c for (i = 0; i < map->nregex; i++) { i 1685 http/ngx_http_variables.c n = ngx_http_regex_exec(r, reg[i].regex, match); i 1688 http/ngx_http_variables.c return reg[i].value; i 1724 http/ngx_http_variables.c ngx_uint_t i, n; i 1766 http/ngx_http_variables.c for (i = 0; i < n; i++) { i 1767 http/ngx_http_variables.c rv[i].capture = 2 * ((p[0] << 8) + p[1]); i 1777 http/ngx_http_variables.c rv[i].index = ngx_http_get_variable_index(cf, &name); i 1778 http/ngx_http_variables.c if (rv[i].index == NGX_ERROR) { i 1795 http/ngx_http_variables.c ngx_uint_t i, n, len; i 1828 http/ngx_http_variables.c for (i = 0; i < re->nvariables; i++) { i 1830 http/ngx_http_variables.c n = re->variables[i].capture; i 1831 http/ngx_http_variables.c index = re->variables[i].index; i 1909 http/ngx_http_variables.c ngx_uint_t i, n; i 1922 http/ngx_http_variables.c for (i = 0; i < cmcf->variables.nelts; i++) { i 1929 http/ngx_http_variables.c && v[i].name.len == key[n].key.len i 1930 http/ngx_http_variables.c && ngx_strncmp(v[i].name.data, key[n].key.data, v[i].name.len) i 1933 http/ngx_http_variables.c v[i].get_handler = av->get_handler; i 1934 http/ngx_http_variables.c v[i].data = av->data; i 1937 http/ngx_http_variables.c v[i].flags = av->flags; i 1939 http/ngx_http_variables.c av->index = i; i 1945 http/ngx_http_variables.c if (ngx_strncmp(v[i].name.data, "http_", 5) == 0) { i 1946 http/ngx_http_variables.c v[i].get_handler = ngx_http_variable_unknown_header_in; i 1947 http/ngx_http_variables.c v[i].data = (uintptr_t) &v[i].name; i 1952 http/ngx_http_variables.c if (ngx_strncmp(v[i].name.data, "sent_http_", 10) == 0) { i 1953 http/ngx_http_variables.c v[i].get_handler = ngx_http_variable_unknown_header_out; i 1954 http/ngx_http_variables.c v[i].data = (uintptr_t) &v[i].name; i 1959 http/ngx_http_variables.c if (ngx_strncmp(v[i].name.data, "upstream_http_", 14) == 0) { i 1960 http/ngx_http_variables.c v[i].get_handler = ngx_http_upstream_header_variable; i 1961 http/ngx_http_variables.c v[i].data = (uintptr_t) &v[i].name; i 1962 http/ngx_http_variables.c v[i].flags = NGX_HTTP_VAR_NOCACHEABLE; i 1967 http/ngx_http_variables.c if (ngx_strncmp(v[i].name.data, "cookie_", 7) == 0) { i 1968 http/ngx_http_variables.c v[i].get_handler = ngx_http_variable_cookie; i 1969 http/ngx_http_variables.c v[i].data = (uintptr_t) &v[i].name; i 1974 http/ngx_http_variables.c if (ngx_strncmp(v[i].name.data, "arg_", 4) == 0) { i 1975 http/ngx_http_variables.c v[i].get_handler = ngx_http_variable_argument; i 1976 http/ngx_http_variables.c v[i].data = (uintptr_t) &v[i].name; i 1977 http/ngx_http_variables.c v[i].flags = NGX_HTTP_VAR_NOCACHEABLE; i 1983 http/ngx_http_variables.c "unknown \"%V\" variable", &v[i].name); i 76 mail/ngx_mail.c ngx_uint_t i, m, mi, s; i 230 mail/ngx_mail.c for (i = 0; i < cmcf->listen.nelts; i++) { i 231 mail/ngx_mail.c if (ngx_mail_add_ports(cf, &ports, &listen[i]) != NGX_OK) { i 245 mail/ngx_mail.c ngx_uint_t i; i 272 mail/ngx_mail.c for (i = 0; i < ports->nelts; i++) { i 273 mail/ngx_mail.c if (p == port[i].port && sa->sa_family == port[i].family) { i 277 mail/ngx_mail.c port = &port[i]; i 325 mail/ngx_mail.c ngx_uint_t i, p, last, bind_wildcard; i 353 mail/ngx_mail.c i = 0; i 355 mail/ngx_mail.c while (i < last) { i 357 mail/ngx_mail.c if (bind_wildcard && !addr[i].bind) { i 358 mail/ngx_mail.c i++; i 362 mail/ngx_mail.c ls = ngx_create_listening(cf, addr[i].sockaddr, addr[i].socklen); i 377 mail/ngx_mail.c ls->ipv6only = addr[i].ipv6only; i 387 mail/ngx_mail.c if (i == last - 1) { i 392 mail/ngx_mail.c i = 0; i 425 mail/ngx_mail.c ngx_uint_t i; i 438 mail/ngx_mail.c for (i = 0; i < mport->naddrs; i++) { i 440 mail/ngx_mail.c sin = (struct sockaddr_in *) addr[i].sockaddr; i 441 mail/ngx_mail.c addrs[i].addr = sin->sin_addr.s_addr; i 443 mail/ngx_mail.c addrs[i].conf.ctx = addr[i].ctx; i 445 mail/ngx_mail.c addrs[i].conf.ssl = addr[i].ssl; i 448 mail/ngx_mail.c len = ngx_sock_ntop(addr[i].sockaddr, buf, NGX_SOCKADDR_STRLEN, 1); i 457 mail/ngx_mail.c addrs[i].conf.addr_text.len = len; i 458 mail/ngx_mail.c addrs[i].conf.addr_text.data = p; i 473 mail/ngx_mail.c ngx_uint_t i; i 486 mail/ngx_mail.c for (i = 0; i < mport->naddrs; i++) { i 488 mail/ngx_mail.c sin6 = (struct sockaddr_in6 *) addr[i].sockaddr; i 489 mail/ngx_mail.c addrs6[i].addr6 = sin6->sin6_addr; i 491 mail/ngx_mail.c addrs6[i].conf.ctx = addr[i].ctx; i 493 mail/ngx_mail.c addrs6[i].conf.ssl = addr[i].ssl; i 496 mail/ngx_mail.c len = ngx_sock_ntop(addr[i].sockaddr, buf, NGX_SOCKADDR_STRLEN, 1); i 505 mail/ngx_mail.c addrs6[i].conf.addr_text.len = len; i 506 mail/ngx_mail.c addrs6[i].conf.addr_text.data = p; i 1324 mail/ngx_mail_auth_http_module.c ngx_uint_t i; i 1351 mail/ngx_mail_auth_http_module.c for (i = 0; i < conf->headers->nelts; i++) { i 1352 mail/ngx_mail_auth_http_module.c len += header[i].key.len + 2 + header[i].value.len + 2; i 1363 mail/ngx_mail_auth_http_module.c for (i = 0; i < conf->headers->nelts; i++) { i 1364 mail/ngx_mail_auth_http_module.c p = ngx_cpymem(p, header[i].key.data, header[i].key.len); i 1366 mail/ngx_mail_auth_http_module.c p = ngx_cpymem(p, header[i].value.data, header[i].value.len); i 286 mail/ngx_mail_core_module.c ngx_uint_t i, m; i 317 mail/ngx_mail_core_module.c for (i = 0; i < cmcf->listen.nelts; i++) { i 319 mail/ngx_mail_core_module.c sa = (struct sockaddr *) ls[i].sockaddr; i 344 mail/ngx_mail_core_module.c if (ngx_memcmp(ls[i].sockaddr + off, u.sockaddr + off, len) != 0) { i 381 mail/ngx_mail_core_module.c for (i = 0; module->protocol->port[i]; i++) { i 382 mail/ngx_mail_core_module.c if (module->protocol->port[i] == u.port) { i 389 mail/ngx_mail_core_module.c for (i = 2; i < cf->args->nelts; i++) { i 391 mail/ngx_mail_core_module.c if (ngx_strcmp(value[i].data, "bind") == 0) { i 396 mail/ngx_mail_core_module.c if (ngx_strncmp(value[i].data, "ipv6only=o", 10) == 0) { i 405 mail/ngx_mail_core_module.c if (ngx_strcmp(&value[i].data[10], "n") == 0) { i 408 mail/ngx_mail_core_module.c } else if (ngx_strcmp(&value[i].data[10], "ff") == 0) { i 414 mail/ngx_mail_core_module.c &value[i].data[9]); i 437 mail/ngx_mail_core_module.c if (ngx_strcmp(value[i].data, "ssl") == 0) { i 450 mail/ngx_mail_core_module.c "the invalid \"%V\" parameter", &value[i]); i 535 mail/ngx_mail_core_module.c ngx_uint_t i; i 542 mail/ngx_mail_core_module.c for (i = 1; i < cf->args->nelts; i++) { i 548 mail/ngx_mail_core_module.c *c = value[i]; i 24 mail/ngx_mail_handler.c ngx_uint_t i; i 71 mail/ngx_mail_handler.c for (i = 0; i < port->naddrs - 1; i++) { i 72 mail/ngx_mail_handler.c if (ngx_memcmp(&addr6[i].addr6, &sin6->sin6_addr, 16) == 0) { i 77 mail/ngx_mail_handler.c addr_conf = &addr6[i].conf; i 89 mail/ngx_mail_handler.c for (i = 0; i < port->naddrs - 1; i++) { i 90 mail/ngx_mail_handler.c if (addr[i].addr == sin->sin_addr.s_addr) { i 95 mail/ngx_mail_handler.c addr_conf = &addr[i].conf; i 106 mail/ngx_mail_imap_handler.c ngx_uint_t tag, i; i 149 mail/ngx_mail_imap_handler.c for (i = 0; i < s->args.nelts; i++) { i 150 mail/ngx_mail_imap_handler.c dst = arg[i].data; i 151 mail/ngx_mail_imap_handler.c end = dst + arg[i].len; i 160 mail/ngx_mail_imap_handler.c arg[i].len = dst - arg[i].data; i 143 mail/ngx_mail_imap_module.c ngx_uint_t i, m; i 174 mail/ngx_mail_imap_module.c for (i = 0; i < conf->capabilities.nelts; i++) { i 175 mail/ngx_mail_imap_module.c size += 1 + c[i].len; i 178 mail/ngx_mail_imap_module.c for (m = NGX_MAIL_AUTH_PLAIN_ENABLED, i = 0; i 180 mail/ngx_mail_imap_module.c m <<= 1, i++) i 183 mail/ngx_mail_imap_module.c size += 1 + ngx_mail_imap_auth_methods_names[i].len; i 197 mail/ngx_mail_imap_module.c for (i = 0; i < conf->capabilities.nelts; i++) { i 199 mail/ngx_mail_imap_module.c p = ngx_cpymem(p, c[i].data, c[i].len); i 204 mail/ngx_mail_imap_module.c for (m = NGX_MAIL_AUTH_PLAIN_ENABLED, i = 0; i 206 mail/ngx_mail_imap_module.c m <<= 1, i++) i 210 mail/ngx_mail_imap_module.c p = ngx_cpymem(p, ngx_mail_imap_auth_methods_names[i].data, i 211 mail/ngx_mail_imap_module.c ngx_mail_imap_auth_methods_names[i].len); i 140 mail/ngx_mail_pop3_module.c ngx_uint_t i; i 169 mail/ngx_mail_pop3_module.c for (i = 0; i < conf->capabilities.nelts; i++) { i 170 mail/ngx_mail_pop3_module.c size += c[i].len + sizeof(CRLF) - 1; i 172 mail/ngx_mail_pop3_module.c if (ngx_strcasecmp(c[i].data, (u_char *) "USER") == 0) { i 176 mail/ngx_mail_pop3_module.c stls_only_size += c[i].len + sizeof(CRLF) - 1; i 197 mail/ngx_mail_pop3_module.c for (i = 0; i < conf->capabilities.nelts; i++) { i 198 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, c[i].data, c[i].len); i 250 mail/ngx_mail_pop3_module.c for (i = 0; i < conf->capabilities.nelts; i++) { i 251 mail/ngx_mail_pop3_module.c if (ngx_strcasecmp(c[i].data, (u_char *) "USER") == 0) { i 255 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, c[i].data, c[i].len); i 184 mail/ngx_mail_smtp_handler.c ngx_uint_t i; i 211 mail/ngx_mail_smtp_handler.c for (i = 0; i < ctx->naddrs; i++) { i 213 mail/ngx_mail_smtp_handler.c addr = ctx->addrs[i]; i 655 mail/ngx_mail_smtp_handler.c ngx_uint_t i; i 676 mail/ngx_mail_smtp_handler.c for (i = 0; i < l.len; i++) { i 677 mail/ngx_mail_smtp_handler.c ch = l.data[i]; i 683 mail/ngx_mail_smtp_handler.c l.data[i] = ' '; i 686 mail/ngx_mail_smtp_handler.c while (i) { i 687 mail/ngx_mail_smtp_handler.c if (l.data[i - 1] != ' ') { i 691 mail/ngx_mail_smtp_handler.c i--; i 694 mail/ngx_mail_smtp_handler.c l.len = i; i 719 mail/ngx_mail_smtp_handler.c ngx_uint_t i; i 729 mail/ngx_mail_smtp_handler.c for (i = 0; i < l.len; i++) { i 730 mail/ngx_mail_smtp_handler.c ch = l.data[i]; i 736 mail/ngx_mail_smtp_handler.c l.data[i] = ' '; i 739 mail/ngx_mail_smtp_handler.c while (i) { i 740 mail/ngx_mail_smtp_handler.c if (l.data[i - 1] != ' ') { i 744 mail/ngx_mail_smtp_handler.c i--; i 747 mail/ngx_mail_smtp_handler.c l.len = i; i 849 mail/ngx_mail_smtp_handler.c ngx_uint_t i; i 858 mail/ngx_mail_smtp_handler.c for (i = 0; i < cmd.len; i++) { i 859 mail/ngx_mail_smtp_handler.c ch = cmd.data[i]; i 865 mail/ngx_mail_smtp_handler.c cmd.data[i] = '_'; i 868 mail/ngx_mail_smtp_handler.c cmd.len = i; i 144 mail/ngx_mail_smtp_module.c ngx_uint_t i, m, auth_enabled; i 200 mail/ngx_mail_smtp_module.c for (i = 0; i < conf->capabilities.nelts; i++) { i 201 mail/ngx_mail_smtp_module.c size += sizeof("250 ") - 1 + c[i].len + sizeof(CRLF) - 1; i 206 mail/ngx_mail_smtp_module.c for (m = NGX_MAIL_AUTH_PLAIN_ENABLED, i = 0; i 208 mail/ngx_mail_smtp_module.c m <<= 1, i++) i 211 mail/ngx_mail_smtp_module.c size += 1 + ngx_mail_smtp_auth_methods_names[i].len; i 234 mail/ngx_mail_smtp_module.c for (i = 0; i < conf->capabilities.nelts; i++) { i 237 mail/ngx_mail_smtp_module.c p = ngx_cpymem(p, c[i].data, c[i].len); i 249 mail/ngx_mail_smtp_module.c for (m = NGX_MAIL_AUTH_PLAIN_ENABLED, i = 0; i 251 mail/ngx_mail_smtp_module.c m <<= 1, i++) i 255 mail/ngx_mail_smtp_module.c p = ngx_cpymem(p, ngx_mail_smtp_auth_methods_names[i].data, i 256 mail/ngx_mail_smtp_module.c ngx_mail_smtp_auth_methods_names[i].len); i 376 mail/ngx_mail_ssl_module.c ngx_uint_t i, j; i 380 mail/ngx_mail_ssl_module.c for (i = 1; i < cf->args->nelts; i++) { i 382 mail/ngx_mail_ssl_module.c if (ngx_strcmp(value[i].data, "off") == 0) { i 387 mail/ngx_mail_ssl_module.c if (ngx_strcmp(value[i].data, "none") == 0) { i 392 mail/ngx_mail_ssl_module.c if (ngx_strcmp(value[i].data, "builtin") == 0) { i 397 mail/ngx_mail_ssl_module.c if (value[i].len > sizeof("builtin:") - 1 i 398 mail/ngx_mail_ssl_module.c && ngx_strncmp(value[i].data, "builtin:", sizeof("builtin:") - 1) i 401 mail/ngx_mail_ssl_module.c n = ngx_atoi(value[i].data + sizeof("builtin:") - 1, i 402 mail/ngx_mail_ssl_module.c value[i].len - (sizeof("builtin:") - 1)); i 413 mail/ngx_mail_ssl_module.c if (value[i].len > sizeof("shared:") - 1 i 414 mail/ngx_mail_ssl_module.c && ngx_strncmp(value[i].data, "shared:", sizeof("shared:") - 1) i 419 mail/ngx_mail_ssl_module.c for (j = sizeof("shared:") - 1; j < value[i].len; j++) { i 420 mail/ngx_mail_ssl_module.c if (value[i].data[j] == ':') { i 432 mail/ngx_mail_ssl_module.c name.data = value[i].data + sizeof("shared:") - 1; i 434 mail/ngx_mail_ssl_module.c size.len = value[i].len - j - 1; i 446 mail/ngx_mail_ssl_module.c &value[i]); i 472 mail/ngx_mail_ssl_module.c "invalid session cache \"%V\"", &value[i]); i 64 os/unix/ngx_darwin_init.c ngx_uint_t i; i 105 os/unix/ngx_darwin_init.c for (i = 0; sysctls[i].name; i++) { i 106 os/unix/ngx_darwin_init.c size = sysctls[i].size; i 108 os/unix/ngx_darwin_init.c if (sysctlbyname(sysctls[i].name, sysctls[i].value, &size, NULL, 0) i 111 os/unix/ngx_darwin_init.c sysctls[i].exists = 1; i 122 os/unix/ngx_darwin_init.c "sysctlbyname(%s) failed", sysctls[i].name); i 149 os/unix/ngx_darwin_init.c ngx_uint_t i; i 156 os/unix/ngx_darwin_init.c for (i = 0; sysctls[i].name; i++) { i 157 os/unix/ngx_darwin_init.c if (sysctls[i].exists) { i 158 os/unix/ngx_darwin_init.c if (sysctls[i].size == sizeof(long)) { i 159 os/unix/ngx_darwin_init.c value = *(long *) sysctls[i].value; i 162 os/unix/ngx_darwin_init.c value = *(int *) sysctls[i].value; i 166 os/unix/ngx_darwin_init.c sysctls[i].name, value); i 103 os/unix/ngx_freebsd_init.c ngx_uint_t i; i 184 os/unix/ngx_freebsd_init.c for (i = 0; sysctls[i].name; i++) { i 185 os/unix/ngx_freebsd_init.c size = sysctls[i].size; i 187 os/unix/ngx_freebsd_init.c if (sysctlbyname(sysctls[i].name, sysctls[i].value, &size, NULL, 0) i 190 os/unix/ngx_freebsd_init.c sysctls[i].exists = 1; i 201 os/unix/ngx_freebsd_init.c "sysctlbyname(%s) failed", sysctls[i].name); i 233 os/unix/ngx_freebsd_init.c ngx_uint_t i; i 248 os/unix/ngx_freebsd_init.c for (i = 0; sysctls[i].name; i++) { i 249 os/unix/ngx_freebsd_init.c if (sysctls[i].exists) { i 250 os/unix/ngx_freebsd_init.c if (sysctls[i].size == sizeof(long)) { i 251 os/unix/ngx_freebsd_init.c value = *(long *) sysctls[i].value; i 254 os/unix/ngx_freebsd_init.c value = *(int *) sysctls[i].value; i 258 os/unix/ngx_freebsd_init.c sysctls[i].name, value); i 186 os/unix/ngx_freebsd_rfork_thread.c ngx_int_t i; i 191 os/unix/ngx_freebsd_rfork_thread.c for (i = 0; i < n; i++) { i 447 os/unix/ngx_process.c ngx_int_t i; i 509 os/unix/ngx_process.c for (i = 0; i < ngx_last_process; i++) { i 510 os/unix/ngx_process.c if (ngx_processes[i].pid == pid) { i 511 os/unix/ngx_process.c ngx_processes[i].status = status; i 512 os/unix/ngx_process.c ngx_processes[i].exited = 1; i 513 os/unix/ngx_process.c process = ngx_processes[i].name; i 536 os/unix/ngx_process.c if (WEXITSTATUS(status) == 2 && ngx_processes[i].respawn) { i 541 os/unix/ngx_process.c ngx_processes[i].respawn = 0; i 88 os/unix/ngx_process_cycle.c ngx_int_t i; i 119 os/unix/ngx_process_cycle.c for (i = 0; i < ngx_argc; i++) { i 120 os/unix/ngx_process_cycle.c size += ngx_strlen(ngx_argv[i]) + 1; i 126 os/unix/ngx_process_cycle.c for (i = 0; i < ngx_argc; i++) { i 128 os/unix/ngx_process_cycle.c p = ngx_cpystrn(p, (u_char *) ngx_argv[i], size); i 292 os/unix/ngx_process_cycle.c ngx_uint_t i; i 299 os/unix/ngx_process_cycle.c for (i = 0; ngx_modules[i]; i++) { i 300 os/unix/ngx_process_cycle.c if (ngx_modules[i]->init_process) { i 301 os/unix/ngx_process_cycle.c if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) { i 315 os/unix/ngx_process_cycle.c for (i = 0; ngx_modules[i]; i++) { i 316 os/unix/ngx_process_cycle.c if (ngx_modules[i]->exit_process) { i 317 os/unix/ngx_process_cycle.c ngx_modules[i]->exit_process(cycle); i 349 os/unix/ngx_process_cycle.c ngx_int_t i; i 356 os/unix/ngx_process_cycle.c for (i = 0; i < n; i++) { i 358 os/unix/ngx_process_cycle.c cpu_affinity = ngx_get_cpu_affinity(i); i 375 os/unix/ngx_process_cycle.c ngx_uint_t i, manager, loader; i 383 os/unix/ngx_process_cycle.c for (i = 0; i < ngx_cycle->pathes.nelts; i++) { i 385 os/unix/ngx_process_cycle.c if (path[i]->manager) { i 389 os/unix/ngx_process_cycle.c if (path[i]->loader) { i 429 os/unix/ngx_process_cycle.c ngx_int_t i; i 431 os/unix/ngx_process_cycle.c for (i = 0; i < ngx_last_process; i++) { i 433 os/unix/ngx_process_cycle.c if (i == ngx_process_slot i 434 os/unix/ngx_process_cycle.c || ngx_processes[i].pid == -1 i 435 os/unix/ngx_process_cycle.c || ngx_processes[i].channel[0] == -1) i 443 os/unix/ngx_process_cycle.c i, ngx_processes[i].pid, i 444 os/unix/ngx_process_cycle.c ngx_processes[i].channel[0]); i 448 os/unix/ngx_process_cycle.c ngx_write_channel(ngx_processes[i].channel[0], i 457 os/unix/ngx_process_cycle.c ngx_int_t i; i 490 os/unix/ngx_process_cycle.c for (i = 0; i < ngx_last_process; i++) { i 494 os/unix/ngx_process_cycle.c i, i 495 os/unix/ngx_process_cycle.c ngx_processes[i].pid, i 496 os/unix/ngx_process_cycle.c ngx_processes[i].exiting, i 497 os/unix/ngx_process_cycle.c ngx_processes[i].exited, i 498 os/unix/ngx_process_cycle.c ngx_processes[i].detached, i 499 os/unix/ngx_process_cycle.c ngx_processes[i].respawn, i 500 os/unix/ngx_process_cycle.c ngx_processes[i].just_spawn); i 502 os/unix/ngx_process_cycle.c if (ngx_processes[i].detached || ngx_processes[i].pid == -1) { i 506 os/unix/ngx_process_cycle.c if (ngx_processes[i].just_spawn) { i 507 os/unix/ngx_process_cycle.c ngx_processes[i].just_spawn = 0; i 511 os/unix/ngx_process_cycle.c if (ngx_processes[i].exiting i 518 os/unix/ngx_process_cycle.c if (ngx_write_channel(ngx_processes[i].channel[0], i 523 os/unix/ngx_process_cycle.c ngx_processes[i].exiting = 1; i 531 os/unix/ngx_process_cycle.c "kill (%P, %d)" , ngx_processes[i].pid, signo); i 533 os/unix/ngx_process_cycle.c if (kill(ngx_processes[i].pid, signo) == -1) { i 536 os/unix/ngx_process_cycle.c "kill(%P, %d) failed", ngx_processes[i].pid, signo); i 539 os/unix/ngx_process_cycle.c ngx_processes[i].exited = 1; i 540 os/unix/ngx_process_cycle.c ngx_processes[i].exiting = 0; i 548 os/unix/ngx_process_cycle.c ngx_processes[i].exiting = 1; i 557 os/unix/ngx_process_cycle.c ngx_int_t i, n; i 566 os/unix/ngx_process_cycle.c for (i = 0; i < ngx_last_process; i++) { i 570 os/unix/ngx_process_cycle.c i, i 571 os/unix/ngx_process_cycle.c ngx_processes[i].pid, i 572 os/unix/ngx_process_cycle.c ngx_processes[i].exiting, i 573 os/unix/ngx_process_cycle.c ngx_processes[i].exited, i 574 os/unix/ngx_process_cycle.c ngx_processes[i].detached, i 575 os/unix/ngx_process_cycle.c ngx_processes[i].respawn, i 576 os/unix/ngx_process_cycle.c ngx_processes[i].just_spawn); i 578 os/unix/ngx_process_cycle.c if (ngx_processes[i].pid == -1) { i 582 os/unix/ngx_process_cycle.c if (ngx_processes[i].exited) { i 584 os/unix/ngx_process_cycle.c if (!ngx_processes[i].detached) { i 585 os/unix/ngx_process_cycle.c ngx_close_channel(ngx_processes[i].channel, cycle->log); i 587 os/unix/ngx_process_cycle.c ngx_processes[i].channel[0] = -1; i 588 os/unix/ngx_process_cycle.c ngx_processes[i].channel[1] = -1; i 590 os/unix/ngx_process_cycle.c ch.pid = ngx_processes[i].pid; i 591 os/unix/ngx_process_cycle.c ch.slot = i; i 612 os/unix/ngx_process_cycle.c if (ngx_processes[i].respawn i 613 os/unix/ngx_process_cycle.c && !ngx_processes[i].exiting i 617 os/unix/ngx_process_cycle.c if (ngx_spawn_process(cycle, ngx_processes[i].proc, i 618 os/unix/ngx_process_cycle.c ngx_processes[i].data, i 619 os/unix/ngx_process_cycle.c ngx_processes[i].name, i) i 623 os/unix/ngx_process_cycle.c "can not respawn %s", ngx_processes[i].name); i 640 os/unix/ngx_process_cycle.c if (ngx_processes[i].pid == ngx_new_binary) { i 662 os/unix/ngx_process_cycle.c if (i == ngx_last_process - 1) { i 666 os/unix/ngx_process_cycle.c ngx_processes[i].pid = -1; i 669 os/unix/ngx_process_cycle.c } else if (ngx_processes[i].exiting || !ngx_processes[i].detached) { i 681 os/unix/ngx_process_cycle.c ngx_uint_t i; i 687 os/unix/ngx_process_cycle.c for (i = 0; ngx_modules[i]; i++) { i 688 os/unix/ngx_process_cycle.c if (ngx_modules[i]->exit_master) { i 689 os/unix/ngx_process_cycle.c ngx_modules[i]->exit_master(cycle); i 719 os/unix/ngx_process_cycle.c ngx_uint_t i; i 780 os/unix/ngx_process_cycle.c for (i = 0; i < cycle->connection_n; i++) { i 784 os/unix/ngx_process_cycle.c if (c[i].fd != -1 && c[i].idle) { i 785 os/unix/ngx_process_cycle.c c[i].close = 1; i 786 os/unix/ngx_process_cycle.c c[i].read->handler(c[i].read); i 834 os/unix/ngx_process_cycle.c ngx_uint_t i; i 956 os/unix/ngx_process_cycle.c for (i = 0; i < cycle->listening.nelts; i++) { i 957 os/unix/ngx_process_cycle.c ls[i].previous = NULL; i 960 os/unix/ngx_process_cycle.c for (i = 0; ngx_modules[i]; i++) { i 961 os/unix/ngx_process_cycle.c if (ngx_modules[i]->init_process) { i 962 os/unix/ngx_process_cycle.c if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) { i 1011 os/unix/ngx_process_cycle.c ngx_uint_t i; i 1020 os/unix/ngx_process_cycle.c for (i = 0; ngx_modules[i]; i++) { i 1021 os/unix/ngx_process_cycle.c if (ngx_modules[i]->exit_process) { i 1022 os/unix/ngx_process_cycle.c ngx_modules[i]->exit_process(cycle); i 1028 os/unix/ngx_process_cycle.c for (i = 0; i < cycle->connection_n; i++) { i 1029 os/unix/ngx_process_cycle.c if (c[i].fd != -1 i 1030 os/unix/ngx_process_cycle.c && c[i].read i 1031 os/unix/ngx_process_cycle.c && !c[i].read->accept i 1032 os/unix/ngx_process_cycle.c && !c[i].read->channel i 1033 os/unix/ngx_process_cycle.c && !c[i].read->resolver) i 1037 os/unix/ngx_process_cycle.c c[i].fd, i); i 1164 os/unix/ngx_process_cycle.c ngx_int_t i; i 1171 os/unix/ngx_process_cycle.c for (i = 0; i < ngx_threads_n; i++) { i 1172 os/unix/ngx_process_cycle.c if (ngx_threads[i].state < NGX_THREAD_EXIT) { i 1173 os/unix/ngx_process_cycle.c if (ngx_cond_signal(ngx_threads[i].cv) == NGX_ERROR) { i 1174 os/unix/ngx_process_cycle.c ngx_threads[i].state = NGX_THREAD_DONE; i 1181 os/unix/ngx_process_cycle.c if (ngx_threads[i].state == NGX_THREAD_EXIT) { i 1182 os/unix/ngx_process_cycle.c ngx_thread_join(ngx_threads[i].tid, NULL); i 1183 os/unix/ngx_process_cycle.c ngx_threads[i].state = NGX_THREAD_DONE; i 1337 os/unix/ngx_process_cycle.c ngx_uint_t i; i 1343 os/unix/ngx_process_cycle.c for (i = 0; i < ngx_cycle->pathes.nelts; i++) { i 1345 os/unix/ngx_process_cycle.c if (path[i]->manager) { i 1346 os/unix/ngx_process_cycle.c n = path[i]->manager(path[i]->data); i 1365 os/unix/ngx_process_cycle.c ngx_uint_t i; i 1372 os/unix/ngx_process_cycle.c for (i = 0; i < cycle->pathes.nelts; i++) { i 1378 os/unix/ngx_process_cycle.c if (path[i]->loader) { i 1379 os/unix/ngx_process_cycle.c path[i]->loader(path[i]->data); i 38 os/unix/ngx_setproctitle.c ngx_uint_t i; i 42 os/unix/ngx_setproctitle.c for (i = 0; environ[i]; i++) { i 43 os/unix/ngx_setproctitle.c size += ngx_strlen(environ[i]) + 1; i 53 os/unix/ngx_setproctitle.c for (i = 0; ngx_os_argv[i]; i++) { i 54 os/unix/ngx_setproctitle.c if (ngx_os_argv_last == ngx_os_argv[i]) { i 55 os/unix/ngx_setproctitle.c ngx_os_argv_last = ngx_os_argv[i] + ngx_strlen(ngx_os_argv[i]) + 1; i 59 os/unix/ngx_setproctitle.c for (i = 0; environ[i]; i++) { i 60 os/unix/ngx_setproctitle.c if (ngx_os_argv_last == environ[i]) { i 62 os/unix/ngx_setproctitle.c size = ngx_strlen(environ[i]) + 1; i 63 os/unix/ngx_setproctitle.c ngx_os_argv_last = environ[i] + size; i 65 os/unix/ngx_setproctitle.c ngx_cpystrn(p, (u_char *) environ[i], size); i 66 os/unix/ngx_setproctitle.c environ[i] = (char *) p; i 84 os/unix/ngx_setproctitle.c ngx_int_t i; i 100 os/unix/ngx_setproctitle.c for (i = 0; i < ngx_argc; i++) { i 101 os/unix/ngx_setproctitle.c size += ngx_strlen(ngx_argv[i]) + 1; i 113 os/unix/ngx_setproctitle.c for (i = 0; i < ngx_argc; i++) { i 114 os/unix/ngx_setproctitle.c p = ngx_cpystrn(p, (u_char *) ngx_argv[i],