n 470 core/nginx.c ngx_uint_t i, n; n 501 core/nginx.c n = 0; n 506 core/nginx.c n++; n 515 core/nginx.c n++; n 522 core/nginx.c env = ngx_alloc((*last + n + 1) * sizeof(char *), cycle->log); n 523 core/nginx.c *last = n; n 526 core/nginx.c env = ngx_palloc(cycle->pool, (n + 1) * sizeof(char *)); n 533 core/nginx.c n = 0; n 538 core/nginx.c env[n++] = (char *) var[i].data; n 547 core/nginx.c env[n++] = *p; n 553 core/nginx.c env[n] = NULL; n 569 core/nginx.c ngx_uint_t i, n; n 581 core/nginx.c n = 2; n 582 core/nginx.c env = ngx_set_environment(cycle, &n); n 600 core/nginx.c env[n++] = var; n 606 core/nginx.c env[n++] = "SPARE=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" n 614 core/nginx.c env[n] = NULL; n 1203 core/nginx.c ngx_uint_t n, minus; n 1212 core/nginx.c n = 1; n 1216 core/nginx.c n = 1; n 1220 core/nginx.c n = 0; n 1224 core/nginx.c ccf->priority = ngx_atoi(&value[1].data[n], value[1].len - n); n 1246 core/nginx.c ngx_uint_t i, n; n 1262 core/nginx.c for (n = 1; n < cf->args->nelts; n++) { n 1264 core/nginx.c if (value[n].len > 32) { n 1270 core/nginx.c mask[n - 1] = 0; n 1272 core/nginx.c for (i = 0; i < value[n].len; i++) { n 1274 core/nginx.c ch = value[n].data[i]; n 1280 core/nginx.c mask[n - 1] <<= 1; n 1287 core/nginx.c mask[n - 1] |= 1; n 1310 core/nginx.c ngx_get_cpu_affinity(ngx_uint_t n) n 1321 core/nginx.c if (ccf->cpu_affinity_n > n) { n 1322 core/nginx.c return ccf->cpu_affinity[n]; n 12 core/ngx_array.c ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size) n 21 core/ngx_array.c a->elts = ngx_palloc(p, n * size); n 28 core/ngx_array.c a->nalloc = n; n 100 core/ngx_array.c ngx_array_push_n(ngx_array_t *a, ngx_uint_t n) n 107 core/ngx_array.c size = n * a->size; n 109 core/ngx_array.c if (a->nelts + n > a->nalloc) { n 124 core/ngx_array.c a->nalloc += n; n 129 core/ngx_array.c nalloc = 2 * ((n >= a->nalloc) ? n : a->nalloc); n 143 core/ngx_array.c a->nelts += n; n 24 core/ngx_array.h ngx_array_t *ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size); n 27 core/ngx_array.h void *ngx_array_push_n(ngx_array_t *a, ngx_uint_t n); n 31 core/ngx_array.h ngx_array_init(ngx_array_t *array, ngx_pool_t *pool, ngx_uint_t n, size_t size) n 40 core/ngx_array.h array->nalloc = n; n 43 core/ngx_array.h array->elts = ngx_palloc(pool, n * size); n 439 core/ngx_conf_file.c ssize_t n, size; n 519 core/ngx_conf_file.c n = ngx_read_file(&cf->conf_file->file, b->start + len, size, n 522 core/ngx_conf_file.c if (n == NGX_ERROR) { n 526 core/ngx_conf_file.c if (n != size) { n 530 core/ngx_conf_file.c n, size); n 535 core/ngx_conf_file.c b->last = b->pos + n; n 744 core/ngx_conf_file.c ngx_int_t n; n 779 core/ngx_conf_file.c n = ngx_read_glob(&gl, &name); n 781 core/ngx_conf_file.c if (n != NGX_OK) { n 807 core/ngx_conf_file.c u_char *p, *n, *prefix; n 833 core/ngx_conf_file.c n = ngx_pnalloc(cycle->pool, len + name->len + 1); n 834 core/ngx_conf_file.c if (n == NULL) { n 838 core/ngx_conf_file.c p = ngx_cpymem(n, prefix, len); n 842 core/ngx_conf_file.c name->data = n; n 964 core/ngx_conf_file.c ssize_t n, len; n 991 core/ngx_conf_file.c n = ngx_write_fd(file[i].fd, file[i].buffer, len); n 993 core/ngx_conf_file.c if (n == NGX_FILE_ERROR) { n 998 core/ngx_conf_file.c } else if (n != len) { n 1001 core/ngx_conf_file.c file[i].name.data, n, len); n 53 core/ngx_config.h #define ngx_signal_helper(n) SIG##n n 54 core/ngx_config.h #define ngx_signal_value(n) ngx_signal_helper(n) n 46 core/ngx_cycle.c ngx_uint_t i, n; n 120 core/ngx_cycle.c n = old_cycle->pathes.nelts ? old_cycle->pathes.nelts : 10; n 122 core/ngx_cycle.c cycle->pathes.elts = ngx_pcalloc(pool, n * sizeof(ngx_path_t *)); n 130 core/ngx_cycle.c cycle->pathes.nalloc = n; n 135 core/ngx_cycle.c n = old_cycle->open_files.part.nelts; n 137 core/ngx_cycle.c n += part->nelts; n 141 core/ngx_cycle.c n = 20; n 144 core/ngx_cycle.c if (ngx_list_init(&cycle->open_files, pool, n, sizeof(ngx_open_file_t)) n 153 core/ngx_cycle.c n = old_cycle->shared_memory.part.nelts; n 156 core/ngx_cycle.c n += part->nelts; n 160 core/ngx_cycle.c n = 1; n 163 core/ngx_cycle.c if (ngx_list_init(&cycle->shared_memory, pool, n, sizeof(ngx_shm_zone_t)) n 170 core/ngx_cycle.c n = old_cycle->listening.nelts ? old_cycle->listening.nelts : 10; n 172 core/ngx_cycle.c cycle->listening.elts = ngx_pcalloc(pool, n * sizeof(ngx_listening_t)); n 180 core/ngx_cycle.c cycle->listening.nalloc = n; n 431 core/ngx_cycle.c for (n = 0; /* void */ ; n++) { n 433 core/ngx_cycle.c if (n >= opart->nelts) { n 439 core/ngx_cycle.c n = 0; n 442 core/ngx_cycle.c if (shm_zone[i].shm.name.len != oshm_zone[n].shm.name.len) { n 447 core/ngx_cycle.c oshm_zone[n].shm.name.data, n 454 core/ngx_cycle.c if (shm_zone[i].shm.size == oshm_zone[n].shm.size) { n 455 core/ngx_cycle.c shm_zone[i].shm.addr = oshm_zone[n].shm.addr; n 457 core/ngx_cycle.c if (shm_zone[i].init(&shm_zone[i], oshm_zone[n].data) n 466 core/ngx_cycle.c ngx_shm_free(&oshm_zone[n].shm); n 498 core/ngx_cycle.c for (n = 0; n < cycle->listening.nelts; n++) { n 505 core/ngx_cycle.c if (ngx_cmp_sockaddr(nls[n].sockaddr, ls[i].sockaddr) == NGX_OK) n 507 core/ngx_cycle.c nls[n].fd = ls[i].fd; n 508 core/ngx_cycle.c nls[n].previous = &ls[i]; n 511 core/ngx_cycle.c if (ls[n].backlog != nls[i].backlog) { n 512 core/ngx_cycle.c nls[n].listen = 1; n 521 core/ngx_cycle.c nls[n].deferred_accept = ls[i].deferred_accept; n 523 core/ngx_cycle.c if (ls[i].accept_filter && nls[n].accept_filter) { n 525 core/ngx_cycle.c nls[n].accept_filter) n 528 core/ngx_cycle.c nls[n].delete_deferred = 1; n 529 core/ngx_cycle.c nls[n].add_deferred = 1; n 533 core/ngx_cycle.c nls[n].delete_deferred = 1; n 535 core/ngx_cycle.c } else if (nls[n].accept_filter) { n 536 core/ngx_cycle.c nls[n].add_deferred = 1; n 542 core/ngx_cycle.c if (ls[n].deferred_accept && !nls[n].deferred_accept) { n 543 core/ngx_cycle.c nls[n].delete_deferred = 1; n 545 core/ngx_cycle.c } else if (ls[i].deferred_accept != nls[n].deferred_accept) n 547 core/ngx_cycle.c nls[n].add_deferred = 1; n 554 core/ngx_cycle.c if (nls[n].fd == -1) { n 555 core/ngx_cycle.c nls[n].open = 1; n 628 core/ngx_cycle.c for (n = 0; /* void */ ; n++) { n 630 core/ngx_cycle.c if (n >= part->nelts) { n 636 core/ngx_cycle.c n = 0; n 639 core/ngx_cycle.c if (oshm_zone[i].shm.name.len == shm_zone[n].shm.name.len n 641 core/ngx_cycle.c shm_zone[n].shm.name.data, n 751 core/ngx_cycle.c n = 10; n 753 core/ngx_cycle.c n * sizeof(ngx_cycle_t *)); n 759 core/ngx_cycle.c ngx_old_cycles.nalloc = n; n 1035 core/ngx_cycle.c ssize_t n; n 1057 core/ngx_cycle.c n = ngx_read_file(&file, buf, NGX_INT64_LEN + 2, 0); n 1064 core/ngx_cycle.c if (n == NGX_ERROR) { n 1068 core/ngx_cycle.c while (n-- && (buf[n] == CR || buf[n] == LF)) { /* void */ } n 1070 core/ngx_cycle.c pid = ngx_atoi(buf, ++n); n 1075 core/ngx_cycle.c n, buf, file.name.data); n 1118 core/ngx_cycle.c ssize_t n, len; n 1146 core/ngx_cycle.c n = ngx_write_fd(file[i].fd, file[i].buffer, len); n 1148 core/ngx_cycle.c if (n == NGX_FILE_ERROR) { n 1153 core/ngx_cycle.c } else if (n != len) { n 1156 core/ngx_cycle.c file[i].name.data, n, len); n 1332 core/ngx_cycle.c ngx_uint_t i, n, found, live; n 1352 core/ngx_cycle.c for (n = 0; n < cycle[i]->connection_n; n++) { n 1353 core/ngx_cycle.c if (cycle[i]->connections[n].fd != (ngx_socket_t) -1) { n 1356 core/ngx_cycle.c ngx_log_debug1(NGX_LOG_DEBUG_CORE, log, 0, "live fd:%d", n); n 126 core/ngx_cycle.h u_long ngx_get_cpu_affinity(ngx_uint_t n); n 43 core/ngx_file.c uint32_t n; n 63 core/ngx_file.c n = (uint32_t) ngx_next_temp_number(0); n 72 core/ngx_file.c "%010uD%Z", n); n 99 core/ngx_file.c n = (uint32_t) ngx_next_temp_number(1); n 121 core/ngx_file.c ngx_uint_t n; n 127 core/ngx_file.c for (n = 0; n < 3; n++) { n 128 core/ngx_file.c level = path->level[n]; n 227 core/ngx_file.c ngx_atomic_uint_t n, add; n 231 core/ngx_file.c n = ngx_atomic_fetch_add(ngx_temp_number, add); n 233 core/ngx_file.c return n + add; n 244 core/ngx_file.c ngx_uint_t i, n; n 276 core/ngx_file.c for (i = 0, n = 2; n < cf->args->nelts; i++, n++) { n 277 core/ngx_file.c level = ngx_atoi(value[n].data, value[n].len); n 409 core/ngx_file.c ngx_uint_t i, n; n 419 core/ngx_file.c for (n = 0; n < 3; n++) { n 420 core/ngx_file.c if (p[i]->level[n] != path->level[n]) { n 448 core/ngx_file.c if (p[i]->level[n] == 0) { n 675 core/ngx_file.c ssize_t n; n 732 core/ngx_file.c n = ngx_read_fd(fd, buf, len); n 734 core/ngx_file.c if (n == NGX_FILE_ERROR) { n 740 core/ngx_file.c if ((size_t) n != len) { n 743 core/ngx_file.c n, size, from); n 747 core/ngx_file.c n = ngx_write_fd(nfd, buf, len); n 749 core/ngx_file.c if (n == NGX_FILE_ERROR) { n 755 core/ngx_file.c if ((size_t) n != len) { n 758 core/ngx_file.c n, size, to); n 762 core/ngx_file.c size -= n; n 55 core/ngx_hash.c ngx_uint_t i, n, key; n 61 core/ngx_hash.c n = len; n 63 core/ngx_hash.c while (n) { n 64 core/ngx_hash.c if (name[n - 1] == '.') { n 68 core/ngx_hash.c n--; n 73 core/ngx_hash.c for (i = n; i < len; i++) { n 81 core/ngx_hash.c value = ngx_hash_find(&hwc->hash, key, &name[n], len - n); n 102 core/ngx_hash.c if (n == 0) { n 117 core/ngx_hash.c value = ngx_hash_find_wc_head(hwc, name, n - 1); n 128 core/ngx_hash.c if (n == 0) { n 256 core/ngx_hash.c ngx_uint_t i, n, key, size, start, bucket_size; n 259 core/ngx_hash.c for (n = 0; n < nelts; n++) { n 260 core/ngx_hash.c if (hinit->bucket_size < NGX_HASH_ELT_SIZE(&names[n]) + sizeof(void *)) n 288 core/ngx_hash.c for (n = 0; n < nelts; n++) { n 289 core/ngx_hash.c if (names[n].key.data == NULL) { n 293 core/ngx_hash.c key = names[n].key_hash % size; n 294 core/ngx_hash.c test[key] = (u_short) (test[key] + NGX_HASH_ELT_SIZE(&names[n])); n 299 core/ngx_hash.c size, key, test[key], &names[n].key); n 330 core/ngx_hash.c for (n = 0; n < nelts; n++) { n 331 core/ngx_hash.c if (names[n].key.data == NULL) { n 335 core/ngx_hash.c key = names[n].key_hash % size; n 336 core/ngx_hash.c test[key] = (u_short) (test[key] + NGX_HASH_ELT_SIZE(&names[n])); n 392 core/ngx_hash.c for (n = 0; n < nelts; n++) { n 393 core/ngx_hash.c if (names[n].key.data == NULL) { n 397 core/ngx_hash.c key = names[n].key_hash % size; n 400 core/ngx_hash.c elt->value = names[n].value; n 401 core/ngx_hash.c elt->len = (u_short) names[n].key.len; n 403 core/ngx_hash.c ngx_strlow(elt->name, names[n].key.data, names[n].key.len); n 405 core/ngx_hash.c test[key] = (u_short) (test[key] + NGX_HASH_ELT_SIZE(&names[n])); n 462 core/ngx_hash.c ngx_uint_t i, n, dot; n 482 core/ngx_hash.c for (n = 0; n < nelts; n = i) { n 486 core/ngx_hash.c "wc0: \"%V\"", &names[n].key); n 491 core/ngx_hash.c for (len = 0; len < names[n].key.len; len++) { n 492 core/ngx_hash.c if (names[n].key.data[len] == '.') { n 504 core/ngx_hash.c name->key.data = names[n].key.data; n 506 core/ngx_hash.c name->value = names[n].value; n 521 core/ngx_hash.c if (names[n].key.len != len) { n 527 core/ngx_hash.c next_name->key.len = names[n].key.len - len; n 528 core/ngx_hash.c next_name->key.data = names[n].key.data + len; n 530 core/ngx_hash.c next_name->value = names[n].value; n 538 core/ngx_hash.c for (i = n + 1; i < nelts; i++) { n 539 core/ngx_hash.c if (ngx_strncmp(names[n].key.data, names[i].key.data, len) != 0) { n 580 core/ngx_hash.c if (names[n].key.len == len) { n 581 core/ngx_hash.c wdc->value = names[n].value; n 633 core/ngx_hash.c ngx_hash_strlow(u_char *dst, u_char *src, size_t n) n 639 core/ngx_hash.c while (n--) { n 712 core/ngx_hash.c ngx_uint_t i, k, n, skip, last; n 725 core/ngx_hash.c n = 0; n 730 core/ngx_hash.c if (++n > 1) { n 759 core/ngx_hash.c if (n) { n 884 core/ngx_hash.c n = 0; n 888 core/ngx_hash.c ngx_memcpy(&p[n], &key->data[i + 1], len); n 889 core/ngx_hash.c n += len; n 890 core/ngx_hash.c p[n++] = '.'; n 899 core/ngx_hash.c ngx_memcpy(&p[n], &key->data[1], len); n 900 core/ngx_hash.c n += len; n 903 core/ngx_hash.c p[n] = '\0'; n 113 core/ngx_hash.h ngx_uint_t ngx_hash_strlow(u_char *dst, u_char *src, size_t n); n 21 core/ngx_inet.c ngx_uint_t octet, n; n 25 core/ngx_inet.c n = 0; n 39 core/ngx_inet.c n++; n 46 core/ngx_inet.c if (n != 3) { n 66 core/ngx_inet.c ngx_uint_t n, nibbles, word; n 77 core/ngx_inet.c n = 8; n 94 core/ngx_inet.c if (--n) { n 113 core/ngx_inet.c if (n < 2) { n 125 core/ngx_inet.c n--; n 155 core/ngx_inet.c if (--n) { n 157 core/ngx_inet.c n *= 2; n 159 core/ngx_inet.c d = s + n; n 163 core/ngx_inet.c ngx_memzero(zero, n); n 185 core/ngx_inet.c size_t n; n 215 core/ngx_inet.c n = 0; n 218 core/ngx_inet.c text[n++] = '['; n 221 core/ngx_inet.c n = ngx_inet6_ntop(sin6->sin6_addr.s6_addr, &text[n], len); n 224 core/ngx_inet.c n = ngx_sprintf(&text[1 + n], "]:%d", n 228 core/ngx_inet.c return n; n 282 core/ngx_inet.c size_t max, n; n 292 core/ngx_inet.c n = 0; n 298 core/ngx_inet.c if (max < n) { n 300 core/ngx_inet.c max = n; n 303 core/ngx_inet.c n = 0; n 307 core/ngx_inet.c if (n++ == 0) { n 312 core/ngx_inet.c if (max < n) { n 314 core/ngx_inet.c max = n; n 318 core/ngx_inet.c n = 16; n 326 core/ngx_inet.c n = 12; n 332 core/ngx_inet.c for (i = 0; i < n; i += 2) { n 347 core/ngx_inet.c if (n == 12) { n 617 core/ngx_inet.c ngx_int_t n; n 672 core/ngx_inet.c n = ngx_atoi(port, len); n 674 core/ngx_inet.c if (n < 1 || n > 65536) { n 679 core/ngx_inet.c u->port = (in_port_t) n; n 680 core/ngx_inet.c sin->sin_port = htons((in_port_t) n); n 694 core/ngx_inet.c n = ngx_atoi(host, last - host); n 696 core/ngx_inet.c if (n != NGX_ERROR) { n 698 core/ngx_inet.c if (n < 1 || n > 65536) { n 703 core/ngx_inet.c u->port = (in_port_t) n; n 704 core/ngx_inet.c sin->sin_port = htons((in_port_t) n); n 792 core/ngx_inet.c ngx_int_t n; n 836 core/ngx_inet.c n = ngx_atoi(port, len); n 838 core/ngx_inet.c if (n < 1 || n > 65536) { n 843 core/ngx_inet.c u->port = (in_port_t) n; n 844 core/ngx_inet.c sin6->sin6_port = htons((in_port_t) n); n 12 core/ngx_list.c ngx_list_create(ngx_pool_t *pool, ngx_uint_t n, size_t size) n 21 core/ngx_list.c list->part.elts = ngx_palloc(pool, n * size); n 30 core/ngx_list.c list->nalloc = n; n 33 core/ngx_list.h ngx_list_t *ngx_list_create(ngx_pool_t *pool, ngx_uint_t n, size_t size); n 36 core/ngx_list.h ngx_list_init(ngx_list_t *list, ngx_pool_t *pool, ngx_uint_t n, size_t size) n 38 core/ngx_list.h list->part.elts = ngx_palloc(pool, n * size); n 47 core/ngx_list.h list->nalloc = n; n 372 core/ngx_log.c ngx_uint_t i, n, d; n 379 core/ngx_log.c for (n = 1; n <= NGX_LOG_DEBUG; n++) { n 380 core/ngx_log.c if (ngx_strcmp(value[i].data, err_levels[n].data) == 0) { n 389 core/ngx_log.c log->log_level = n; n 394 core/ngx_log.c for (n = 0, d = NGX_LOG_DEBUG_FIRST; d <= NGX_LOG_DEBUG_LAST; d <<= 1) { n 395 core/ngx_log.c if (ngx_strcmp(value[i].data, debug_levels[n++]) == 0) { n 33 core/ngx_open_file_cache.c ngx_uint_t n, ngx_log_t *log); n 723 core/ngx_open_file_cache.c ngx_expire_old_cached_files(ngx_open_file_cache_t *cache, ngx_uint_t n, n 738 core/ngx_open_file_cache.c while (n < 3) { n 748 core/ngx_open_file_cache.c if (n++ != 0 && now - file->accessed <= cache->inactive) { n 460 core/ngx_output_chain.c ssize_t n; n 526 core/ngx_output_chain.c n = ngx_file_aio_read(src->file, dst->pos, (size_t) size, n 528 core/ngx_output_chain.c if (n == NGX_AGAIN) { n 534 core/ngx_output_chain.c n = ngx_read_file(src->file, dst->pos, (size_t) size, n 539 core/ngx_output_chain.c n = ngx_read_file(src->file, dst->pos, (size_t) size, src->file_pos); n 563 core/ngx_output_chain.c if (n == NGX_ERROR) { n 564 core/ngx_output_chain.c return (ngx_int_t) n; n 567 core/ngx_output_chain.c if (n != size) { n 570 core/ngx_output_chain.c n, size, src->file->name.data); n 574 core/ngx_output_chain.c dst->last += n; n 580 core/ngx_output_chain.c dst->file_last = src->file_pos + n; n 586 core/ngx_output_chain.c src->file_pos += n; n 46 core/ngx_palloc.c ngx_pool_t *p, *n; n 74 core/ngx_palloc.c for (p = pool, n = pool->d.next; /* void */; p = n, n = n->d.next) { n 78 core/ngx_palloc.c if (n == NULL) { n 85 core/ngx_palloc.c for (p = pool, n = pool->d.next; /* void */; p = n, n = n->d.next) { n 88 core/ngx_palloc.c if (n == NULL) { n 219 core/ngx_palloc.c ngx_uint_t n; n 227 core/ngx_palloc.c n = 0; n 235 core/ngx_palloc.c if (n++ > 3) { n 86 core/ngx_queue.h #define ngx_queue_split(h, q, n) \ n 87 core/ngx_queue.h (n)->prev = (h)->prev; \ n 88 core/ngx_queue.h (n)->prev->next = n; \ n 89 core/ngx_queue.h (n)->next = q; \ n 92 core/ngx_queue.h (q)->prev = n; n 95 core/ngx_queue.h #define ngx_queue_add(h, n) \ n 96 core/ngx_queue.h (h)->prev->next = (n)->next; \ n 97 core/ngx_queue.h (n)->next->prev = (h)->prev; \ n 98 core/ngx_queue.h (h)->prev = (n)->prev; \ n 65 core/ngx_regex.c int n, erroff; n 97 core/ngx_regex.c n = pcre_fullinfo(re, NULL, PCRE_INFO_CAPTURECOUNT, &rc->captures); n 98 core/ngx_regex.c if (n < 0) { n 107 core/ngx_regex.c n = pcre_fullinfo(re, NULL, PCRE_INFO_NAMECOUNT, &rc->named_captures); n 108 core/ngx_regex.c if (n < 0) { n 117 core/ngx_regex.c n = pcre_fullinfo(re, NULL, PCRE_INFO_NAMEENTRYSIZE, &rc->name_size); n 118 core/ngx_regex.c if (n < 0) { n 123 core/ngx_regex.c n = pcre_fullinfo(re, NULL, PCRE_INFO_NAMETABLE, &rc->names); n 124 core/ngx_regex.c if (n < 0) { n 133 core/ngx_regex.c rc->err.len = ngx_snprintf(rc->err.data, rc->err.len, p, &rc->pattern, n) n 142 core/ngx_regex.c int rc, n; n 144 core/ngx_regex.c n = 0; n 146 core/ngx_regex.c rc = pcre_fullinfo(re, NULL, PCRE_INFO_CAPTURECOUNT, &n); n 152 core/ngx_regex.c return (ngx_int_t) n; n 159 core/ngx_regex.c ngx_int_t n; n 167 core/ngx_regex.c n = ngx_regex_exec(re[i].regex, s, NULL, 0); n 169 core/ngx_regex.c if (n == NGX_REGEX_NO_MATCHED) { n 173 core/ngx_regex.c if (n < 0) { n 176 core/ngx_regex.c n, s, re[i].name); n 70 core/ngx_resolver.c size_t n); n 71 core/ngx_resolver.c static void ngx_resolver_process_a(ngx_resolver_t *r, u_char *buf, size_t n, n 73 core/ngx_resolver.c static void ngx_resolver_process_ptr(ngx_resolver_t *r, u_char *buf, size_t n, n 826 core/ngx_resolver.c ssize_t n; n 841 core/ngx_resolver.c n = ngx_send(uc->connection, rn->query, rn->qlen); n 843 core/ngx_resolver.c if (n == -1) { n 847 core/ngx_resolver.c if ((size_t) n != (size_t) rn->qlen) { n 945 core/ngx_resolver.c ssize_t n; n 952 core/ngx_resolver.c n = ngx_udp_recv(c, buf, NGX_RESOLVER_UDP_SIZE); n 954 core/ngx_resolver.c if (n < 0) { n 958 core/ngx_resolver.c ngx_resolver_process_response(c->data, buf, n); n 965 core/ngx_resolver.c ngx_resolver_process_response(ngx_resolver_t *r, u_char *buf, size_t n) n 976 core/ngx_resolver.c if ((size_t) n < sizeof(ngx_resolver_query_t)) { n 1035 core/ngx_resolver.c while (i < (ngx_uint_t) n) { n 1054 core/ngx_resolver.c > (ngx_uint_t) n) n 1077 core/ngx_resolver.c ngx_resolver_process_a(r, buf, n, ident, code, nan, n 1084 core/ngx_resolver.c ngx_resolver_process_ptr(r, buf, n, ident, code, nan); n 1125 core/ngx_resolver.c ngx_uint_t qtype, qident, naddrs, a, i, n, start; n 1275 core/ngx_resolver.c n = 0; n 1306 core/ngx_resolver.c addrs[n++] = htonl((buf[i] << 24) + (buf[i + 1] << 16) n 1309 core/ngx_resolver.c if (n == naddrs) { n 1417 core/ngx_resolver.c ngx_resolver_process_ptr(ngx_resolver_t *r, u_char *buf, size_t n, n 1430 core/ngx_resolver.c if (ngx_resolver_copy(r, NULL, buf, &buf[12], &buf[n]) != NGX_OK) { n 1504 core/ngx_resolver.c if (i + 2 + sizeof(ngx_resolver_an_t) > (ngx_uint_t) n) { n 1526 core/ngx_resolver.c if (i + len > (ngx_uint_t) n) { n 1530 core/ngx_resolver.c if (ngx_resolver_copy(r, &name, buf, &buf[i], &buf[n]) != NGX_OK) { n 1807 core/ngx_resolver.c ngx_int_t n; n 1839 core/ngx_resolver.c for (n = 0; n < 32; n += 8) { n 1840 core/ngx_resolver.c d = ngx_sprintf(&p[1], "%ud", (ctx->addr >> n) & 0xff); n 1863 core/ngx_resolver.c ngx_uint_t i, n; n 1874 core/ngx_resolver.c n = *p++; n 1876 core/ngx_resolver.c if (n == 0) { n 1880 core/ngx_resolver.c if (n & 0xc0) { n 1881 core/ngx_resolver.c n = ((n & 0x3f) << 8) + *p; n 1882 core/ngx_resolver.c p = &buf[n]; n 1885 core/ngx_resolver.c len += 1 + n; n 1886 core/ngx_resolver.c p = &p[n]; n 1922 core/ngx_resolver.c n = *src++; n 1925 core/ngx_resolver.c if (n != 0xc0) { n 1926 core/ngx_resolver.c ngx_memcpy(dst, src, n); n 1927 core/ngx_resolver.c dst += n; n 1928 core/ngx_resolver.c src += n; n 1930 core/ngx_resolver.c n = *src++; n 1932 core/ngx_resolver.c if (n != 0) { n 1937 core/ngx_resolver.c n = ((n & 0x3f) << 8) + *src; n 1938 core/ngx_resolver.c src = &buf[n]; n 1940 core/ngx_resolver.c n = *src++; n 1943 core/ngx_resolver.c if (n == 0) { n 81 core/ngx_slab.c ngx_uint_t i, n, pages; n 88 core/ngx_slab.c for (n = ngx_slab_exact_size; n >>= 1; ngx_slab_exact_shift++) { n 102 core/ngx_slab.c n = ngx_pagesize_shift - pool->min_shift; n 104 core/ngx_slab.c for (i = 0; i < n; i++) { n 110 core/ngx_slab.c p += n * sizeof(ngx_slab_page_t); n 159 core/ngx_slab.c uintptr_t p, n, m, mask, *bitmap; n 209 core/ngx_slab.c for (n = 0; n < map; n++) { n 211 core/ngx_slab.c if (bitmap[n] != NGX_SLAB_BUSY) { n 214 core/ngx_slab.c if ((bitmap[n] & m)) { n 218 core/ngx_slab.c bitmap[n] |= m; n 220 core/ngx_slab.c i = ((n * sizeof(uintptr_t) * 8) << shift) n 223 core/ngx_slab.c if (bitmap[n] == NGX_SLAB_BUSY) { n 224 core/ngx_slab.c for (n = n + 1; n < map; n++) { n 225 core/ngx_slab.c if (bitmap[n] != NGX_SLAB_BUSY) { n 288 core/ngx_slab.c n = ngx_pagesize_shift - (page->slab & NGX_SLAB_SHIFT_MASK); n 289 core/ngx_slab.c n = 1 << n; n 290 core/ngx_slab.c n = ((uintptr_t) 1 << n) - 1; n 291 core/ngx_slab.c mask = n << NGX_SLAB_MAP_SHIFT; n 338 core/ngx_slab.c n = (1 << (ngx_pagesize_shift - shift)) / 8 / s; n 340 core/ngx_slab.c if (n == 0) { n 341 core/ngx_slab.c n = 1; n 344 core/ngx_slab.c bitmap[0] = (2 << n) - 1; n 358 core/ngx_slab.c p = ((page - pool->pages) << ngx_pagesize_shift) + s * n; n 417 core/ngx_slab.c ngx_uint_t n, type, slot, shift, map; n 427 core/ngx_slab.c n = ((u_char *) p - pool->start) >> ngx_pagesize_shift; n 428 core/ngx_slab.c page = &pool->pages[n]; n 443 core/ngx_slab.c n = ((uintptr_t) p & (ngx_pagesize - 1)) >> shift; n 444 core/ngx_slab.c m = (uintptr_t) 1 << (n & (sizeof(uintptr_t) * 8 - 1)); n 445 core/ngx_slab.c n /= (sizeof(uintptr_t) * 8); n 448 core/ngx_slab.c if (bitmap[n] & m) { n 462 core/ngx_slab.c bitmap[n] &= ~m; n 464 core/ngx_slab.c n = (1 << (ngx_pagesize_shift - shift)) / 8 / (1 << shift); n 466 core/ngx_slab.c if (n == 0) { n 467 core/ngx_slab.c n = 1; n 470 core/ngx_slab.c if (bitmap[0] & ~(((uintptr_t) 1 << n) - 1)) { n 476 core/ngx_slab.c for (n = 1; n < map; n++) { n 477 core/ngx_slab.c if (bitmap[n]) { n 582 core/ngx_slab.c n = ((u_char *) p - pool->start) >> ngx_pagesize_shift; n 585 core/ngx_slab.c ngx_slab_free_pages(pool, &pool->pages[n], size); n 17 core/ngx_spinlock.c ngx_uint_t i, n; n 27 core/ngx_spinlock.c for (n = 1; n < spin; n <<= 1) { n 29 core/ngx_spinlock.c for (i = 0; i < n; i++) { n 18 core/ngx_string.c ngx_strlow(u_char *dst, u_char *src, size_t n) n 20 core/ngx_string.c while (n) { n 24 core/ngx_string.c n--; n 30 core/ngx_string.c ngx_cpystrn(u_char *dst, u_char *src, size_t n) n 32 core/ngx_string.c if (n == 0) { n 36 core/ngx_string.c while (--n) { n 153 core/ngx_string.c ngx_uint_t width, sign, hex, max_width, frac_width, n; n 378 core/ngx_string.c for (n = frac_width; n; n--) { n 587 core/ngx_string.c ngx_strncasecmp(u_char *s1, u_char *s2, size_t n) n 591 core/ngx_string.c while (n) { n 601 core/ngx_string.c n--; n 619 core/ngx_string.c size_t n; n 623 core/ngx_string.c n = ngx_strlen(s2); n 639 core/ngx_string.c if (n > len) { n 643 core/ngx_string.c } while (ngx_strncmp(s1, (u_char *) s2, n) != 0); n 656 core/ngx_string.c ngx_strstrn(u_char *s1, char *s2, size_t n) n 672 core/ngx_string.c } while (ngx_strncmp(s1, (u_char *) s2, n) != 0); n 679 core/ngx_string.c ngx_strcasestrn(u_char *s1, char *s2, size_t n) n 698 core/ngx_string.c } while (ngx_strncasecmp(s1, (u_char *) s2, n) != 0); n 711 core/ngx_string.c ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n) n 717 core/ngx_string.c last -= n; n 731 core/ngx_string.c } while (ngx_strncasecmp(s1, s2, n) != 0); n 738 core/ngx_string.c ngx_rstrncmp(u_char *s1, u_char *s2, size_t n) n 740 core/ngx_string.c if (n == 0) { n 744 core/ngx_string.c n--; n 747 core/ngx_string.c if (s1[n] != s2[n]) { n 748 core/ngx_string.c return s1[n] - s2[n]; n 751 core/ngx_string.c if (n == 0) { n 755 core/ngx_string.c n--; n 761 core/ngx_string.c ngx_rstrncasecmp(u_char *s1, u_char *s2, size_t n) n 765 core/ngx_string.c if (n == 0) { n 769 core/ngx_string.c n--; n 772 core/ngx_string.c c1 = s1[n]; n 777 core/ngx_string.c c2 = s2[n]; n 786 core/ngx_string.c if (n == 0) { n 790 core/ngx_string.c n--; n 798 core/ngx_string.c size_t n; n 802 core/ngx_string.c n = n1; n 806 core/ngx_string.c n = n2; n 810 core/ngx_string.c m = ngx_memcmp(s1, s2, n); n 852 core/ngx_string.c ngx_atoi(u_char *line, size_t n) n 856 core/ngx_string.c if (n == 0) { n 860 core/ngx_string.c for (value = 0; n--; line++) { n 880 core/ngx_string.c ngx_atofp(u_char *line, size_t n, size_t point) n 885 core/ngx_string.c if (n == 0) { n 891 core/ngx_string.c for (value = 0; n--; line++) { n 928 core/ngx_string.c ngx_atosz(u_char *line, size_t n) n 932 core/ngx_string.c if (n == 0) { n 936 core/ngx_string.c for (value = 0; n--; line++) { n 954 core/ngx_string.c ngx_atoof(u_char *line, size_t n) n 958 core/ngx_string.c if (n == 0) { n 962 core/ngx_string.c for (value = 0; n--; line++) { n 980 core/ngx_string.c ngx_atotm(u_char *line, size_t n) n 984 core/ngx_string.c if (n == 0) { n 988 core/ngx_string.c for (value = 0; n--; line++) { n 1006 core/ngx_string.c ngx_hextoi(u_char *line, size_t n) n 1011 core/ngx_string.c if (n == 0) { n 1015 core/ngx_string.c for (value = 0; n--; line++) { n 1207 core/ngx_string.c ngx_utf8_decode(u_char **p, size_t n) n 1237 core/ngx_string.c if (n - 1 < len) { n 1264 core/ngx_string.c ngx_utf8_length(u_char *p, size_t n) n 1269 core/ngx_string.c last = p + n; n 1280 core/ngx_string.c if (ngx_utf8_decode(&p, n) > 0x10ffff) { n 1282 core/ngx_string.c return n; n 1291 core/ngx_string.c ngx_utf8_cpystrn(u_char *dst, u_char *src, size_t n, size_t len) n 1295 core/ngx_string.c if (n == 0) { n 1299 core/ngx_string.c while (--n) { n 1339 core/ngx_string.c ngx_uint_t n; n 1455 core/ngx_string.c n = 0; n 1459 core/ngx_string.c n++; n 1465 core/ngx_string.c return (uintptr_t) n; n 1682 core/ngx_string.c ngx_str_node_t *n, *t; n 1687 core/ngx_string.c n = (ngx_str_node_t *) node; n 1694 core/ngx_string.c } else if (n->str.len != t->str.len) { n 1696 core/ngx_string.c p = (n->str.len < t->str.len) ? &temp->left : &temp->right; n 1699 core/ngx_string.c p = (ngx_memcmp(n->str.data, t->str.data, n->str.len) < 0) n 1722 core/ngx_string.c ngx_str_node_t *n; n 1730 core/ngx_string.c n = (ngx_str_node_t *) node; n 1737 core/ngx_string.c if (val->len != n->str.len) { n 1738 core/ngx_string.c node = (val->len < n->str.len) ? node->left : node->right; n 1742 core/ngx_string.c rc = ngx_memcmp(val->data, n->str.data, val->len); n 1754 core/ngx_string.c return n; n 1764 core/ngx_string.c ngx_sort(void *base, size_t n, size_t size, n 1775 core/ngx_string.c p1 < (u_char *) base + n * size; n 1797 core/ngx_string.c ngx_memcpy(void *dst, void *src, size_t n) n 1799 core/ngx_string.c if (n > NGX_MEMCPY_LIMIT) { n 1800 core/ngx_string.c ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, "memcpy %uz bytes", n); n 1804 core/ngx_string.c return memcpy(dst, src, n); n 49 core/ngx_string.h void ngx_strlow(u_char *dst, u_char *src, size_t n); n 52 core/ngx_string.h #define ngx_strncmp(s1, s2, n) strncmp((const char *) s1, (const char *) s2, n) n 85 core/ngx_string.h #define ngx_memzero(buf, n) (void) memset(buf, 0, n) n 86 core/ngx_string.h #define ngx_memset(buf, c, n) (void) memset(buf, c, n) n 91 core/ngx_string.h void *ngx_memcpy(void *dst, void *src, size_t n); n 92 core/ngx_string.h #define ngx_cpymem(dst, src, n) (((u_char *) ngx_memcpy(dst, src, n)) + (n)) n 101 core/ngx_string.h #define ngx_memcpy(dst, src, n) (void) memcpy(dst, src, n) n 102 core/ngx_string.h #define ngx_cpymem(dst, src, n) (((u_char *) memcpy(dst, src, n)) + (n)) n 138 core/ngx_string.h #define ngx_memmove(dst, src, n) (void) memmove(dst, src, n) n 139 core/ngx_string.h #define ngx_movemem(dst, src, n) (((u_char *) memmove(dst, src, n)) + (n)) n 143 core/ngx_string.h #define ngx_memcmp(s1, s2, n) memcmp((const char *) s1, (const char *) s2, n) n 146 core/ngx_string.h u_char *ngx_cpystrn(u_char *dst, u_char *src, size_t n); n 157 core/ngx_string.h ngx_int_t ngx_strncasecmp(u_char *s1, u_char *s2, size_t n); n 159 core/ngx_string.h u_char *ngx_strnstr(u_char *s1, char *s2, size_t n); n 161 core/ngx_string.h u_char *ngx_strstrn(u_char *s1, char *s2, size_t n); n 162 core/ngx_string.h u_char *ngx_strcasestrn(u_char *s1, char *s2, size_t n); n 163 core/ngx_string.h u_char *ngx_strlcasestrn(u_char *s1, u_char *last, u_char *s2, size_t n); n 165 core/ngx_string.h ngx_int_t ngx_rstrncmp(u_char *s1, u_char *s2, size_t n); n 166 core/ngx_string.h ngx_int_t ngx_rstrncasecmp(u_char *s1, u_char *s2, size_t n); n 170 core/ngx_string.h ngx_int_t ngx_atoi(u_char *line, size_t n); n 171 core/ngx_string.h ngx_int_t ngx_atofp(u_char *line, size_t n, size_t point); n 172 core/ngx_string.h ssize_t ngx_atosz(u_char *line, size_t n); n 173 core/ngx_string.h off_t ngx_atoof(u_char *line, size_t n); n 174 core/ngx_string.h time_t ngx_atotm(u_char *line, size_t n); n 175 core/ngx_string.h ngx_int_t ngx_hextoi(u_char *line, size_t n); n 187 core/ngx_string.h uint32_t ngx_utf8_decode(u_char **p, size_t n); n 188 core/ngx_string.h size_t ngx_utf8_length(u_char *p, size_t n); n 189 core/ngx_string.h u_char *ngx_utf8_cpystrn(u_char *dst, u_char *src, size_t n, size_t len); n 220 core/ngx_string.h void ngx_sort(void *base, size_t n, size_t size, n 225 core/ngx_string.h #define ngx_value_helper(n) #n n 226 core/ngx_string.h #define ngx_value(n) ngx_value_helper(n) n 281 core/ngx_times.c ngx_uint_t n, sec, min, hour, mday, mon, year, wday, days, leap; n 285 core/ngx_times.c n = (ngx_uint_t) t; n 287 core/ngx_times.c days = n / 86400; n 293 core/ngx_times.c n %= 86400; n 294 core/ngx_times.c hour = n / 3600; n 295 core/ngx_times.c n %= 3600; n 296 core/ngx_times.c min = n / 60; n 297 core/ngx_times.c sec = n % 60; n 117 event/modules/ngx_devpoll_module.c size_t n; n 134 event/modules/ngx_devpoll_module.c n = nchanges * sizeof(struct pollfd); n 135 event/modules/ngx_devpoll_module.c if (write(dp, change_list, n) != (ssize_t) n) { n 290 event/modules/ngx_devpoll_module.c size_t n; n 302 event/modules/ngx_devpoll_module.c n = nchanges * sizeof(struct pollfd); n 303 event/modules/ngx_devpoll_module.c if (write(dp, change_list, n) != (ssize_t) n) { n 322 event/modules/ngx_devpoll_module.c n = nchanges * sizeof(struct pollfd); n 323 event/modules/ngx_devpoll_module.c if (write(dp, change_list, n) != (ssize_t) n) { n 341 event/modules/ngx_devpoll_module.c size_t n; n 357 event/modules/ngx_devpoll_module.c n = nchanges * sizeof(struct pollfd); n 358 event/modules/ngx_devpoll_module.c if (write(dp, change_list, n) != (ssize_t) n) { n 229 event/modules/ngx_epoll_module.c int n; n 240 event/modules/ngx_epoll_module.c n = 1; n 242 event/modules/ngx_epoll_module.c if (ioctl(ngx_eventfd, FIONBIO, &n) == -1) { n 250 event/modules/ngx_epoll_module.c n = io_setup(1024, &ngx_aio_ctx); n 252 event/modules/ngx_epoll_module.c if (n != 0) { n 253 event/modules/ngx_epoll_module.c ngx_log_error(NGX_LOG_EMERG, cycle->log, -n, "io_setup() failed"); n 677 event/modules/ngx_epoll_module.c int n; n 688 event/modules/ngx_epoll_module.c n = read(ngx_eventfd, &ready, 8); n 692 event/modules/ngx_epoll_module.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, ev->log, 0, "eventfd: %d", n); n 694 event/modules/ngx_epoll_module.c if (n != 8) { n 695 event/modules/ngx_epoll_module.c if (n == -1) { n 705 event/modules/ngx_epoll_module.c "read(eventfd) returned only %d bytes", n); n 380 event/modules/ngx_eventport_module.c int n, revents; n 403 event/modules/ngx_eventport_module.c n = port_getn(ep, event_list, (u_int) nevents, &events, tp); n 411 event/modules/ngx_eventport_module.c if (n == -1) { n 493 event/modules/ngx_kqueue_module.c int events, n; n 505 event/modules/ngx_kqueue_module.c n = 0; n 508 event/modules/ngx_kqueue_module.c n = (int) nchanges; n 534 event/modules/ngx_kqueue_module.c "kevent timer: %M, changes: %d", timer, n); n 536 event/modules/ngx_kqueue_module.c events = kevent(ngx_kqueue, change_list, n, event_list, (int) nevents, tp); n 695 event/modules/ngx_kqueue_module.c int n; n 718 event/modules/ngx_kqueue_module.c n = (int) nchanges; n 727 event/modules/ngx_kqueue_module.c "kevent changes: %d", n); n 729 event/modules/ngx_kqueue_module.c if (kevent(ngx_kqueue, changes, n, NULL, 0, &ts) == -1) { n 469 event/modules/ngx_rtsig_module.c ngx_uint_t tested, n, i; n 483 event/modules/ngx_rtsig_module.c n = 0; n 484 event/modules/ngx_rtsig_module.c while (n < rtscf->overflow_events) { n 510 event/modules/ngx_rtsig_module.c overflow_list[n].fd = c->fd; n 511 event/modules/ngx_rtsig_module.c overflow_list[n].events = events; n 512 event/modules/ngx_rtsig_module.c overflow_list[n].revents = 0; n 513 event/modules/ngx_rtsig_module.c n++; n 516 event/modules/ngx_rtsig_module.c if (n == 0) { n 521 event/modules/ngx_rtsig_module.c ready = poll(overflow_list, n, 0); n 546 event/modules/ngx_rtsig_module.c for (i = 0; i < n; i++) { n 358 event/modules/ngx_select_module.c int n; n 371 event/modules/ngx_select_module.c if (getsockopt(s, SOL_SOCKET, SO_TYPE, &n, &len) == -1) { n 389 event/modules/ngx_select_module.c if (getsockopt(s, SOL_SOCKET, SO_TYPE, &n, &len) == -1) { n 349 event/modules/ngx_win32_select_module.c int n; n 360 event/modules/ngx_win32_select_module.c if (getsockopt(s, SOL_SOCKET, SO_TYPE, (char *) &n, &len) == -1) { n 375 event/modules/ngx_win32_select_module.c if (getsockopt(s, SOL_SOCKET, SO_TYPE, (char *) &n, &len) == -1) { n 551 event/ngx_event.h ngx_int_t ngx_event_post_acceptex(ngx_listening_t *ls, ngx_uint_t n); n 21 event/ngx_event_openssl.c static ngx_int_t ngx_ssl_handle_recv(ngx_connection_t *c, int n); n 37 event/ngx_event_openssl.c ngx_slab_pool_t *shpool, ngx_uint_t n); n 541 event/ngx_event_openssl.c int n, sslerr; n 546 event/ngx_event_openssl.c n = SSL_do_handshake(c->ssl->connection); n 548 event/ngx_event_openssl.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL_do_handshake: %d", n); n 550 event/ngx_event_openssl.c if (n == 1) { n 622 event/ngx_event_openssl.c sslerr = SSL_get_error(c->ssl->connection, n); n 698 event/ngx_event_openssl.c ssize_t n, bytes; n 708 event/ngx_event_openssl.c n = ngx_ssl_recv(c, last, b->end - last); n 710 event/ngx_event_openssl.c if (n > 0) { n 711 event/ngx_event_openssl.c last += n; n 712 event/ngx_event_openssl.c bytes += n; n 730 event/ngx_event_openssl.c if (n == 0 || n == NGX_ERROR) { n 737 event/ngx_event_openssl.c return n; n 745 event/ngx_event_openssl.c int n, bytes; n 769 event/ngx_event_openssl.c n = SSL_read(c->ssl->connection, buf, size); n 771 event/ngx_event_openssl.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL_read: %d", n); n 773 event/ngx_event_openssl.c if (n > 0) { n 774 event/ngx_event_openssl.c bytes += n; n 777 event/ngx_event_openssl.c c->ssl->last = ngx_ssl_handle_recv(c, n); n 781 event/ngx_event_openssl.c size -= n; n 787 event/ngx_event_openssl.c buf += n; n 816 event/ngx_event_openssl.c ngx_ssl_handle_recv(ngx_connection_t *c, int n) n 836 event/ngx_event_openssl.c if (n > 0) { n 854 event/ngx_event_openssl.c sslerr = SSL_get_error(c->ssl->connection, n); n 925 event/ngx_event_openssl.c int n; n 938 event/ngx_event_openssl.c n = ngx_ssl_write(c, in->buf->pos, in->buf->last - in->buf->pos); n 940 event/ngx_event_openssl.c if (n == NGX_ERROR) { n 944 event/ngx_event_openssl.c if (n == NGX_AGAIN) { n 949 event/ngx_event_openssl.c in->buf->pos += n; n 1034 event/ngx_event_openssl.c n = ngx_ssl_write(c, buf->pos, size); n 1036 event/ngx_event_openssl.c if (n == NGX_ERROR) { n 1040 event/ngx_event_openssl.c if (n == NGX_AGAIN) { n 1045 event/ngx_event_openssl.c buf->pos += n; n 1046 event/ngx_event_openssl.c c->sent += n; n 1048 event/ngx_event_openssl.c if (n < size) { n 1076 event/ngx_event_openssl.c int n, sslerr; n 1083 event/ngx_event_openssl.c n = SSL_write(c->ssl->connection, data, size); n 1085 event/ngx_event_openssl.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL_write: %d", n); n 1087 event/ngx_event_openssl.c if (n > 0) { n 1102 event/ngx_event_openssl.c return n; n 1105 event/ngx_event_openssl.c sslerr = SSL_get_error(c->ssl->connection, n); n 1175 event/ngx_event_openssl.c int n, sslerr, mode; n 1197 event/ngx_event_openssl.c n = SSL_shutdown(c->ssl->connection); n 1199 event/ngx_event_openssl.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL_shutdown: %d", n); n 1205 event/ngx_event_openssl.c if (n != 1 && ERR_peek_error()) { n 1206 event/ngx_event_openssl.c sslerr = SSL_get_error(c->ssl->connection, n); n 1212 event/ngx_event_openssl.c if (n == 1 || sslerr == 0 || sslerr == SSL_ERROR_ZERO_RETURN) { n 1276 event/ngx_event_openssl.c int n; n 1311 event/ngx_event_openssl.c n = ERR_GET_REASON(ERR_peek_error()); n 1314 event/ngx_event_openssl.c if (n == SSL_R_BLOCK_CIPHER_PAD_IS_WRONG /* 129 */ n 1315 event/ngx_event_openssl.c || n == SSL_R_DIGEST_CHECK_FAILED /* 149 */ n 1316 event/ngx_event_openssl.c || n == SSL_R_LENGTH_MISMATCH /* 159 */ n 1317 event/ngx_event_openssl.c || n == SSL_R_NO_CIPHERS_PASSED /* 182 */ n 1318 event/ngx_event_openssl.c || n == SSL_R_NO_CIPHERS_SPECIFIED /* 183 */ n 1319 event/ngx_event_openssl.c || n == SSL_R_NO_SHARED_CIPHER /* 193 */ n 1320 event/ngx_event_openssl.c || n == SSL_R_RECORD_LENGTH_MISMATCH /* 213 */ n 1321 event/ngx_event_openssl.c || n == SSL_R_UNEXPECTED_MESSAGE /* 244 */ n 1322 event/ngx_event_openssl.c || n == SSL_R_UNEXPECTED_RECORD /* 245 */ n 1323 event/ngx_event_openssl.c || n == SSL_R_UNKNOWN_ALERT_TYPE /* 246 */ n 1324 event/ngx_event_openssl.c || n == SSL_R_UNKNOWN_PROTOCOL /* 252 */ n 1325 event/ngx_event_openssl.c || n == SSL_R_WRONG_VERSION_NUMBER /* 267 */ n 1326 event/ngx_event_openssl.c || n == SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC /* 281 */ n 1327 event/ngx_event_openssl.c || n == 1000 /* SSL_R_SSLV3_ALERT_CLOSE_NOTIFY */ n 1328 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE /* 1010 */ n 1329 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_BAD_RECORD_MAC /* 1020 */ n 1330 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_DECRYPTION_FAILED /* 1021 */ n 1331 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_RECORD_OVERFLOW /* 1022 */ n 1332 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_DECOMPRESSION_FAILURE /* 1030 */ n 1333 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE /* 1040 */ n 1334 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_NO_CERTIFICATE /* 1041 */ n 1335 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_BAD_CERTIFICATE /* 1042 */ n 1336 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_UNSUPPORTED_CERTIFICATE /* 1043 */ n 1337 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_CERTIFICATE_REVOKED /* 1044 */ n 1338 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED /* 1045 */ n 1339 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN /* 1046 */ n 1340 event/ngx_event_openssl.c || n == SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER /* 1047 */ n 1341 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_UNKNOWN_CA /* 1048 */ n 1342 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_ACCESS_DENIED /* 1049 */ n 1343 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_DECODE_ERROR /* 1050 */ n 1344 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_DECRYPT_ERROR /* 1051 */ n 1345 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_EXPORT_RESTRICTION /* 1060 */ n 1346 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_PROTOCOL_VERSION /* 1070 */ n 1347 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_INSUFFICIENT_SECURITY /* 1071 */ n 1348 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_INTERNAL_ERROR /* 1080 */ n 1349 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_USER_CANCELLED /* 1090 */ n 1350 event/ngx_event_openssl.c || n == SSL_R_TLSV1_ALERT_NO_RENEGOTIATION) /* 1100 */ n 1387 event/ngx_event_openssl.c u_long n; n 1402 event/ngx_event_openssl.c n = ERR_get_error(); n 1404 event/ngx_event_openssl.c if (n == 0) { n 1414 event/ngx_event_openssl.c ERR_error_string_n(n, (char *) p, last - p); n 1875 event/ngx_event_openssl.c ngx_slab_pool_t *shpool, ngx_uint_t n) n 1883 event/ngx_event_openssl.c while (n < 3) { n 1893 event/ngx_event_openssl.c if (n++ != 0 && sess_id->expire > now) { n 101 event/ngx_event_pipe.c ssize_t n, size; n 129 event/ngx_event_pipe.c n = p->preread_size; n 132 event/ngx_event_pipe.c "pipe preread: %z", n); n 134 event/ngx_event_pipe.c if (n) { n 272 event/ngx_event_pipe.c n = p->upstream->recv_chain(p->upstream, chain); n 275 event/ngx_event_pipe.c "pipe recv chain: %z", n); n 282 event/ngx_event_pipe.c if (n == NGX_ERROR) { n 287 event/ngx_event_pipe.c if (n == NGX_AGAIN) { n 297 event/ngx_event_pipe.c if (n == 0) { n 303 event/ngx_event_pipe.c p->read_length += n; n 307 event/ngx_event_pipe.c while (cl && n > 0) { n 313 event/ngx_event_pipe.c if (n >= size) { n 322 event/ngx_event_pipe.c n -= size; n 328 event/ngx_event_pipe.c cl->buf->last += n; n 329 event/ngx_event_pipe.c n = 0; n 175 http/modules/ngx_http_access_module.c ngx_uint_t n; n 198 http/modules/ngx_http_access_module.c for (n = 0; n < 16; n++) { n 199 http/modules/ngx_http_access_module.c if ((p[n] & rule6[i].mask.s6_addr[n]) != rule6[i].addr.s6_addr[n]) { n 100 http/modules/ngx_http_auth_basic_module.c ssize_t n; n 182 http/modules/ngx_http_auth_basic_module.c n = ngx_read_file(&file, buf + left, NGX_HTTP_AUTH_BUF_SIZE - left, n 185 http/modules/ngx_http_auth_basic_module.c if (n == NGX_ERROR) { n 190 http/modules/ngx_http_auth_basic_module.c if (n == 0) { n 194 http/modules/ngx_http_auth_basic_module.c for (i = left; i < left + n; i++) { n 250 http/modules/ngx_http_auth_basic_module.c left = left + n - passwd; n 258 http/modules/ngx_http_auth_basic_module.c offset += n; n 451 http/modules/ngx_http_browser_module.c ngx_uint_t i, n; n 494 http/modules/ngx_http_browser_module.c n = browsers[i].skip; n 496 http/modules/ngx_http_browser_module.c browsers[i].skip = ngx_http_modern_browser_masks[n].skip; n 497 http/modules/ngx_http_browser_module.c browsers[i].add = ngx_http_modern_browser_masks[n].add; n 499 http/modules/ngx_http_browser_module.c ngx_http_modern_browser_masks[n].name, 12); n 544 http/modules/ngx_http_browser_module.c ngx_uint_t i, n, version, ver, scale; n 574 http/modules/ngx_http_browser_module.c for (n = 0; mask[n].browser[0] != '\0'; n++) { n 575 http/modules/ngx_http_browser_module.c if (ngx_strcasecmp(mask[n].browser, value[1].data) == 0) { n 593 http/modules/ngx_http_browser_module.c browser->skip = n; n 462 http/modules/ngx_http_charset_filter_module.c ngx_uint_t i, n; n 469 http/modules/ngx_http_charset_filter_module.c n = mcf->charsets.nelts; n 471 http/modules/ngx_http_charset_filter_module.c for (i = 0; i < n; i++) { n 685 http/modules/ngx_http_charset_filter_module.c uint32_t n; n 724 http/modules/ngx_http_charset_filter_module.c n = ngx_utf8_decode(&saved, size); n 726 http/modules/ngx_http_charset_filter_module.c if (n == 0xfffffffe) { n 792 http/modules/ngx_http_charset_filter_module.c n = ngx_utf8_decode(&saved, i); n 796 http/modules/ngx_http_charset_filter_module.c if (n < 0x10000) { n 798 http/modules/ngx_http_charset_filter_module.c p = table[n >> 8]; n 801 http/modules/ngx_http_charset_filter_module.c c = p[n & 0xff]; n 804 http/modules/ngx_http_charset_filter_module.c } else if (n == 0xfffffffe) { n 847 http/modules/ngx_http_charset_filter_module.c } else if (n == 0xfffffffe) { n 855 http/modules/ngx_http_charset_filter_module.c } else if (n > 0x10ffff) { n 862 http/modules/ngx_http_charset_filter_module.c dst = ngx_sprintf(dst, "&#%uD;", n); n 900 http/modules/ngx_http_charset_filter_module.c n = ngx_utf8_decode(&src, len); n 902 http/modules/ngx_http_charset_filter_module.c if (n < 0x10000) { n 904 http/modules/ngx_http_charset_filter_module.c p = table[n >> 8]; n 907 http/modules/ngx_http_charset_filter_module.c c = p[n & 0xff]; n 915 http/modules/ngx_http_charset_filter_module.c dst = ngx_sprintf(dst, "&#%uD;", n); n 920 http/modules/ngx_http_charset_filter_module.c if (n == 0xfffffffe) { n 934 http/modules/ngx_http_charset_filter_module.c if (n > 0x10ffff) { n 945 http/modules/ngx_http_charset_filter_module.c dst = ngx_sprintf(dst, "&#%uD;", n); n 1173 http/modules/ngx_http_charset_filter_module.c ngx_uint_t i, n; n 1289 http/modules/ngx_http_charset_filter_module.c n = ctx.charset->length; n 1292 http/modules/ngx_http_charset_filter_module.c if (((n * 10) / ctx.characters) % 10 > 4) { n 1305 http/modules/ngx_http_charset_filter_module.c uint32_t n; n 1352 http/modules/ngx_http_charset_filter_module.c n = ngx_utf8_decode(&p, i); n 1354 http/modules/ngx_http_charset_filter_module.c if (n > 0xffff) { n 1362 http/modules/ngx_http_charset_filter_module.c dst2src = pp[n >> 8]; n 1370 http/modules/ngx_http_charset_filter_module.c pp[n >> 8] = dst2src; n 1373 http/modules/ngx_http_charset_filter_module.c dst2src[n & 0xff] = (u_char) src; n 694 http/modules/ngx_http_fastcgi_module.c ngx_uint_t i, n, next, hash, header_params; n 772 http/modules/ngx_http_fastcgi_module.c for (n = 0; n < header[i].key.len; n++) { n 773 http/modules/ngx_http_fastcgi_module.c ch = header[i].key.data[n]; n 783 http/modules/ngx_http_fastcgi_module.c lowcase_key[n] = ch; n 786 http/modules/ngx_http_fastcgi_module.c if (ngx_hash_find(&flcf->headers_hash, hash, lowcase_key, n)) { n 791 http/modules/ngx_http_fastcgi_module.c n += sizeof("HTTP_") - 1; n 794 http/modules/ngx_http_fastcgi_module.c n = sizeof("HTTP_") - 1 + header[i].key.len; n 797 http/modules/ngx_http_fastcgi_module.c len += ((n > 127) ? 4 : 1) + ((header[i].value.len > 127) ? 4 : 1) n 798 http/modules/ngx_http_fastcgi_module.c + n + header[i].value.len; n 918 http/modules/ngx_http_fastcgi_module.c for (n = 0; n < header_params; n++) { n 919 http/modules/ngx_http_fastcgi_module.c if (&header[i] == ignored[n]) { n 948 http/modules/ngx_http_fastcgi_module.c for (n = 0; n < header[i].key.len; n++) { n 949 http/modules/ngx_http_fastcgi_module.c ch = header[i].key.data[n]; n 2538 http/modules/ngx_http_fastcgi_module.c ngx_int_t n; n 2561 http/modules/ngx_http_fastcgi_module.c n = ngx_regex_exec(flcf->split_regex, &r->uri, captures, (1 + 2) * 3); n 2563 http/modules/ngx_http_fastcgi_module.c if (n >= 0) { /* match */ n 2573 http/modules/ngx_http_fastcgi_module.c if (n == NGX_REGEX_NO_MATCHED) { n 2580 http/modules/ngx_http_fastcgi_module.c n, &r->uri, &flcf->split_name); n 2611 http/modules/ngx_http_fastcgi_module.c ngx_uint_t n; n 2631 http/modules/ngx_http_fastcgi_module.c n = ngx_http_script_variables_count(url); n 2633 http/modules/ngx_http_fastcgi_module.c if (n) { n 2641 http/modules/ngx_http_fastcgi_module.c sc.variables = n; n 184 http/modules/ngx_http_geo_module.c ngx_uint_t n; n 194 http/modules/ngx_http_geo_module.c n = addr & 0xffff; n 196 http/modules/ngx_http_geo_module.c if (n >= (ngx_uint_t) range->start && n <= (ngx_uint_t) range->end) n 217 http/modules/ngx_http_geo_module.c ngx_uint_t i, n; n 230 http/modules/ngx_http_geo_module.c n = ctx->proxies->nelts; n 232 http/modules/ngx_http_geo_module.c for (i = 0; i < n; i++) { n 632 http/modules/ngx_http_geo_module.c in_addr_t n; n 637 http/modules/ngx_http_geo_module.c for (n = start; n <= end; n = (n + 0x10000) & 0xffff0000) { n 639 http/modules/ngx_http_geo_module.c h = n >> 16; n 641 http/modules/ngx_http_geo_module.c if (n == start) { n 642 http/modules/ngx_http_geo_module.c s = n & 0xffff; n 647 http/modules/ngx_http_geo_module.c if ((n | 0xffff) > end) { n 827 http/modules/ngx_http_geo_module.c in_addr_t n; n 834 http/modules/ngx_http_geo_module.c for (n = start; n <= end; n += 0x10000) { n 836 http/modules/ngx_http_geo_module.c h = n >> 16; n 838 http/modules/ngx_http_geo_module.c if (n == start) { n 839 http/modules/ngx_http_geo_module.c s = n & 0xffff; n 844 http/modules/ngx_http_geo_module.c if ((n | 0xffff) > end) { n 1146 http/modules/ngx_http_geo_module.c ssize_t n; n 1218 http/modules/ngx_http_geo_module.c n = ngx_read_file(&file, base, size, 0); n 1220 http/modules/ngx_http_geo_module.c if (n == NGX_ERROR) { n 1226 http/modules/ngx_http_geo_module.c if ((size_t) n != size) { n 1229 http/modules/ngx_http_geo_module.c name->data, n, size); n 463 http/modules/ngx_http_headers_filter_module.c ngx_uint_t minus, n; n 491 http/modules/ngx_http_headers_filter_module.c n = 1; n 501 http/modules/ngx_http_headers_filter_module.c n = 2; n 504 http/modules/ngx_http_headers_filter_module.c if (value[n].data[0] == '@') { n 505 http/modules/ngx_http_headers_filter_module.c value[n].data++; n 506 http/modules/ngx_http_headers_filter_module.c value[n].len--; n 515 http/modules/ngx_http_headers_filter_module.c } else if (value[n].data[0] == '+') { n 516 http/modules/ngx_http_headers_filter_module.c value[n].data++; n 517 http/modules/ngx_http_headers_filter_module.c value[n].len--; n 520 http/modules/ngx_http_headers_filter_module.c } else if (value[n].data[0] == '-') { n 521 http/modules/ngx_http_headers_filter_module.c value[n].data++; n 522 http/modules/ngx_http_headers_filter_module.c value[n].len--; n 529 http/modules/ngx_http_headers_filter_module.c hcf->expires_time = ngx_parse_time(&value[n], 1); n 1117 http/modules/ngx_http_image_filter_module.c ngx_int_t n; n 1123 http/modules/ngx_http_image_filter_module.c n = ngx_atoi(value->data, value->len); n 1125 http/modules/ngx_http_image_filter_module.c if (n > 0) { n 1126 http/modules/ngx_http_image_filter_module.c return (ngx_uint_t) n; n 1200 http/modules/ngx_http_image_filter_module.c ngx_int_t n; n 1241 http/modules/ngx_http_image_filter_module.c n = ngx_http_image_filter_value(&value[i]); n 1243 http/modules/ngx_http_image_filter_module.c if (n != 90 && n != 180 && n != 270) { n 1247 http/modules/ngx_http_image_filter_module.c imcf->angle = (ngx_uint_t) n; n 1287 http/modules/ngx_http_image_filter_module.c n = ngx_http_image_filter_value(&value[i]); n 1289 http/modules/ngx_http_image_filter_module.c if (n == 0) { n 1293 http/modules/ngx_http_image_filter_module.c imcf->width = (ngx_uint_t) n; n 1315 http/modules/ngx_http_image_filter_module.c n = ngx_http_image_filter_value(&value[i]); n 1317 http/modules/ngx_http_image_filter_module.c if (n == 0) { n 1321 http/modules/ngx_http_image_filter_module.c imcf->height = (ngx_uint_t) n; n 1350 http/modules/ngx_http_image_filter_module.c ngx_int_t n; n 1367 http/modules/ngx_http_image_filter_module.c n = ngx_http_image_filter_value(&value[1]); n 1369 http/modules/ngx_http_image_filter_module.c if (n <= 0) { n 1375 http/modules/ngx_http_image_filter_module.c imcf->jpeg_quality = (ngx_uint_t) n; n 444 http/modules/ngx_http_index_module.c ngx_uint_t i, n; n 482 http/modules/ngx_http_index_module.c n = ngx_http_script_variables_count(&value[i]); n 484 http/modules/ngx_http_index_module.c if (n == 0) { n 505 http/modules/ngx_http_index_module.c sc.variables = n; n 56 http/modules/ngx_http_limit_req_module.c ngx_uint_t n); n 138 http/modules/ngx_http_limit_req_module.c size_t len, n; n 196 http/modules/ngx_http_limit_req_module.c n = offsetof(ngx_rbtree_node_t, color) n 200 http/modules/ngx_http_limit_req_module.c node = ngx_slab_alloc_locked(ctx->shpool, n); n 205 http/modules/ngx_http_limit_req_module.c node = ngx_slab_alloc_locked(ctx->shpool, n); n 424 http/modules/ngx_http_limit_req_module.c ngx_http_limit_req_expire(ngx_http_limit_req_ctx_t *ctx, ngx_uint_t n) n 444 http/modules/ngx_http_limit_req_module.c while (n < 3) { n 454 http/modules/ngx_http_limit_req_module.c if (n++ != 0) { n 122 http/modules/ngx_http_limit_zone_module.c size_t len, n; n 223 http/modules/ngx_http_limit_zone_module.c n = offsetof(ngx_rbtree_node_t, color) n 227 http/modules/ngx_http_limit_zone_module.c node = ngx_slab_alloc_locked(shpool, n); n 436 http/modules/ngx_http_limit_zone_module.c ssize_t n; n 464 http/modules/ngx_http_limit_zone_module.c n = ngx_parse_size(&value[3]); n 466 http/modules/ngx_http_limit_zone_module.c if (n == NGX_ERROR) { n 472 http/modules/ngx_http_limit_zone_module.c if (n < (ngx_int_t) (8 * ngx_pagesize)) { n 479 http/modules/ngx_http_limit_zone_module.c shm_zone = ngx_shared_memory_add(cf, &value[1], n, n 506 http/modules/ngx_http_limit_zone_module.c ngx_int_t n; n 521 http/modules/ngx_http_limit_zone_module.c n = ngx_atoi(value[2].data, value[2].len); n 522 http/modules/ngx_http_limit_zone_module.c if (n <= 0) { n 528 http/modules/ngx_http_limit_zone_module.c if (n > 65535) { n 534 http/modules/ngx_http_limit_zone_module.c lzcf->conn = n; n 319 http/modules/ngx_http_log_module.c ssize_t n; n 324 http/modules/ngx_http_log_module.c n = ngx_write_fd(log->file->fd, buf, len); n 328 http/modules/ngx_http_log_module.c n = ngx_http_log_script_write(r, log->script, &name, buf, len); n 331 http/modules/ngx_http_log_module.c if (n == (ssize_t) len) { n 337 http/modules/ngx_http_log_module.c if (n == -1) { n 357 http/modules/ngx_http_log_module.c name, n, len); n 369 http/modules/ngx_http_log_module.c ssize_t n; n 456 http/modules/ngx_http_log_module.c n = ngx_write_fd(of.fd, buf, len); n 458 http/modules/ngx_http_log_module.c return n; n 680 http/modules/ngx_http_log_module.c ngx_uint_t n; n 706 http/modules/ngx_http_log_module.c n = 0; n 710 http/modules/ngx_http_log_module.c n++; n 716 http/modules/ngx_http_log_module.c return (uintptr_t) n; n 857 http/modules/ngx_http_log_module.c ngx_uint_t i, n; n 893 http/modules/ngx_http_log_module.c n = ngx_http_script_variables_count(&value[1]); n 895 http/modules/ngx_http_log_module.c if (n == 0) { n 917 http/modules/ngx_http_log_module.c sc.variables = n; n 2350 http/modules/ngx_http_proxy_module.c ngx_uint_t n; n 2370 http/modules/ngx_http_proxy_module.c n = ngx_http_script_variables_count(url); n 2372 http/modules/ngx_http_proxy_module.c if (n) { n 2380 http/modules/ngx_http_proxy_module.c sc.variables = n; n 81 http/modules/ngx_http_random_index_module.c ngx_uint_t n, level; n 235 http/modules/ngx_http_random_index_module.c n = names.nelts; n 237 http/modules/ngx_http_random_index_module.c if (n == 0) { n 243 http/modules/ngx_http_random_index_module.c n = (ngx_uint_t) (((uint64_t) ngx_random() * n) / 0x80000000); n 245 http/modules/ngx_http_random_index_module.c uri.len = r->uri.len + name[n].len; n 253 http/modules/ngx_http_random_index_module.c ngx_memcpy(last, name[n].data, name[n].len); n 361 http/modules/ngx_http_referer_module.c ngx_uint_t i, n; n 416 http/modules/ngx_http_referer_module.c for (n = 0; n < cscf->server_names.nelts; n++) { n 419 http/modules/ngx_http_referer_module.c if (sn[n].regex) { n 421 http/modules/ngx_http_referer_module.c if (ngx_http_add_regex_referer(cf, rlcf, &sn[n].name, n 422 http/modules/ngx_http_referer_module.c sn[n].regex->regex) n 432 http/modules/ngx_http_referer_module.c if (ngx_http_add_referer(cf, rlcf->keys, &sn[n].name, &uri) n 955 http/modules/ngx_http_rewrite_module.c ngx_int_t n; n 960 http/modules/ngx_http_rewrite_module.c n = ngx_http_script_variables_count(value); n 962 http/modules/ngx_http_rewrite_module.c if (n == 0) { n 969 http/modules/ngx_http_rewrite_module.c n = ngx_atoi(value->data, value->len); n 971 http/modules/ngx_http_rewrite_module.c if (n == NGX_ERROR) { n 972 http/modules/ngx_http_rewrite_module.c n = 0; n 976 http/modules/ngx_http_rewrite_module.c val->value = (uintptr_t) n; n 998 http/modules/ngx_http_rewrite_module.c sc.variables = n; n 516 http/modules/ngx_http_scgi_module.c ngx_uint_t i, n, hash, header_params; n 596 http/modules/ngx_http_scgi_module.c for (n = 0; n < header[i].key.len; n++) { n 597 http/modules/ngx_http_scgi_module.c ch = header[i].key.data[n]; n 607 http/modules/ngx_http_scgi_module.c lowcase_key[n] = ch; n 610 http/modules/ngx_http_scgi_module.c if (ngx_hash_find(&scf->headers_hash, hash, lowcase_key, n)) { n 691 http/modules/ngx_http_scgi_module.c for (n = 0; n < header_params; n++) { n 692 http/modules/ngx_http_scgi_module.c if (&header[i] == ignored[n]) { n 700 http/modules/ngx_http_scgi_module.c for (n = 0; n < header[i].key.len; n++) { n 701 http/modules/ngx_http_scgi_module.c ch = header[i].key.data[n]; n 1486 http/modules/ngx_http_scgi_module.c ngx_uint_t n; n 1501 http/modules/ngx_http_scgi_module.c n = ngx_http_script_variables_count(url); n 1503 http/modules/ngx_http_scgi_module.c if (n) { n 1511 http/modules/ngx_http_scgi_module.c sc.variables = n; n 205 http/modules/ngx_http_secure_link_module.c ngx_int_t n; n 247 http/modules/ngx_http_secure_link_module.c n = ngx_hextoi(&start[2 * i], 2); n 248 http/modules/ngx_http_secure_link_module.c if (n == NGX_ERROR || n != hash[i]) { n 199 http/modules/ngx_http_split_clients_module.c ngx_int_t n; n 220 http/modules/ngx_http_split_clients_module.c n = ngx_atofp(value[0].data, value[0].len - 1, 2); n 221 http/modules/ngx_http_split_clients_module.c if (n == NGX_ERROR || n == 0) { n 225 http/modules/ngx_http_split_clients_module.c part->percent = (uint32_t) n; n 1578 http/modules/ngx_http_ssi_filter_module.c ngx_uint_t i, n, bracket, quoted; n 1582 http/modules/ngx_http_ssi_filter_module.c n = ngx_http_script_variables_count(text); n 1584 http/modules/ngx_http_ssi_filter_module.c if (n == 0) { n 522 http/modules/ngx_http_ssl_module.c ngx_int_t n; n 548 http/modules/ngx_http_ssl_module.c n = ngx_atoi(value[i].data + sizeof("builtin:") - 1, n 551 http/modules/ngx_http_ssl_module.c if (n == NGX_ERROR) { n 555 http/modules/ngx_http_ssl_module.c sscf->builtin_session_cache = n; n 585 http/modules/ngx_http_ssl_module.c n = ngx_parse_size(&size); n 587 http/modules/ngx_http_ssl_module.c if (n == NGX_ERROR) { n 591 http/modules/ngx_http_ssl_module.c if (n < (ngx_int_t) (8 * ngx_pagesize)) { n 599 http/modules/ngx_http_ssl_module.c sscf->shm_zone = ngx_shared_memory_add(cf, &name, n, n 143 http/modules/ngx_http_upstream_ip_hash_module.c ngx_uint_t i, n, p, hash; n 170 http/modules/ngx_http_upstream_ip_hash_module.c n = p / (8 * sizeof(uintptr_t)); n 173 http/modules/ngx_http_upstream_ip_hash_module.c if (!(iphp->rrp.tried[n] & m)) { n 194 http/modules/ngx_http_upstream_ip_hash_module.c iphp->rrp.tried[n] |= m; n 214 http/modules/ngx_http_upstream_ip_hash_module.c iphp->rrp.tried[n] |= m; n 288 http/modules/ngx_http_userid_filter_module.c ngx_int_t n; n 308 http/modules/ngx_http_userid_filter_module.c n = ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &conf->name, n 310 http/modules/ngx_http_userid_filter_module.c if (n == NGX_DECLINED) { n 321 http/modules/ngx_http_userid_filter_module.c &cookies[n]->value); n 342 http/modules/ngx_http_userid_filter_module.c &cookies[n]->value); n 547 http/modules/ngx_http_uwsgi_module.c ngx_uint_t i, n, hash, header_params; n 624 http/modules/ngx_http_uwsgi_module.c for (n = 0; n < header[i].key.len; n++) { n 625 http/modules/ngx_http_uwsgi_module.c ch = header[i].key.data[n]; n 635 http/modules/ngx_http_uwsgi_module.c lowcase_key[n] = ch; n 638 http/modules/ngx_http_uwsgi_module.c if (ngx_hash_find(&uwcf->headers_hash, hash, lowcase_key, n)) { n 739 http/modules/ngx_http_uwsgi_module.c for (n = 0; n < header_params; n++) { n 740 http/modules/ngx_http_uwsgi_module.c if (&header[i] == ignored[n]) { n 750 http/modules/ngx_http_uwsgi_module.c for (n = 0; n < header[i].key.len; n++) { n 751 http/modules/ngx_http_uwsgi_module.c ch = header[i].key.data[n]; n 1537 http/modules/ngx_http_uwsgi_module.c ngx_uint_t n; n 1552 http/modules/ngx_http_uwsgi_module.c n = ngx_http_script_variables_count(url); n 1554 http/modules/ngx_http_uwsgi_module.c if (n) { n 1562 http/modules/ngx_http_uwsgi_module.c sc.variables = n; n 423 http/modules/ngx_http_xslt_filter_module.c size_t n; n 433 http/modules/ngx_http_xslt_filter_module.c n = (size_t) vsnprintf((char *) buf, NGX_MAX_ERROR_STR, msg, args); n 436 http/modules/ngx_http_xslt_filter_module.c while (--n && (buf[n] == CR || buf[n] == LF)) { /* void */ } n 439 http/modules/ngx_http_xslt_filter_module.c "libxml2 error: \"%*s\"", n + 1, buf); n 766 http/modules/ngx_http_xslt_filter_module.c ngx_uint_t i, n; n 832 http/modules/ngx_http_xslt_filter_module.c n = cf->args->nelts; n 834 http/modules/ngx_http_xslt_filter_module.c if (n == 2) { n 838 http/modules/ngx_http_xslt_filter_module.c if (ngx_array_init(&sheet->params, cf->pool, n - 2, n 845 http/modules/ngx_http_xslt_filter_module.c for (i = 2; i < n; i++) { n 546 http/modules/perl/ngx_http_perl_module.c int n; n 577 http/modules/perl/ngx_http_perl_module.c n = (pmcf->modules != NGX_CONF_UNSET_PTR) ? pmcf->modules->nelts * 2 : 0; n 579 http/modules/perl/ngx_http_perl_module.c embedding = ngx_palloc(cf->pool, (4 + n) * sizeof(char *)); n 586 http/modules/perl/ngx_http_perl_module.c if (n++) { n 594 http/modules/perl/ngx_http_perl_module.c embedding[n++] = "-Mnginx"; n 595 http/modules/perl/ngx_http_perl_module.c embedding[n++] = "-e"; n 596 http/modules/perl/ngx_http_perl_module.c embedding[n++] = "0"; n 598 http/modules/perl/ngx_http_perl_module.c n = perl_parse(perl, ngx_http_perl_xs_init, n, embedding, NULL); n 600 http/modules/perl/ngx_http_perl_module.c if (n != 0) { n 601 http/modules/perl/ngx_http_perl_module.c ngx_log_error(NGX_LOG_ALERT, cf->log, 0, "perl_parse() failed: %d", n); n 672 http/modules/perl/ngx_http_perl_module.c int n, status; n 703 http/modules/perl/ngx_http_perl_module.c n = call_sv(sub, G_EVAL); n 707 http/modules/perl/ngx_http_perl_module.c if (n) { n 749 http/modules/perl/ngx_http_perl_module.c if (n != 1) { n 751 http/modules/perl/ngx_http_perl_module.c "call_sv(\"%V\") returned %d results", handler, n); n 449 http/ngx_http.c ngx_uint_t i, n; n 461 http/ngx_http.c n = use_rewrite + use_access + cmcf->try_files + 1 /* find config phase */; n 464 http/ngx_http.c n += cmcf->phases[i].handlers.nelts; n 468 http/ngx_http.c n * sizeof(ngx_http_phase_handler_t) + sizeof(void *)); n 474 http/ngx_http.c n = 0; n 483 http/ngx_http.c cmcf->phase_engine.server_rewrite_index = n; n 490 http/ngx_http.c find_config_index = n; n 493 http/ngx_http.c n++; n 500 http/ngx_http.c cmcf->phase_engine.location_rewrite_index = n; n 510 http/ngx_http.c n++; n 518 http/ngx_http.c n++; n 524 http/ngx_http.c ph->next = n; n 533 http/ngx_http.c n++; n 547 http/ngx_http.c n += cmcf->phases[i].handlers.nelts; n 552 http/ngx_http.c ph->next = n; n 672 http/ngx_http.c ngx_uint_t n; n 691 http/ngx_http.c n = 0; n 724 http/ngx_http.c n++; n 744 http/ngx_http.c (n + 1) * sizeof(ngx_http_core_loc_conf_t **)); n 1451 http/ngx_http.c ngx_uint_t n, s; n 1481 http/ngx_http.c for (n = 0; n < cscfp[s]->server_names.nelts; n++) { n 1484 http/ngx_http.c if (name[n].regex) { n 1490 http/ngx_http.c rc = ngx_hash_add_key(&ha, &name[n].name, name[n].server, n 1500 http/ngx_http.c &name[n].name, addr->opt.addr); n 1507 http/ngx_http.c &name[n].name, addr->opt.addr); n 1583 http/ngx_http.c for (n = 0; n < cscfp[s]->server_names.nelts; n++) { n 1584 http/ngx_http.c if (name[n].regex) { n 1585 http/ngx_http.c addr->regex[i++] = name[n]; n 1912 http/ngx_http.c ngx_uint_t i, n, hash; n 1955 http/ngx_http.c for (n = 0; n < (*types)->nelts; n++) { n 1957 http/ngx_http.c if (ngx_strcmp(value[i].data, type[n].key.data) == 0) { n 156 http/ngx_http_copy_filter_module.c ssize_t n; n 178 http/ngx_http_copy_filter_module.c n = ngx_file_aio_read(file, &e->aio_preload, 1, offset, r->pool); n 180 http/ngx_http_copy_filter_module.c if (n > 0) { n 185 http/ngx_http_copy_filter_module.c rc = n; n 1482 http/ngx_http_core_module.c ngx_int_t n; n 1521 http/ngx_http_core_module.c n = ngx_http_regex_exec(r, (*clcfp)->regex, &r->uri); n 1523 http/ngx_http_core_module.c if (n == NGX_OK) { n 1533 http/ngx_http_core_module.c if (n == NGX_DECLINED) { n 1558 http/ngx_http_core_module.c size_t len, n; n 1575 http/ngx_http_core_module.c n = (len <= (size_t) node->len) ? len : node->len; n 1577 http/ngx_http_core_module.c rc = ngx_filename_cmp(uri, node->name, n); n 1593 http/ngx_http_core_module.c uri += n; n 1594 http/ngx_http_core_module.c len -= n; n 2828 http/ngx_http_core_module.c ngx_uint_t i, n, hash; n 2857 http/ngx_http_core_module.c for (n = 0; n < clcf->types->nelts; n++) { n 2858 http/ngx_http_core_module.c if (ngx_strcmp(value[i].data, type[n].key.data) == 0) { n 2859 http/ngx_http_core_module.c old = type[n].value; n 2860 http/ngx_http_core_module.c type[n].value = content_type; n 3437 http/ngx_http_core_module.c ngx_uint_t n; n 3476 http/ngx_http_core_module.c for (n = 2; n < cf->args->nelts; n++) { n 3478 http/ngx_http_core_module.c if (ngx_strcmp(value[n].data, "default_server") == 0 n 3479 http/ngx_http_core_module.c || ngx_strcmp(value[n].data, "default") == 0) n 3485 http/ngx_http_core_module.c if (ngx_strcmp(value[n].data, "bind") == 0) { n 3492 http/ngx_http_core_module.c if (ngx_strncmp(value[n].data, "setfib=", 7) == 0) { n 3493 http/ngx_http_core_module.c lsopt.setfib = ngx_atoi(value[n].data + 7, value[n].len - 7); n 3497 http/ngx_http_core_module.c "invalid setfib \"%V\"", &value[n]); n 3504 http/ngx_http_core_module.c if (ngx_strncmp(value[n].data, "backlog=", 8) == 0) { n 3505 http/ngx_http_core_module.c lsopt.backlog = ngx_atoi(value[n].data + 8, value[n].len - 8); n 3511 http/ngx_http_core_module.c "invalid backlog \"%V\"", &value[n]); n 3518 http/ngx_http_core_module.c if (ngx_strncmp(value[n].data, "rcvbuf=", 7) == 0) { n 3519 http/ngx_http_core_module.c size.len = value[n].len - 7; n 3520 http/ngx_http_core_module.c size.data = value[n].data + 7; n 3528 http/ngx_http_core_module.c "invalid rcvbuf \"%V\"", &value[n]); n 3535 http/ngx_http_core_module.c if (ngx_strncmp(value[n].data, "sndbuf=", 7) == 0) { n 3536 http/ngx_http_core_module.c size.len = value[n].len - 7; n 3537 http/ngx_http_core_module.c size.data = value[n].data + 7; n 3545 http/ngx_http_core_module.c "invalid sndbuf \"%V\"", &value[n]); n 3552 http/ngx_http_core_module.c if (ngx_strncmp(value[n].data, "accept_filter=", 14) == 0) { n 3554 http/ngx_http_core_module.c lsopt.accept_filter = (char *) &value[n].data[14]; n 3561 http/ngx_http_core_module.c &value[n]); n 3566 http/ngx_http_core_module.c if (ngx_strcmp(value[n].data, "deferred") == 0) { n 3579 http/ngx_http_core_module.c if (ngx_strncmp(value[n].data, "ipv6only=o", 10) == 0) { n 3587 http/ngx_http_core_module.c if (ngx_strcmp(&value[n].data[10], "n") == 0) { n 3590 http/ngx_http_core_module.c } else if (ngx_strcmp(&value[n].data[10], "ff") == 0) { n 3596 http/ngx_http_core_module.c &value[n].data[9]); n 3618 http/ngx_http_core_module.c if (ngx_strcmp(value[n].data, "ssl") == 0) { n 3631 http/ngx_http_core_module.c "the invalid \"%V\" parameter", &value[n]); n 3758 http/ngx_http_core_module.c ngx_uint_t n; n 3824 http/ngx_http_core_module.c n = ngx_http_script_variables_count(&clcf->root); n 3827 http/ngx_http_core_module.c sc.variables = n; n 3831 http/ngx_http_core_module.c n = 1; n 3835 http/ngx_http_core_module.c if (n) { n 4006 http/ngx_http_core_module.c ngx_uint_t i, n; n 4043 http/ngx_http_core_module.c n = 2; n 4047 http/ngx_http_core_module.c n = 1; n 4076 http/ngx_http_core_module.c for (i = 1; i < cf->args->nelts - n; i++) { n 4125 http/ngx_http_core_module.c ngx_uint_t i, n; n 4157 http/ngx_http_core_module.c n = ngx_http_script_variables_count(&tf[i].name); n 4159 http/ngx_http_core_module.c if (n) { n 4166 http/ngx_http_core_module.c sc.variables = n; n 66 http/ngx_http_file_cache.c ngx_uint_t n; n 82 http/ngx_http_file_cache.c for (n = 0; n < 3; n++) { n 83 http/ngx_http_file_cache.c if (cache->path->level[n] != ocache->path->level[n]) { n 366 http/ngx_http_file_cache.c ssize_t n; n 371 http/ngx_http_file_cache.c n = ngx_http_file_cache_aio_read(r, c); n 373 http/ngx_http_file_cache.c if (n < 0) { n 374 http/ngx_http_file_cache.c return n; n 377 http/ngx_http_file_cache.c if ((size_t) n < c->header_start) { n 391 http/ngx_http_file_cache.c c->buf->last += n; n 452 http/ngx_http_file_cache.c ssize_t n; n 465 http/ngx_http_file_cache.c n = ngx_file_aio_read(&c->file, c->buf->pos, c->body_start, 0, r->pool); n 467 http/ngx_http_file_cache.c if (n != NGX_AGAIN) { n 468 http/ngx_http_file_cache.c return n; n 1337 http/ngx_http_file_cache.c ngx_int_t n; n 1362 http/ngx_http_file_cache.c n = ngx_read_file(&c.file, (u_char *) &h, n 1364 http/ngx_http_file_cache.c if (n == NGX_ERROR) { n 1368 http/ngx_http_file_cache.c if ((size_t) n < sizeof(ngx_http_file_cache_header_t)) { n 1398 http/ngx_http_file_cache.c n = ngx_hextoi(p, 2); n 1400 http/ngx_http_file_cache.c if (n == NGX_ERROR) { n 1406 http/ngx_http_file_cache.c c.key[i] = (u_char) n; n 1517 http/ngx_http_file_cache.c ngx_uint_t i, n; n 1555 http/ngx_http_file_cache.c for (n = 0; n < 3 && p < last; n++) { n 1559 http/ngx_http_file_cache.c cache->path->level[n] = *p++ - '0'; n 1560 http/ngx_http_file_cache.c cache->path->len += cache->path->level[n] + 1; n 1566 http/ngx_http_file_cache.c if (*p++ == ':' && n < 2 && p != last) { n 1694 http/ngx_http_file_cache.c ngx_uint_t i, n, status; n 1709 http/ngx_http_file_cache.c n = cf->args->nelts - 1; n 1711 http/ngx_http_file_cache.c valid = ngx_parse_time(&value[n], 1); n 1714 http/ngx_http_file_cache.c "invalid time value \"%V\"", &value[n]); n 1718 http/ngx_http_file_cache.c if (n == 1) { n 1733 http/ngx_http_file_cache.c for (i = 1; i < n; i++) { n 528 http/ngx_http_request.c ssize_t n; n 546 http/ngx_http_request.c n = recv(c->fd, (char *) buf, 1, MSG_PEEK); n 548 http/ngx_http_request.c if (n == -1 && ngx_socket_errno == NGX_EAGAIN) { n 561 http/ngx_http_request.c if (n == 1) { n 688 http/ngx_http_request.c ssize_t n; n 712 http/ngx_http_request.c n = ngx_http_read_request_header(r); n 714 http/ngx_http_request.c if (n == NGX_AGAIN || n == NGX_ERROR) { n 839 http/ngx_http_request.c n = ngx_http_validate_host(r, &host, n 842 http/ngx_http_request.c if (n == 0) { n 849 http/ngx_http_request.c if (n < 0) { n 854 http/ngx_http_request.c r->headers_in.server.len = n; n 938 http/ngx_http_request.c ssize_t n; n 1008 http/ngx_http_request.c n = ngx_http_read_request_header(r); n 1010 http/ngx_http_request.c if (n == NGX_AGAIN || n == NGX_ERROR) { n 1120 http/ngx_http_request.c ssize_t n; n 1128 http/ngx_http_request.c n = r->header_in->last - r->header_in->pos; n 1130 http/ngx_http_request.c if (n > 0) { n 1131 http/ngx_http_request.c return n; n 1135 http/ngx_http_request.c n = c->recv(c, r->header_in->last, n 1138 http/ngx_http_request.c n = NGX_AGAIN; n 1141 http/ngx_http_request.c if (n == NGX_AGAIN) { n 1155 http/ngx_http_request.c if (n == 0) { n 1160 http/ngx_http_request.c if (n == 0 || n == NGX_ERROR) { n 1168 http/ngx_http_request.c r->header_in->last += n; n 1170 http/ngx_http_request.c return n; n 1733 http/ngx_http_request.c ngx_int_t n; n 1745 http/ngx_http_request.c n = ngx_http_regex_exec(r, sn[i].regex, &name); n 1747 http/ngx_http_request.c if (n == NGX_OK) { n 1752 http/ngx_http_request.c if (n == NGX_DECLINED) { n 2307 http/ngx_http_request.c int n; n 2335 http/ngx_http_request.c n = recv(c->fd, buf, 1, MSG_PEEK); n 2337 http/ngx_http_request.c if (n == 0) { n 2344 http/ngx_http_request.c } else if (n == -1) { n 2609 http/ngx_http_request.c ssize_t n; n 2672 http/ngx_http_request.c n = c->recv(c, b->last, size); n 2675 http/ngx_http_request.c if (n == NGX_AGAIN) { n 2683 http/ngx_http_request.c if (n == NGX_ERROR) { n 2690 http/ngx_http_request.c if (n == 0) { n 2697 http/ngx_http_request.c b->last += n; n 2761 http/ngx_http_request.c ssize_t n; n 2787 http/ngx_http_request.c n = c->recv(c, buffer, NGX_HTTP_LINGERING_BUFFER_SIZE); n 2789 http/ngx_http_request.c ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, "lingering read: %d", n); n 2791 http/ngx_http_request.c if (n == NGX_ERROR || n == 0) { n 3003 http/ngx_http_request.c ngx_uint_t i, n; n 3010 http/ngx_http_request.c n = cmcf->phases[NGX_HTTP_LOG_PHASE].handlers.nelts; n 3012 http/ngx_http_request.c for (i = 0; i < n; i++) { n 263 http/ngx_http_request_body.c ssize_t n; n 293 http/ngx_http_request_body.c n = c->recv(c, rb->buf->last, size); n 296 http/ngx_http_request_body.c "http client request body recv %z", n); n 298 http/ngx_http_request_body.c if (n == NGX_AGAIN) { n 302 http/ngx_http_request_body.c if (n == 0) { n 307 http/ngx_http_request_body.c if (n == 0 || n == NGX_ERROR) { n 312 http/ngx_http_request_body.c rb->buf->last += n; n 313 http/ngx_http_request_body.c rb->rest -= n; n 314 http/ngx_http_request_body.c r->request_length += n; n 387 http/ngx_http_request_body.c ssize_t n; n 418 http/ngx_http_request_body.c n = ngx_write_chain_to_temp_file(rb->temp_file, body); n 422 http/ngx_http_request_body.c if (n == NGX_ERROR) { n 426 http/ngx_http_request_body.c rb->temp_file->offset += n; n 559 http/ngx_http_request_body.c ssize_t n; n 579 http/ngx_http_request_body.c n = r->connection->recv(r->connection, buffer, size); n 581 http/ngx_http_request_body.c if (n == NGX_ERROR) { n 586 http/ngx_http_request_body.c if (n == NGX_AGAIN) { n 590 http/ngx_http_request_body.c if (n == 0) { n 594 http/ngx_http_request_body.c r->headers_in.content_length_n -= n; n 602 http/ngx_http_request_body.c ngx_int_t n; n 627 http/ngx_http_request_body.c n = r->connection->send(r->connection, n 631 http/ngx_http_request_body.c if (n == sizeof("HTTP/1.1 100 Continue" CRLF CRLF) - 1) { n 21 http/ngx_http_script.c ngx_uint_t n); n 110 http/ngx_http_script.c ngx_uint_t i, n, nv, nc; n 154 http/ngx_http_script.c n = nv + 1; n 156 http/ngx_http_script.c if (ngx_array_init(&flushes, ccv->cf->pool, n, sizeof(ngx_uint_t)) n 162 http/ngx_http_script.c n = nv * (2 * sizeof(ngx_http_script_copy_code_t) n 166 http/ngx_http_script.c if (ngx_array_init(&lengths, ccv->cf->pool, n, 1) != NGX_OK) { n 170 http/ngx_http_script.c n = (nv * (2 * sizeof(ngx_http_script_copy_code_t) n 177 http/ngx_http_script.c if (ngx_array_init(&values, ccv->cf->pool, n, 1) != NGX_OK) { n 323 http/ngx_http_script.c ngx_uint_t i, n; n 325 http/ngx_http_script.c for (n = 0, i = 0; i < value->len; i++) { n 327 http/ngx_http_script.c n++; n 331 http/ngx_http_script.c return n; n 358 http/ngx_http_script.c ngx_uint_t n; n 362 http/ngx_http_script.c n = sc->source->data[i] - '0'; n 364 http/ngx_http_script.c if (sc->captures_mask & (1 << n)) { n 368 http/ngx_http_script.c sc->captures_mask |= 1 << n; n 370 http/ngx_http_script.c if (ngx_http_script_add_capture_code(sc, n) != NGX_OK) { n 541 http/ngx_http_script.c ngx_uint_t n, *index; n 545 http/ngx_http_script.c for (n = 0; n < indices->nelts; n++) { n 546 http/ngx_http_script.c if (r->variables[index[n]].no_cacheable) { n 547 http/ngx_http_script.c r->variables[index[n]].valid = 0; n 548 http/ngx_http_script.c r->variables[index[n]].not_found = 0; n 558 http/ngx_http_script.c ngx_uint_t n; n 561 http/ngx_http_script.c n = sc->variables ? sc->variables : 1; n 562 http/ngx_http_script.c *sc->flushes = ngx_array_create(sc->cf->pool, n, sizeof(ngx_uint_t)); n 569 http/ngx_http_script.c n = sc->variables * (2 * sizeof(ngx_http_script_copy_code_t) n 573 http/ngx_http_script.c *sc->lengths = ngx_array_create(sc->cf->pool, n, 1); n 580 http/ngx_http_script.c n = (sc->variables * (2 * sizeof(ngx_http_script_copy_code_t) n 587 http/ngx_http_script.c *sc->values = ngx_array_create(sc->cf->pool, n, 1); n 914 http/ngx_http_script.c ngx_uint_t n; n 1025 http/ngx_http_script.c for (n = 2; n < r->ncaptures; n += 2) { n 1026 http/ngx_http_script.c e->buf.len += r->captures[n + 1] - r->captures[n]; n 1170 http/ngx_http_script.c ngx_http_script_add_capture_code(ngx_http_script_compile_t *sc, ngx_uint_t n) n 1183 http/ngx_http_script.c code->n = 2 * n; n 1194 http/ngx_http_script.c code->n = 2 * n; n 1196 http/ngx_http_script.c if (sc->ncaptures < n) { n 1197 http/ngx_http_script.c sc->ncaptures = n; n 1209 http/ngx_http_script.c ngx_uint_t n; n 1219 http/ngx_http_script.c n = code->n; n 1221 http/ngx_http_script.c if (n < r->ncaptures) { n 1230 http/ngx_http_script.c return cap[n + 1] - cap[n] n 1231 http/ngx_http_script.c + 2 * ngx_escape_uri(NULL, &p[cap[n]], cap[n + 1] - cap[n], n 1234 http/ngx_http_script.c return cap[n + 1] - cap[n]; n 1247 http/ngx_http_script.c ngx_uint_t n; n 1257 http/ngx_http_script.c n = code->n; n 1261 http/ngx_http_script.c if (n < r->ncaptures) { n 1269 http/ngx_http_script.c e->pos = (u_char *) ngx_escape_uri(pos, &p[cap[n]], n 1270 http/ngx_http_script.c cap[n + 1] - cap[n], n 1273 http/ngx_http_script.c e->pos = ngx_copy(pos, &p[cap[n]], cap[n + 1] - cap[n]); n 109 http/ngx_http_script.h uintptr_t n; n 928 http/ngx_http_upstream.c int n; n 1000 http/ngx_http_upstream.c n = recv(c->fd, buf, 1, MSG_PEEK); n 1005 http/ngx_http_upstream.c "http upstream recv(): %d", n); n 1007 http/ngx_http_upstream.c if (ev->write && (n >= 0 || err == NGX_EAGAIN)) { n 1022 http/ngx_http_upstream.c if (n > 0) { n 1026 http/ngx_http_upstream.c if (n == -1) { n 1455 http/ngx_http_upstream.c ssize_t n; n 1511 http/ngx_http_upstream.c n = c->recv(c, u->buffer.last, u->buffer.end - u->buffer.last); n 1513 http/ngx_http_upstream.c if (n == NGX_AGAIN) { n 1527 http/ngx_http_upstream.c if (n == 0) { n 1532 http/ngx_http_upstream.c if (n == NGX_ERROR || n == 0) { n 1537 http/ngx_http_upstream.c u->buffer.last += n; n 1615 http/ngx_http_upstream.c n = u->buffer.last - u->buffer.pos; n 1617 http/ngx_http_upstream.c if (n) { n 1618 http/ngx_http_upstream.c u->buffer.last -= n; n 1620 http/ngx_http_upstream.c u->state->response_length += n; n 1622 http/ngx_http_upstream.c if (u->input_filter(u->input_filter_ctx, n) == NGX_ERROR) { n 1934 http/ngx_http_upstream.c ssize_t n; n 1964 http/ngx_http_upstream.c n = c->recv(c, b->last, size); n 1966 http/ngx_http_upstream.c if (n == NGX_AGAIN) { n 1970 http/ngx_http_upstream.c if (n == 0 || n == NGX_ERROR) { n 1971 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, n); n 1975 http/ngx_http_upstream.c u->state->response_length += n; n 1977 http/ngx_http_upstream.c if (u->input_filter(u->input_filter_ctx, n) == NGX_ERROR) { n 2005 http/ngx_http_upstream.c ssize_t n; n 2084 http/ngx_http_upstream.c n = u->buffer.last - u->buffer.pos; n 2086 http/ngx_http_upstream.c if (n) { n 2089 http/ngx_http_upstream.c u->state->response_length += n; n 2091 http/ngx_http_upstream.c if (u->input_filter(u->input_filter_ctx, n) == NGX_ERROR) { n 2359 http/ngx_http_upstream.c ssize_t n; n 2413 http/ngx_http_upstream.c n = upstream->recv(upstream, b->last, size); n 2415 http/ngx_http_upstream.c if (n == NGX_AGAIN) { n 2419 http/ngx_http_upstream.c if (n > 0) { n 2420 http/ngx_http_upstream.c u->state->response_length += n; n 2422 http/ngx_http_upstream.c if (u->input_filter(u->input_filter_ctx, n) == NGX_ERROR) { n 3105 http/ngx_http_upstream.c ngx_int_t n; n 3136 http/ngx_http_upstream.c n = 0; n 3144 http/ngx_http_upstream.c n = n * 10 + *p - '0'; n 3152 http/ngx_http_upstream.c if (n == 0) { n 3157 http/ngx_http_upstream.c r->cache->valid_sec = ngx_time() + n; n 3218 http/ngx_http_upstream.c ngx_int_t n; n 3232 http/ngx_http_upstream.c n = ngx_atoi(p, len); n 3234 http/ngx_http_upstream.c switch (n) { n 3241 http/ngx_http_upstream.c r->cache->valid_sec = ngx_time() + n; n 3249 http/ngx_http_upstream.c n = ngx_atoi(p, len); n 3251 http/ngx_http_upstream.c if (n != NGX_ERROR) { n 3252 http/ngx_http_upstream.c r->cache->valid_sec = n; n 3265 http/ngx_http_upstream.c ngx_int_t n; n 3269 http/ngx_http_upstream.c n = ngx_atoi(h->value.data, h->value.len); n 3271 http/ngx_http_upstream.c if (n != NGX_ERROR) { n 3272 http/ngx_http_upstream.c r->limit_rate = (size_t) n; n 3922 http/ngx_http_upstream.c ngx_uint_t n; n 3929 http/ngx_http_upstream.c n = r->upstream->cache_status - 1; n 3934 http/ngx_http_upstream.c v->len = ngx_http_cache_status[n].len; n 3935 http/ngx_http_upstream.c v->data = ngx_http_cache_status[n].data; n 23 http/ngx_http_upstream_round_robin.c ngx_uint_t i, j, n; n 32 http/ngx_http_upstream_round_robin.c n = 0; n 39 http/ngx_http_upstream_round_robin.c n += server[i].naddrs; n 43 http/ngx_http_upstream_round_robin.c + sizeof(ngx_http_upstream_rr_peer_t) * (n - 1)); n 48 http/ngx_http_upstream_round_robin.c peers->single = (n == 1); n 49 http/ngx_http_upstream_round_robin.c peers->number = n; n 52 http/ngx_http_upstream_round_robin.c n = 0; n 60 http/ngx_http_upstream_round_robin.c peers->peer[n].sockaddr = server[i].addrs[j].sockaddr; n 61 http/ngx_http_upstream_round_robin.c peers->peer[n].socklen = server[i].addrs[j].socklen; n 62 http/ngx_http_upstream_round_robin.c peers->peer[n].name = server[i].addrs[j].name; n 63 http/ngx_http_upstream_round_robin.c peers->peer[n].max_fails = server[i].max_fails; n 64 http/ngx_http_upstream_round_robin.c peers->peer[n].fail_timeout = server[i].fail_timeout; n 65 http/ngx_http_upstream_round_robin.c peers->peer[n].down = server[i].down; n 66 http/ngx_http_upstream_round_robin.c peers->peer[n].weight = server[i].down ? 0 : server[i].weight; n 67 http/ngx_http_upstream_round_robin.c peers->peer[n].current_weight = peers->peer[n].weight; n 68 http/ngx_http_upstream_round_robin.c n++; n 74 http/ngx_http_upstream_round_robin.c ngx_sort(&peers->peer[0], (size_t) n, n 80 http/ngx_http_upstream_round_robin.c n = 0; n 87 http/ngx_http_upstream_round_robin.c n += server[i].naddrs; n 90 http/ngx_http_upstream_round_robin.c if (n == 0) { n 95 http/ngx_http_upstream_round_robin.c + sizeof(ngx_http_upstream_rr_peer_t) * (n - 1)); n 102 http/ngx_http_upstream_round_robin.c backup->number = n; n 105 http/ngx_http_upstream_round_robin.c n = 0; n 113 http/ngx_http_upstream_round_robin.c backup->peer[n].sockaddr = server[i].addrs[j].sockaddr; n 114 http/ngx_http_upstream_round_robin.c backup->peer[n].socklen = server[i].addrs[j].socklen; n 115 http/ngx_http_upstream_round_robin.c backup->peer[n].name = server[i].addrs[j].name; n 116 http/ngx_http_upstream_round_robin.c backup->peer[n].weight = server[i].weight; n 117 http/ngx_http_upstream_round_robin.c backup->peer[n].current_weight = server[i].weight; n 118 http/ngx_http_upstream_round_robin.c backup->peer[n].max_fails = server[i].max_fails; n 119 http/ngx_http_upstream_round_robin.c backup->peer[n].fail_timeout = server[i].fail_timeout; n 120 http/ngx_http_upstream_round_robin.c backup->peer[n].down = server[i].down; n 121 http/ngx_http_upstream_round_robin.c n++; n 127 http/ngx_http_upstream_round_robin.c ngx_sort(&backup->peer[0], (size_t) n, n 159 http/ngx_http_upstream_round_robin.c n = u.naddrs; n 162 http/ngx_http_upstream_round_robin.c + sizeof(ngx_http_upstream_rr_peer_t) * (n - 1)); n 167 http/ngx_http_upstream_round_robin.c peers->single = (n == 1); n 168 http/ngx_http_upstream_round_robin.c peers->number = n; n 205 http/ngx_http_upstream_round_robin.c ngx_uint_t n; n 227 http/ngx_http_upstream_round_robin.c n = (rrp->peers->number + (8 * sizeof(uintptr_t) - 1)) n 230 http/ngx_http_upstream_round_robin.c rrp->tried = ngx_pcalloc(r->pool, n * sizeof(uintptr_t)); n 256 http/ngx_http_upstream_round_robin.c ngx_uint_t i, n; n 333 http/ngx_http_upstream_round_robin.c n = (rrp->peers->number + (8 * sizeof(uintptr_t) - 1)) n 336 http/ngx_http_upstream_round_robin.c rrp->tried = ngx_pcalloc(r->pool, n * sizeof(uintptr_t)); n 364 http/ngx_http_upstream_round_robin.c ngx_uint_t i, n; n 420 http/ngx_http_upstream_round_robin.c n = rrp->current / (8 * sizeof(uintptr_t)); n 423 http/ngx_http_upstream_round_robin.c if (!(rrp->tried[n] & m)) { n 442 http/ngx_http_upstream_round_robin.c rrp->tried[n] |= m; n 467 http/ngx_http_upstream_round_robin.c n = rrp->current / (8 * sizeof(uintptr_t)); n 470 http/ngx_http_upstream_round_robin.c if (!(rrp->tried[n] & m)) { n 490 http/ngx_http_upstream_round_robin.c rrp->tried[n] |= m; n 517 http/ngx_http_upstream_round_robin.c rrp->tried[n] |= m; n 529 http/ngx_http_upstream_round_robin.c n = rrp->peers->next->number / (8 * sizeof(uintptr_t)) + 1; n 530 http/ngx_http_upstream_round_robin.c for (i = 0; i < n; i++) { n 550 http/ngx_http_upstream_round_robin.c n = rrp->peers->number / (8 * sizeof(uintptr_t)) + 1; n 551 http/ngx_http_upstream_round_robin.c for (i = 0; i < n; i++) { n 581 http/ngx_http_upstream_round_robin.c ngx_uint_t i, n; n 594 http/ngx_http_upstream_round_robin.c n = i; n 604 http/ngx_http_upstream_round_robin.c if (peer[n].current_weight * 1000 / peer[i].current_weight n 605 http/ngx_http_upstream_round_robin.c > peer[n].weight * 1000 / peer[i].weight) n 607 http/ngx_http_upstream_round_robin.c return n; n 610 http/ngx_http_upstream_round_robin.c n = i; n 614 http/ngx_http_upstream_round_robin.c n = i; n 617 http/ngx_http_upstream_round_robin.c return n; n 645 http/ngx_http_variables.c ngx_uint_t i, n; n 651 http/ngx_http_variables.c n = a->nelts; n 653 http/ngx_http_variables.c if (n == 0) { n 664 http/ngx_http_variables.c if (n == 1) { n 673 http/ngx_http_variables.c for (i = 0; i < n; i++) { n 688 http/ngx_http_variables.c if (i == n - 1) { n 724 http/ngx_http_variables.c ngx_uint_t i, n; n 741 http/ngx_http_variables.c for (n = 0; n + prefix < var->len && n < header[i].key.len; n++) { n 742 http/ngx_http_variables.c ch = header[i].key.data[n]; n 751 http/ngx_http_variables.c if (var->data[n + prefix] != ch) { n 756 http/ngx_http_variables.c if (n + prefix == var->len && n == header[i].key.len) { n 1677 http/ngx_http_variables.c ngx_int_t n; n 1685 http/ngx_http_variables.c n = ngx_http_regex_exec(r, reg[i].regex, match); n 1687 http/ngx_http_variables.c if (n == NGX_OK) { n 1691 http/ngx_http_variables.c if (n == NGX_DECLINED) { n 1724 http/ngx_http_variables.c ngx_uint_t i, n; n 1748 http/ngx_http_variables.c n = (ngx_uint_t) rc->named_captures; n 1750 http/ngx_http_variables.c if (n == 0) { n 1754 http/ngx_http_variables.c rv = ngx_palloc(rc->pool, n * sizeof(ngx_http_regex_variable_t)); n 1760 http/ngx_http_variables.c re->nvariables = n; n 1766 http/ngx_http_variables.c for (i = 0; i < n; i++) { n 1795 http/ngx_http_variables.c ngx_uint_t i, n, len; n 1830 http/ngx_http_variables.c n = re->variables[i].capture; n 1834 http/ngx_http_variables.c vv->len = r->captures[n + 1] - r->captures[n]; n 1838 http/ngx_http_variables.c vv->data = &s->data[r->captures[n]]; n 1909 http/ngx_http_variables.c ngx_uint_t i, n; n 1924 http/ngx_http_variables.c for (n = 0; n < cmcf->variables_keys->keys.nelts; n++) { n 1926 http/ngx_http_variables.c av = key[n].value; n 1929 http/ngx_http_variables.c && v[i].name.len == key[n].key.len n 1930 http/ngx_http_variables.c && ngx_strncmp(v[i].name.data, key[n].key.data, v[i].name.len) n 1992 http/ngx_http_variables.c for (n = 0; n < cmcf->variables_keys->keys.nelts; n++) { n 1993 http/ngx_http_variables.c av = key[n].value; n 1996 http/ngx_http_variables.c key[n].key.data = NULL; n 375 mail/ngx_mail.h ngx_uint_t n); n 377 mail/ngx_mail.h ngx_connection_t *c, ngx_uint_t n); n 228 mail/ngx_mail_auth_http_module.c ssize_t n, size; n 253 mail/ngx_mail_auth_http_module.c n = ngx_send(c, ctx->request->pos, size); n 255 mail/ngx_mail_auth_http_module.c if (n == NGX_ERROR) { n 262 mail/ngx_mail_auth_http_module.c if (n > 0) { n 263 mail/ngx_mail_auth_http_module.c ctx->request->pos += n; n 265 mail/ngx_mail_auth_http_module.c if (n == size) { n 292 mail/ngx_mail_auth_http_module.c ssize_t n, size; n 326 mail/ngx_mail_auth_http_module.c n = ngx_recv(c, ctx->response->pos, size); n 328 mail/ngx_mail_auth_http_module.c if (n > 0) { n 329 mail/ngx_mail_auth_http_module.c ctx->response->last += n; n 335 mail/ngx_mail_auth_http_module.c if (n == NGX_AGAIN) { n 459 mail/ngx_mail_auth_http_module.c ngx_int_t rc, port, n; n 638 mail/ngx_mail_auth_http_module.c n = ngx_atoi(ctx->header_start, n 641 mail/ngx_mail_auth_http_module.c if (n != NGX_ERROR) { n 642 mail/ngx_mail_auth_http_module.c ctx->sleep = n; n 1273 mail/ngx_mail_auth_http_module.c uintptr_t n; n 1275 mail/ngx_mail_auth_http_module.c n = ngx_escape_uri(NULL, text->data, text->len, NGX_ESCAPE_MAIL_AUTH); n 1277 mail/ngx_mail_auth_http_module.c if (n == 0) { n 1282 mail/ngx_mail_auth_http_module.c escaped->len = text->len + n * 2; n 336 mail/ngx_mail_handler.c ngx_mail_auth_plain(ngx_mail_session_t *s, ngx_connection_t *c, ngx_uint_t n) n 345 mail/ngx_mail_handler.c "mail auth plain: \"%V\"", &arg[n]); n 348 mail/ngx_mail_handler.c plain.data = ngx_pnalloc(c->pool, ngx_base64_decoded_length(arg[n].len)); n 353 mail/ngx_mail_handler.c if (ngx_decode_base64(&plain, &arg[n]) != NGX_OK) { n 396 mail/ngx_mail_handler.c ngx_uint_t n) n 403 mail/ngx_mail_handler.c "mail auth login username: \"%V\"", &arg[n]); n 405 mail/ngx_mail_handler.c s->login.data = ngx_pnalloc(c->pool, ngx_base64_decoded_length(arg[n].len)); n 410 mail/ngx_mail_handler.c if (ngx_decode_base64(&s->login, &arg[n]) != NGX_OK) { n 462 mail/ngx_mail_handler.c ngx_uint_t n; n 475 mail/ngx_mail_handler.c n = len + salt.len; n 476 mail/ngx_mail_handler.c p[n++] = CR; p[n++] = LF; n 478 mail/ngx_mail_handler.c s->out.len = n; n 537 mail/ngx_mail_handler.c ngx_int_t n; n 560 mail/ngx_mail_handler.c n = c->send(c, s->out.data, s->out.len); n 562 mail/ngx_mail_handler.c if (n > 0) { n 563 mail/ngx_mail_handler.c s->out.len -= n; n 581 mail/ngx_mail_handler.c if (n == NGX_ERROR) { n 602 mail/ngx_mail_handler.c ssize_t n; n 607 mail/ngx_mail_handler.c n = c->recv(c, s->buffer->last, s->buffer->end - s->buffer->last); n 609 mail/ngx_mail_handler.c if (n == NGX_ERROR || n == 0) { n 614 mail/ngx_mail_handler.c if (n > 0) { n 615 mail/ngx_mail_handler.c s->buffer->last += n; n 618 mail/ngx_mail_handler.c if (n == NGX_AGAIN) { n 705 mail/ngx_mail_proxy_module.c ssize_t n; n 713 mail/ngx_mail_proxy_module.c n = s->proxy->upstream.connection->recv(s->proxy->upstream.connection, n 716 mail/ngx_mail_proxy_module.c if (n == NGX_ERROR || n == 0) { n 720 mail/ngx_mail_proxy_module.c if (n == NGX_AGAIN) { n 724 mail/ngx_mail_proxy_module.c b->last += n; n 840 mail/ngx_mail_proxy_module.c ssize_t n; n 915 mail/ngx_mail_proxy_module.c n = dst->send(dst, b->pos, size); n 917 mail/ngx_mail_proxy_module.c if (n == NGX_ERROR) { n 922 mail/ngx_mail_proxy_module.c if (n > 0) { n 923 mail/ngx_mail_proxy_module.c b->pos += n; n 938 mail/ngx_mail_proxy_module.c n = src->recv(src, b->last, size); n 940 mail/ngx_mail_proxy_module.c if (n == NGX_AGAIN || n == 0) { n 944 mail/ngx_mail_proxy_module.c if (n > 0) { n 946 mail/ngx_mail_proxy_module.c b->last += n; n 951 mail/ngx_mail_proxy_module.c if (n == NGX_ERROR) { n 812 mail/ngx_mail_smtp_handler.c ssize_t n; n 814 mail/ngx_mail_smtp_handler.c n = c->recv(c, s->buffer->last, s->buffer->end - s->buffer->last); n 816 mail/ngx_mail_smtp_handler.c if (n == NGX_ERROR || n == 0) { n 821 mail/ngx_mail_smtp_handler.c if (n > 0) { n 822 mail/ngx_mail_smtp_handler.c s->buffer->last += n; n 825 mail/ngx_mail_smtp_handler.c if (n == NGX_AGAIN) { n 375 mail/ngx_mail_ssl_module.c ngx_int_t n; n 401 mail/ngx_mail_ssl_module.c n = ngx_atoi(value[i].data + sizeof("builtin:") - 1, n 404 mail/ngx_mail_ssl_module.c if (n == NGX_ERROR) { n 408 mail/ngx_mail_ssl_module.c scf->builtin_session_cache = n; n 437 mail/ngx_mail_ssl_module.c n = ngx_parse_size(&size); n 439 mail/ngx_mail_ssl_module.c if (n == NGX_ERROR) { n 443 mail/ngx_mail_ssl_module.c if (n < (ngx_int_t) (8 * ngx_pagesize)) { n 451 mail/ngx_mail_ssl_module.c scf->shm_zone = ngx_shared_memory_add(cf, &name, n, n 18 os/unix/ngx_aio_read.c int n; n 62 os/unix/ngx_aio_read.c n = aio_error(&rev->aiocb); n 63 os/unix/ngx_aio_read.c if (n == -1) { n 69 os/unix/ngx_aio_read.c if (n != 0) { n 70 os/unix/ngx_aio_read.c if (n == NGX_EINPROGRESS) { n 72 os/unix/ngx_aio_read.c ngx_log_error(NGX_LOG_ALERT, c->log, n, n 79 os/unix/ngx_aio_read.c ngx_log_error(NGX_LOG_CRIT, c->log, n, "aio_read() failed"); n 85 os/unix/ngx_aio_read.c n = aio_return(&rev->aiocb); n 86 os/unix/ngx_aio_read.c if (n == -1) { n 96 os/unix/ngx_aio_read.c "aio_read: #%d %d", c->fd, n); n 98 os/unix/ngx_aio_read.c if (n == 0) { n 107 os/unix/ngx_aio_read.c return n; n 15 os/unix/ngx_aio_read_chain.c int n; n 47 os/unix/ngx_aio_read_chain.c n = ngx_aio_read(c, buf, size); n 49 os/unix/ngx_aio_read_chain.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "aio_read: %d", n); n 51 os/unix/ngx_aio_read_chain.c if (n == NGX_AGAIN) { n 55 os/unix/ngx_aio_read_chain.c if (n == NGX_ERROR) { n 59 os/unix/ngx_aio_read_chain.c if (n == 0) { n 68 os/unix/ngx_aio_read_chain.c if (n > 0) { n 69 os/unix/ngx_aio_read_chain.c total += n; n 18 os/unix/ngx_aio_write.c int n; n 57 os/unix/ngx_aio_write.c n = aio_error(&wev->aiocb); n 58 os/unix/ngx_aio_write.c if (n == -1) { n 64 os/unix/ngx_aio_write.c if (n != 0) { n 65 os/unix/ngx_aio_write.c if (n == NGX_EINPROGRESS) { n 67 os/unix/ngx_aio_write.c ngx_log_error(NGX_LOG_ALERT, wev->log, n, n 74 os/unix/ngx_aio_write.c ngx_log_error(NGX_LOG_CRIT, wev->log, n, "aio_write() failed"); n 79 os/unix/ngx_aio_write.c n = aio_return(&wev->aiocb); n 80 os/unix/ngx_aio_write.c if (n == -1) { n 85 os/unix/ngx_aio_write.c ngx_log_error(NGX_LOG_CRIT, wev->log, n, "aio_return() %d", n); n 91 os/unix/ngx_aio_write.c n = aio_return(&wev->aiocb); n 92 os/unix/ngx_aio_write.c if (n == -1) { n 102 os/unix/ngx_aio_write.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, wev->log, 0, "aio_write: %d", n); n 107 os/unix/ngx_aio_write.c return n; n 18 os/unix/ngx_aio_write_chain.c ssize_t n, size; n 67 os/unix/ngx_aio_write_chain.c n = ngx_aio_write(c, buf, len); n 69 os/unix/ngx_aio_write_chain.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "aio_write: %z", n); n 71 os/unix/ngx_aio_write_chain.c if (n == NGX_ERROR) { n 75 os/unix/ngx_aio_write_chain.c if (n > 0) { n 76 os/unix/ngx_aio_write_chain.c sent += n; n 77 os/unix/ngx_aio_write_chain.c c->sent += n; n 16 os/unix/ngx_channel.c ssize_t n; n 76 os/unix/ngx_channel.c n = sendmsg(s, &msg, 0); n 78 os/unix/ngx_channel.c if (n == -1) { n 95 os/unix/ngx_channel.c ssize_t n; n 125 os/unix/ngx_channel.c n = recvmsg(s, &msg, 0); n 127 os/unix/ngx_channel.c if (n == -1) { n 137 os/unix/ngx_channel.c if (n == 0) { n 142 os/unix/ngx_channel.c if ((size_t) n < sizeof(ngx_channel_t)) { n 144 os/unix/ngx_channel.c "recvmsg() returned not enough data: %uz", n); n 191 os/unix/ngx_channel.c return n; n 42 os/unix/ngx_file_aio_read.c int n; n 105 os/unix/ngx_file_aio_read.c n = aio_read(&aio->aiocb); n 107 os/unix/ngx_file_aio_read.c if (n == -1) { n 108 os/unix/ngx_file_aio_read.c n = ngx_errno; n 110 os/unix/ngx_file_aio_read.c if (n == NGX_EAGAIN) { n 114 os/unix/ngx_file_aio_read.c ngx_log_error(NGX_LOG_CRIT, file->log, n, n 117 os/unix/ngx_file_aio_read.c if (n == NGX_ENOSYS) { n 126 os/unix/ngx_file_aio_read.c "aio_read: fd:%d %d", file->fd, n); n 139 os/unix/ngx_file_aio_read.c int n; n 142 os/unix/ngx_file_aio_read.c n = aio_error(&aio->aiocb); n 145 os/unix/ngx_file_aio_read.c "aio_error: fd:%d %d", file->fd, n); n 147 os/unix/ngx_file_aio_read.c if (n == -1) { n 156 os/unix/ngx_file_aio_read.c if (n != 0) { n 157 os/unix/ngx_file_aio_read.c if (n == NGX_EINPROGRESS) { n 160 os/unix/ngx_file_aio_read.c ngx_log_error(NGX_LOG_ALERT, file->log, n, n 168 os/unix/ngx_file_aio_read.c aio->err = n; n 171 os/unix/ngx_file_aio_read.c ngx_log_error(NGX_LOG_CRIT, file->log, n, n 176 os/unix/ngx_file_aio_read.c n = aio_return(&aio->aiocb); n 178 os/unix/ngx_file_aio_read.c if (n == -1) { n 189 os/unix/ngx_file_aio_read.c aio->nbytes = n; n 194 os/unix/ngx_file_aio_read.c "aio_return: fd:%d %d", file->fd, n); n 196 os/unix/ngx_file_aio_read.c return n; n 21 os/unix/ngx_files.c ssize_t n; n 28 os/unix/ngx_files.c n = pread(file->fd, buf, size, offset); n 30 os/unix/ngx_files.c if (n == -1) { n 48 os/unix/ngx_files.c n = read(file->fd, buf, size); n 50 os/unix/ngx_files.c if (n == -1) { n 56 os/unix/ngx_files.c file->sys_offset += n; n 60 os/unix/ngx_files.c file->offset += n; n 62 os/unix/ngx_files.c return n; n 69 os/unix/ngx_files.c ssize_t n, written; n 79 os/unix/ngx_files.c n = pwrite(file->fd, buf + written, size, offset); n 81 os/unix/ngx_files.c if (n == -1) { n 87 os/unix/ngx_files.c file->offset += n; n 88 os/unix/ngx_files.c written += n; n 90 os/unix/ngx_files.c if ((size_t) n == size) { n 94 os/unix/ngx_files.c offset += n; n 95 os/unix/ngx_files.c size -= n; n 111 os/unix/ngx_files.c n = write(file->fd, buf + written, size); n 113 os/unix/ngx_files.c if (n == -1) { n 119 os/unix/ngx_files.c file->offset += n; n 120 os/unix/ngx_files.c written += n; n 122 os/unix/ngx_files.c if ((size_t) n == size) { n 126 os/unix/ngx_files.c size -= n; n 156 os/unix/ngx_files.c ssize_t n; n 219 os/unix/ngx_files.c n = writev(file->fd, vec.elts, vec.nelts); n 221 os/unix/ngx_files.c if (n == -1) { n 227 os/unix/ngx_files.c if ((size_t) n != size) { n 230 os/unix/ngx_files.c file->name.data, n, size); n 234 os/unix/ngx_files.c file->sys_offset += n; n 235 os/unix/ngx_files.c file->offset += n; n 239 os/unix/ngx_files.c return n; n 349 os/unix/ngx_files.c int n; n 351 os/unix/ngx_files.c n = glob((char *) gl->pattern, GLOB_NOSORT, NULL, &gl->pglob); n 353 os/unix/ngx_files.c if (n == 0) { n 359 os/unix/ngx_files.c if (n == GLOB_NOMATCH && gl->test) { n 380 os/unix/ngx_files.c if (gl->n < count) { n 382 os/unix/ngx_files.c name->len = (size_t) ngx_strlen(gl->pglob.gl_pathv[gl->n]); n 383 os/unix/ngx_files.c name->data = (u_char *) gl->pglob.gl_pathv[gl->n]; n 384 os/unix/ngx_files.c gl->n++; n 460 os/unix/ngx_files.c ngx_read_ahead(ngx_fd_t fd, size_t n) n 40 os/unix/ngx_files.h size_t n; n 118 os/unix/ngx_files.h ngx_write_fd(ngx_fd_t fd, void *buf, size_t n) n 120 os/unix/ngx_files.h return write(fd, buf, n); n 133 os/unix/ngx_files.h #define ngx_rename_file(o, n) rename((const char *) o, (const char *) n) n 137 os/unix/ngx_files.h #define ngx_change_file_access(n, a) chmod((const char *) n, a) n 170 os/unix/ngx_files.h #define ngx_filename_cmp(s1, s2, n) strncasecmp((char *) s1, (char *) s2, n) n 277 os/unix/ngx_files.h #define ngx_read_ahead(fd, n) fcntl(fd, F_READAHEAD, (int) n) n 284 os/unix/ngx_files.h ngx_int_t ngx_read_ahead(ngx_fd_t fd, size_t n); n 289 os/unix/ngx_files.h #define ngx_read_ahead(fd, n) 0 n 182 os/unix/ngx_freebsd_rfork_thread.c ngx_init_threads(int n, size_t size, ngx_cycle_t *cycle) n 189 os/unix/ngx_freebsd_rfork_thread.c max_threads = n + 1; n 191 os/unix/ngx_freebsd_rfork_thread.c for (i = 0; i < n; i++) { n 235 os/unix/ngx_freebsd_rfork_thread.c errnos = ngx_calloc(n * sizeof(int), cycle->log); n 242 os/unix/ngx_freebsd_rfork_thread.c tids = ngx_calloc((n + 1) * sizeof(ngx_tid_t), cycle->log); n 251 os/unix/ngx_freebsd_rfork_thread.c ngx_tls = ngx_calloc(NGX_THREAD_KEYS_MAX * (n + 1) * sizeof(void *), n 623 os/unix/ngx_freebsd_rfork_thread.c int n; n 671 os/unix/ngx_freebsd_rfork_thread.c n = kevent(cv->kq, NULL, 0, &kev, 1, NULL); n 674 os/unix/ngx_freebsd_rfork_thread.c "cv %p kevent: %d", cv, n); n 676 os/unix/ngx_freebsd_rfork_thread.c if (n == -1) { n 690 os/unix/ngx_freebsd_rfork_thread.c if (n == 0) { n 51 os/unix/ngx_freebsd_rfork_thread.h #define ngx_setthrtitle(n) setproctitle(n) n 20 os/unix/ngx_linux_aio_read.c io_submit(aio_context_t ctx, long n, struct iocb **paiocb) n 22 os/unix/ngx_linux_aio_read.c return syscall(SYS_io_submit, ctx, n, paiocb); n 30 os/unix/ngx_linux_aio_read.c long n; n 95 os/unix/ngx_linux_aio_read.c n = io_submit(ngx_aio_ctx, 1, piocb); n 97 os/unix/ngx_linux_aio_read.c if (n == 1) { n 105 os/unix/ngx_linux_aio_read.c n = -n; n 107 os/unix/ngx_linux_aio_read.c if (n == NGX_EAGAIN) { n 111 os/unix/ngx_linux_aio_read.c ngx_log_error(NGX_LOG_CRIT, file->log, n, n 114 os/unix/ngx_linux_aio_read.c if (n == NGX_ENOSYS) { n 34 os/unix/ngx_posix_init.c ngx_uint_t n; n 47 os/unix/ngx_posix_init.c for (n = ngx_pagesize; n >>= 1; ngx_pagesize_shift++) { /* void */ } n 13 os/unix/ngx_process_cycle.c static void ngx_start_worker_processes(ngx_cycle_t *cycle, ngx_int_t n, n 89 os/unix/ngx_process_cycle.c ngx_uint_t n, sigio; n 214 os/unix/ngx_process_cycle.c for (n = 0; n < cycle->listening.nelts; n++) { n 215 os/unix/ngx_process_cycle.c if (ngx_close_socket(ls[n].fd) == -1) { n 218 os/unix/ngx_process_cycle.c &ls[n].addr_text); n 347 os/unix/ngx_process_cycle.c ngx_start_worker_processes(ngx_cycle_t *cycle, ngx_int_t n, ngx_int_t type) n 356 os/unix/ngx_process_cycle.c for (i = 0; i < n; i++) { n 557 os/unix/ngx_process_cycle.c ngx_int_t i, n; n 593 os/unix/ngx_process_cycle.c for (n = 0; n < ngx_last_process; n++) { n 594 os/unix/ngx_process_cycle.c if (ngx_processes[n].exited n 595 os/unix/ngx_process_cycle.c || ngx_processes[n].pid == -1 n 596 os/unix/ngx_process_cycle.c || ngx_processes[n].channel[0] == -1) n 603 os/unix/ngx_process_cycle.c ch.slot, ch.pid, ngx_processes[n].pid); n 607 os/unix/ngx_process_cycle.c ngx_write_channel(ngx_processes[n].channel[0], n 730 os/unix/ngx_process_cycle.c ngx_int_t n; n 752 os/unix/ngx_process_cycle.c for (n = 0; n < ngx_threads_n; n++) { n 754 os/unix/ngx_process_cycle.c ngx_threads[n].cv = ngx_cond_init(cycle->log); n 756 os/unix/ngx_process_cycle.c if (ngx_threads[n].cv == NULL) { n 761 os/unix/ngx_process_cycle.c if (ngx_create_thread((ngx_tid_t *) &ngx_threads[n].tid, n 763 os/unix/ngx_process_cycle.c (void *) &ngx_threads[n], cycle->log) n 833 os/unix/ngx_process_cycle.c ngx_int_t n; n 969 os/unix/ngx_process_cycle.c for (n = 0; n < ngx_last_process; n++) { n 971 os/unix/ngx_process_cycle.c if (ngx_processes[n].pid == -1) { n 975 os/unix/ngx_process_cycle.c if (n == ngx_process_slot) { n 979 os/unix/ngx_process_cycle.c if (ngx_processes[n].channel[1] == -1) { n 983 os/unix/ngx_process_cycle.c if (close(ngx_processes[n].channel[1]) == -1) { n 1074 os/unix/ngx_process_cycle.c ngx_int_t n; n 1089 os/unix/ngx_process_cycle.c n = ngx_read_channel(c->fd, &ch, sizeof(ngx_channel_t), ev->log); n 1091 os/unix/ngx_process_cycle.c ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel: %i", n); n 1093 os/unix/ngx_process_cycle.c if (n == NGX_ERROR) { n 1109 os/unix/ngx_process_cycle.c if (n == NGX_AGAIN) { n 1336 os/unix/ngx_process_cycle.c time_t next, n; n 1346 os/unix/ngx_process_cycle.c n = path[i]->manager(path[i]->data); n 1348 os/unix/ngx_process_cycle.c next = (n <= next) ? n : next; n 47 os/unix/ngx_pthread_thread.c ngx_init_threads(int n, size_t size, ngx_cycle_t *cycle) n 51 os/unix/ngx_pthread_thread.c max_threads = n; n 21 os/unix/ngx_readv_chain.c ssize_t n, size; n 93 os/unix/ngx_readv_chain.c n = readv(c->fd, (struct iovec *) vec.elts, vec.nelts); n 95 os/unix/ngx_readv_chain.c if (n >= 0) { n 97 os/unix/ngx_readv_chain.c rev->available -= n; n 114 os/unix/ngx_readv_chain.c if (n == 0) { n 131 os/unix/ngx_readv_chain.c return n; n 134 os/unix/ngx_readv_chain.c if (n < size) { n 138 os/unix/ngx_readv_chain.c if (n == 0) { n 142 os/unix/ngx_readv_chain.c return n; n 150 os/unix/ngx_readv_chain.c n = NGX_AGAIN; n 153 os/unix/ngx_readv_chain.c n = ngx_connection_error(c, err, "readv() failed"); n 161 os/unix/ngx_readv_chain.c if (n == NGX_ERROR) { n 165 os/unix/ngx_readv_chain.c return n; n 174 os/unix/ngx_readv_chain.c ssize_t n, size; n 217 os/unix/ngx_readv_chain.c n = readv(c->fd, (struct iovec *) vec.elts, vec.nelts); n 219 os/unix/ngx_readv_chain.c if (n == 0) { n 223 os/unix/ngx_readv_chain.c return n; n 225 os/unix/ngx_readv_chain.c } else if (n > 0) { n 227 os/unix/ngx_readv_chain.c if (n < size && !(ngx_event_flags & NGX_USE_GREEDY_EVENT)) { n 231 os/unix/ngx_readv_chain.c return n; n 239 os/unix/ngx_readv_chain.c n = NGX_AGAIN; n 242 os/unix/ngx_readv_chain.c n = ngx_connection_error(c, err, "readv() failed"); n 250 os/unix/ngx_readv_chain.c if (n == NGX_ERROR) { n 254 os/unix/ngx_readv_chain.c return n; n 17 os/unix/ngx_recv.c ssize_t n; n 51 os/unix/ngx_recv.c n = recv(c->fd, buf, size, 0); n 54 os/unix/ngx_recv.c "recv: fd:%d %d of %d", c->fd, n, size); n 56 os/unix/ngx_recv.c if (n >= 0) { n 58 os/unix/ngx_recv.c rev->available -= n; n 75 os/unix/ngx_recv.c if (n == 0) { n 86 os/unix/ngx_recv.c return n; n 89 os/unix/ngx_recv.c if ((size_t) n < size) { n 93 os/unix/ngx_recv.c if (n == 0) { n 97 os/unix/ngx_recv.c return n; n 105 os/unix/ngx_recv.c n = NGX_AGAIN; n 108 os/unix/ngx_recv.c n = ngx_connection_error(c, err, "recv() failed"); n 116 os/unix/ngx_recv.c if (n == NGX_ERROR) { n 120 os/unix/ngx_recv.c return n; n 128 os/unix/ngx_recv.c ssize_t n; n 135 os/unix/ngx_recv.c n = recv(c->fd, buf, size, 0); n 138 os/unix/ngx_recv.c "recv: fd:%d %d of %d", c->fd, n, size); n 140 os/unix/ngx_recv.c if (n == 0) { n 143 os/unix/ngx_recv.c return n; n 145 os/unix/ngx_recv.c } else if (n > 0) { n 147 os/unix/ngx_recv.c if ((size_t) n < size n 153 os/unix/ngx_recv.c return n; n 161 os/unix/ngx_recv.c n = NGX_AGAIN; n 164 os/unix/ngx_recv.c n = ngx_connection_error(c, err, "recv() failed"); n 172 os/unix/ngx_recv.c if (n == NGX_ERROR) { n 176 os/unix/ngx_recv.c return n; n 15 os/unix/ngx_send.c ssize_t n; n 33 os/unix/ngx_send.c n = send(c->fd, buf, size, 0); n 36 os/unix/ngx_send.c "send: fd:%d %d of %d", c->fd, n, size); n 38 os/unix/ngx_send.c if (n > 0) { n 39 os/unix/ngx_send.c if (n < (ssize_t) size) { n 43 os/unix/ngx_send.c c->sent += n; n 45 os/unix/ngx_send.c return n; n 50 os/unix/ngx_send.c if (n == 0) { n 53 os/unix/ngx_send.c return n; n 49 os/unix/ngx_solaris_sendfilev_chain.c ssize_t n; n 166 os/unix/ngx_solaris_sendfilev_chain.c n = sendfilev(c->fd, vec.elts, vec.nelts, &sent); n 168 os/unix/ngx_solaris_sendfilev_chain.c if (n == -1) { n 190 os/unix/ngx_solaris_sendfilev_chain.c "sendfilev: %z %z", n, sent); n 64 os/unix/ngx_thread.h #define ngx_setthrtitle(n) n 95 os/unix/ngx_thread.h ngx_int_t ngx_init_threads(int n, size_t size, ngx_cycle_t *cycle); n 17 os/unix/ngx_udp_recv.c ssize_t n; n 24 os/unix/ngx_udp_recv.c n = recv(c->fd, buf, size, 0); n 27 os/unix/ngx_udp_recv.c "recv: fd:%d %d of %d", c->fd, n, size); n 29 os/unix/ngx_udp_recv.c if (n >= 0) { n 31 os/unix/ngx_udp_recv.c rev->available -= n; n 44 os/unix/ngx_udp_recv.c return n; n 52 os/unix/ngx_udp_recv.c n = NGX_AGAIN; n 55 os/unix/ngx_udp_recv.c n = ngx_connection_error(c, err, "recv() failed"); n 63 os/unix/ngx_udp_recv.c if (n == NGX_ERROR) { n 67 os/unix/ngx_udp_recv.c return n; n 75 os/unix/ngx_udp_recv.c ssize_t n; n 82 os/unix/ngx_udp_recv.c n = recv(c->fd, buf, size, 0); n 85 os/unix/ngx_udp_recv.c "recv: fd:%d %d of %d", c->fd, n, size); n 87 os/unix/ngx_udp_recv.c if (n >= 0) { n 88 os/unix/ngx_udp_recv.c return n; n 96 os/unix/ngx_udp_recv.c n = NGX_AGAIN; n 99 os/unix/ngx_udp_recv.c n = ngx_connection_error(c, err, "recv() failed"); n 107 os/unix/ngx_udp_recv.c if (n == NGX_ERROR) { n 111 os/unix/ngx_udp_recv.c return n; n 23 os/unix/ngx_writev_chain.c ssize_t n, size, sent; n 108 os/unix/ngx_writev_chain.c n = writev(c->fd, vec.elts, vec.nelts); n 110 os/unix/ngx_writev_chain.c if (n == -1) { n 131 os/unix/ngx_writev_chain.c sent = n > 0 ? n : 0;