a 14 core/ngx_array.c ngx_array_t *a; a 16 core/ngx_array.c a = ngx_palloc(p, sizeof(ngx_array_t)); a 17 core/ngx_array.c if (a == NULL) { a 21 core/ngx_array.c a->elts = ngx_palloc(p, n * size); a 22 core/ngx_array.c if (a->elts == NULL) { a 26 core/ngx_array.c a->nelts = 0; a 27 core/ngx_array.c a->size = size; a 28 core/ngx_array.c a->nalloc = n; a 29 core/ngx_array.c a->pool = p; a 31 core/ngx_array.c return a; a 36 core/ngx_array.c ngx_array_destroy(ngx_array_t *a) a 40 core/ngx_array.c p = a->pool; a 42 core/ngx_array.c if ((u_char *) a->elts + a->size * a->nalloc == p->d.last) { a 43 core/ngx_array.c p->d.last -= a->size * a->nalloc; a 46 core/ngx_array.c if ((u_char *) a + sizeof(ngx_array_t) == p->d.last) { a 47 core/ngx_array.c p->d.last = (u_char *) a; a 53 core/ngx_array.c ngx_array_push(ngx_array_t *a) a 59 core/ngx_array.c if (a->nelts == a->nalloc) { a 63 core/ngx_array.c size = a->size * a->nalloc; a 65 core/ngx_array.c p = a->pool; a 67 core/ngx_array.c if ((u_char *) a->elts + size == p->d.last a 68 core/ngx_array.c && p->d.last + a->size <= p->d.end) a 75 core/ngx_array.c p->d.last += a->size; a 76 core/ngx_array.c a->nalloc++; a 86 core/ngx_array.c ngx_memcpy(new, a->elts, size); a 87 core/ngx_array.c a->elts = new; a 88 core/ngx_array.c a->nalloc *= 2; a 92 core/ngx_array.c elt = (u_char *) a->elts + a->size * a->nelts; a 93 core/ngx_array.c a->nelts++; a 100 core/ngx_array.c ngx_array_push_n(ngx_array_t *a, ngx_uint_t n) a 107 core/ngx_array.c size = n * a->size; a 109 core/ngx_array.c if (a->nelts + n > a->nalloc) { a 113 core/ngx_array.c p = a->pool; a 115 core/ngx_array.c if ((u_char *) a->elts + a->size * a->nalloc == p->d.last a 124 core/ngx_array.c a->nalloc += n; a 129 core/ngx_array.c nalloc = 2 * ((n >= a->nalloc) ? n : a->nalloc); a 131 core/ngx_array.c new = ngx_palloc(p, nalloc * a->size); a 136 core/ngx_array.c ngx_memcpy(new, a->elts, a->nelts * a->size); a 137 core/ngx_array.c a->elts = new; a 138 core/ngx_array.c a->nalloc = nalloc; a 142 core/ngx_array.c elt = (u_char *) a->elts + a->size * a->nelts; a 143 core/ngx_array.c a->nelts += n; a 25 core/ngx_array.h void ngx_array_destroy(ngx_array_t *a); a 26 core/ngx_array.h void *ngx_array_push(ngx_array_t *a); a 27 core/ngx_array.h void *ngx_array_push_n(ngx_array_t *a, ngx_uint_t n); a 1114 core/ngx_conf_file.c ngx_array_t **a; a 1117 core/ngx_conf_file.c a = (ngx_array_t **) (p + cmd->offset); a 1119 core/ngx_conf_file.c if (*a == NGX_CONF_UNSET_PTR) { a 1120 core/ngx_conf_file.c *a = ngx_array_create(cf->pool, 4, sizeof(ngx_str_t)); a 1121 core/ngx_conf_file.c if (*a == NULL) { a 1126 core/ngx_conf_file.c s = ngx_array_push(*a); a 1150 core/ngx_conf_file.c ngx_array_t **a; a 1154 core/ngx_conf_file.c a = (ngx_array_t **) (p + cmd->offset); a 1156 core/ngx_conf_file.c if (*a == NULL) { a 1157 core/ngx_conf_file.c *a = ngx_array_create(cf->pool, 4, sizeof(ngx_keyval_t)); a 1158 core/ngx_conf_file.c if (*a == NULL) { a 1163 core/ngx_conf_file.c kv = ngx_array_push(*a); a 96 core/ngx_config.h #define ngx_align(d, a) (((d) + (a - 1)) & ~(a - 1)) a 97 core/ngx_config.h #define ngx_align_ptr(p, a) \ a 98 core/ngx_config.h (u_char *) (((uintptr_t) (p) + ((uintptr_t) a - 1)) & ~((uintptr_t) a - 1)) a 157 core/ngx_regex.c ngx_regex_exec_array(ngx_array_t *a, ngx_str_t *s, ngx_log_t *log) a 163 core/ngx_regex.c re = a->elts; a 165 core/ngx_regex.c for (i = 0; i < a->nelts; i++) { a 52 core/ngx_regex.h ngx_int_t ngx_regex_exec_array(ngx_array_t *a, ngx_str_t *s, ngx_log_t *log); a 1125 core/ngx_resolver.c ngx_uint_t qtype, qident, naddrs, a, i, n, start; a 1193 core/ngx_resolver.c for (a = 0; a < nan; a++) { a 1278 core/ngx_resolver.c for (a = 0; a < nan; a++) { a 299 http/modules/ngx_http_geo_module.c ngx_array_t *a; a 371 http/modules/ngx_http_geo_module.c a = (ngx_array_t *) ctx.high.low[i]; a 373 http/modules/ngx_http_geo_module.c if (a == NULL || a->nelts == 0) { a 377 http/modules/ngx_http_geo_module.c len = a->nelts * sizeof(ngx_http_geo_range_t); a 384 http/modules/ngx_http_geo_module.c p = (void **) ngx_cpymem(ctx.high.low[i], a->elts, len); a 634 http/modules/ngx_http_geo_module.c ngx_array_t *a; a 654 http/modules/ngx_http_geo_module.c a = (ngx_array_t *) ctx->high.low[h]; a 656 http/modules/ngx_http_geo_module.c if (a == NULL) { a 657 http/modules/ngx_http_geo_module.c a = ngx_array_create(ctx->temp_pool, 64, a 659 http/modules/ngx_http_geo_module.c if (a == NULL) { a 663 http/modules/ngx_http_geo_module.c ctx->high.low[h] = (ngx_http_geo_range_t *) a; a 666 http/modules/ngx_http_geo_module.c i = a->nelts; a 667 http/modules/ngx_http_geo_module.c range = a->elts; a 681 http/modules/ngx_http_geo_module.c range = ngx_array_push(a); a 686 http/modules/ngx_http_geo_module.c range = a->elts; a 689 http/modules/ngx_http_geo_module.c (a->nelts - 2 - i) * sizeof(ngx_http_geo_range_t)); a 715 http/modules/ngx_http_geo_module.c range = ngx_array_push(a); a 720 http/modules/ngx_http_geo_module.c range = ngx_array_push(a); a 725 http/modules/ngx_http_geo_module.c range = a->elts; a 728 http/modules/ngx_http_geo_module.c (a->nelts - 3 - i) * sizeof(ngx_http_geo_range_t)); a 748 http/modules/ngx_http_geo_module.c range = ngx_array_push(a); a 753 http/modules/ngx_http_geo_module.c range = a->elts; a 756 http/modules/ngx_http_geo_module.c (a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t)); a 772 http/modules/ngx_http_geo_module.c range = ngx_array_push(a); a 777 http/modules/ngx_http_geo_module.c range = a->elts; a 780 http/modules/ngx_http_geo_module.c (a->nelts - 2 - i) * sizeof(ngx_http_geo_range_t)); a 805 http/modules/ngx_http_geo_module.c range = ngx_array_push(a); a 829 http/modules/ngx_http_geo_module.c ngx_array_t *a; a 851 http/modules/ngx_http_geo_module.c a = (ngx_array_t *) ctx->high.low[h]; a 853 http/modules/ngx_http_geo_module.c if (a == NULL) { a 858 http/modules/ngx_http_geo_module.c range = a->elts; a 859 http/modules/ngx_http_geo_module.c for (i = 0; i < a->nelts; i++) { a 865 http/modules/ngx_http_geo_module.c (a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t)); a 867 http/modules/ngx_http_geo_module.c a->nelts--; a 1337 http/modules/ngx_http_log_module.c ngx_array_t a; a 1346 http/modules/ngx_http_log_module.c if (ngx_array_init(&a, cf->pool, 1, sizeof(ngx_str_t)) != NGX_OK) { a 1350 http/modules/ngx_http_log_module.c value = ngx_array_push(&a); a 1358 http/modules/ngx_http_log_module.c if (ngx_http_log_compile_format(cf, NULL, fmt->ops, &a, 0) a 55 http/modules/perl/ngx_http_perl_module.h #define dTHXa(a) a 1403 http/ngx_http.c ngx_uint_t p, a; a 1423 http/ngx_http.c for (a = 0; a < port[p].addrs.nelts; a++) { a 1425 http/ngx_http.c if (addr[a].servers.nelts > 1 a 1427 http/ngx_http.c || addr[a].default_server->captures a 1431 http/ngx_http.c if (ngx_http_server_names(cf, cmcf, &addr[a]) != NGX_OK) { a 1695 http/ngx_http_file_cache.c ngx_array_t **a; a 1699 http/ngx_http_file_cache.c a = (ngx_array_t **) (p + cmd->offset); a 1701 http/ngx_http_file_cache.c if (*a == NGX_CONF_UNSET_PTR) { a 1702 http/ngx_http_file_cache.c *a = ngx_array_create(cf->pool, 1, sizeof(ngx_http_cache_valid_t)); a 1703 http/ngx_http_file_cache.c if (*a == NULL) { a 1721 http/ngx_http_file_cache.c v = ngx_array_push(*a); a 1749 http/ngx_http_file_cache.c v = ngx_array_push(*a); a 1792 http/ngx_http_file_cache.c ngx_array_t **a; a 1796 http/ngx_http_file_cache.c a = (ngx_array_t **) (p + cmd->offset); a 1798 http/ngx_http_file_cache.c if (*a == NGX_CONF_UNSET_PTR) { a 1799 http/ngx_http_file_cache.c *a = ngx_array_create(cf->pool, 1, sizeof(ngx_http_complex_value_t)); a 1800 http/ngx_http_file_cache.c if (*a == NULL) { a 1808 http/ngx_http_file_cache.c cv = ngx_array_push(*a); a 284 http/ngx_http_script.c ngx_array_t **a; a 288 http/ngx_http_script.c a = (ngx_array_t **) (p + cmd->offset); a 290 http/ngx_http_script.c if (*a == NGX_CONF_UNSET_PTR) { a 291 http/ngx_http_script.c *a = ngx_array_create(cf->pool, 1, sizeof(ngx_http_complex_value_t)); a 292 http/ngx_http_script.c if (*a == NULL) { a 300 http/ngx_http_script.c cv = ngx_array_push(*a); a 646 http/ngx_http_variables.c ngx_array_t *a; a 649 http/ngx_http_variables.c a = (ngx_array_t *) ((char *) r + data); a 651 http/ngx_http_variables.c n = a->nelts; a 662 http/ngx_http_variables.c h = a->elts; a 536 mail/ngx_mail_core_module.c ngx_array_t *a; a 538 mail/ngx_mail_core_module.c a = (ngx_array_t *) (p + cmd->offset); a 543 mail/ngx_mail_core_module.c c = ngx_array_push(a); a 137 os/unix/ngx_files.h #define ngx_change_file_access(n, a) chmod((const char *) n, a) a 210 os/unix/ngx_files.h #define ngx_dir_access(a) (a | (a & 0444) >> 2)