p 415 core/nginx.c u_char *p, *v, *inherited; p 435 core/nginx.c for (p = inherited, v = p; *p; p++) { p 436 core/nginx.c if (*p == ':' || *p == ';') { p 437 core/nginx.c s = ngx_atoi(v, p - v); p 446 core/nginx.c v = p + 1; p 468 core/nginx.c char **p, **env; p 510 core/nginx.c for (p = ngx_os_environ; *p; p++) { p 512 core/nginx.c if (ngx_strncmp(*p, var[i].data, var[i].len) == 0 p 513 core/nginx.c && (*p)[var[i].len] == '=') p 542 core/nginx.c for (p = ngx_os_environ; *p; p++) { p 544 core/nginx.c if (ngx_strncmp(*p, var[i].data, var[i].len) == 0 p 545 core/nginx.c && (*p)[var[i].len] == '=') p 547 core/nginx.c env[n++] = *p; p 568 core/nginx.c u_char *p; p 591 core/nginx.c p = ngx_cpymem(var, NGINX_VAR "=", sizeof(NGINX_VAR)); p 595 core/nginx.c p = ngx_sprintf(p, "%ud;", ls[i].fd); p 598 core/nginx.c *p = '\0'; p 662 core/nginx.c u_char *p; p 667 core/nginx.c p = (u_char *) argv[i]; p 669 core/nginx.c if (*p++ != '-') { p 674 core/nginx.c while (*p) { p 676 core/nginx.c switch (*p++) { p 702 core/nginx.c if (*p) { p 703 core/nginx.c ngx_prefix = p; p 716 core/nginx.c if (*p) { p 717 core/nginx.c ngx_conf_file = p; p 730 core/nginx.c if (*p) { p 731 core/nginx.c ngx_conf_params = p; p 744 core/nginx.c if (*p) { p 745 core/nginx.c ngx_signal = (char *) p; p 768 core/nginx.c ngx_log_stderr(0, "invalid option: \"%c\"", *(p - 1)); p 827 core/nginx.c u_char *p; p 832 core/nginx.c p = ngx_prefix; p 834 core/nginx.c if (!ngx_path_separator(*p)) { p 835 core/nginx.c p = ngx_pnalloc(cycle->pool, len + 1); p 836 core/nginx.c if (p == NULL) { p 840 core/nginx.c ngx_memcpy(p, ngx_prefix, len); p 841 core/nginx.c p[len++] = '/'; p 845 core/nginx.c cycle->conf_prefix.data = p; p 847 core/nginx.c cycle->prefix.data = p; p 853 core/nginx.c p = ngx_pnalloc(cycle->pool, NGX_MAX_PATH); p 854 core/nginx.c if (p == NULL) { p 858 core/nginx.c if (ngx_getcwd(p, NGX_MAX_PATH) == 0) { p 863 core/nginx.c len = ngx_strlen(p); p 865 core/nginx.c p[len++] = '/'; p 868 core/nginx.c cycle->conf_prefix.data = p; p 870 core/nginx.c cycle->prefix.data = p; p 896 core/nginx.c for (p = cycle->conf_file.data + cycle->conf_file.len - 1; p 897 core/nginx.c p > cycle->conf_file.data; p 898 core/nginx.c p--) p 900 core/nginx.c if (ngx_path_separator(*p)) { p 901 core/nginx.c cycle->conf_prefix.len = p - ngx_cycle->conf_file.data + 1; p 12 core/ngx_array.c ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size) p 16 core/ngx_array.c a = ngx_palloc(p, sizeof(ngx_array_t)); p 21 core/ngx_array.c a->elts = ngx_palloc(p, n * size); p 29 core/ngx_array.c a->pool = p; p 38 core/ngx_array.c ngx_pool_t *p; p 40 core/ngx_array.c p = a->pool; p 42 core/ngx_array.c if ((u_char *) a->elts + a->size * a->nalloc == p->d.last) { p 43 core/ngx_array.c p->d.last -= a->size * a->nalloc; p 46 core/ngx_array.c if ((u_char *) a + sizeof(ngx_array_t) == p->d.last) { p 47 core/ngx_array.c p->d.last = (u_char *) a; p 57 core/ngx_array.c ngx_pool_t *p; p 65 core/ngx_array.c p = a->pool; p 67 core/ngx_array.c if ((u_char *) a->elts + size == p->d.last p 68 core/ngx_array.c && p->d.last + a->size <= p->d.end) p 75 core/ngx_array.c p->d.last += a->size; p 81 core/ngx_array.c new = ngx_palloc(p, 2 * size); p 105 core/ngx_array.c ngx_pool_t *p; p 113 core/ngx_array.c p = a->pool; p 115 core/ngx_array.c if ((u_char *) a->elts + a->size * a->nalloc == p->d.last p 116 core/ngx_array.c && p->d.last + size <= p->d.end) p 123 core/ngx_array.c p->d.last += size; p 131 core/ngx_array.c new = ngx_palloc(p, nalloc * a->size); p 24 core/ngx_array.h ngx_array_t *ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size); p 70 core/ngx_buf.c u_char *p; p 75 core/ngx_buf.c p = ngx_palloc(pool, bufs->num * bufs->size); p 76 core/ngx_buf.c if (p == NULL) { p 101 core/ngx_buf.c b->pos = p; p 102 core/ngx_buf.c b->last = p; p 105 core/ngx_buf.c b->start = p; p 106 core/ngx_buf.c p += bufs->size; p 107 core/ngx_buf.c b->end = p; p 155 core/ngx_buf.c ngx_chain_get_free_buf(ngx_pool_t *p, ngx_chain_t **free) p 166 core/ngx_buf.c cl = ngx_alloc_chain_link(p); p 171 core/ngx_buf.c cl->buf = ngx_calloc_buf(p); p 156 core/ngx_buf.h ngx_chain_t *ngx_chain_get_free_buf(ngx_pool_t *p, ngx_chain_t **free); p 807 core/ngx_conf_file.c u_char *p, *n, *prefix; p 838 core/ngx_conf_file.c p = ngx_cpymem(n, prefix, len); p 839 core/ngx_conf_file.c ngx_cpystrn(p, name->data, name->len + 1); p 1011 core/ngx_conf_file.c u_char errstr[NGX_MAX_CONF_ERRSTR], *p, *last; p 1017 core/ngx_conf_file.c p = ngx_vslprintf(errstr, last, fmt, args); p 1021 core/ngx_conf_file.c p = ngx_log_errno(p, last, err); p 1025 core/ngx_conf_file.c ngx_log_error(level, cf->log, 0, "%*s", p - errstr, errstr); p 1031 core/ngx_conf_file.c p - errstr, errstr); p 1036 core/ngx_conf_file.c p - errstr, errstr, p 1044 core/ngx_conf_file.c char *p = conf; p 1050 core/ngx_conf_file.c fp = (ngx_flag_t *) (p + cmd->offset); p 1084 core/ngx_conf_file.c char *p = conf; p 1089 core/ngx_conf_file.c field = (ngx_str_t *) (p + cmd->offset); p 1111 core/ngx_conf_file.c char *p = conf; p 1117 core/ngx_conf_file.c a = (ngx_array_t **) (p + cmd->offset); p 1147 core/ngx_conf_file.c char *p = conf; p 1154 core/ngx_conf_file.c a = (ngx_array_t **) (p + cmd->offset); p 1185 core/ngx_conf_file.c char *p = conf; p 1192 core/ngx_conf_file.c np = (ngx_int_t *) (p + cmd->offset); p 1216 core/ngx_conf_file.c char *p = conf; p 1223 core/ngx_conf_file.c sp = (size_t *) (p + cmd->offset); p 1247 core/ngx_conf_file.c char *p = conf; p 1254 core/ngx_conf_file.c op = (off_t *) (p + cmd->offset); p 1278 core/ngx_conf_file.c char *p = conf; p 1285 core/ngx_conf_file.c msp = (ngx_msec_t *) (p + cmd->offset); p 1313 core/ngx_conf_file.c char *p = conf; p 1320 core/ngx_conf_file.c sp = (time_t *) (p + cmd->offset); p 1348 core/ngx_conf_file.c char *p = conf; p 1354 core/ngx_conf_file.c bufs = (ngx_bufs_t *) (p + cmd->offset); p 1378 core/ngx_conf_file.c char *p = conf; p 1384 core/ngx_conf_file.c np = (ngx_uint_t *) (p + cmd->offset); p 1415 core/ngx_conf_file.c char *p = conf; p 1422 core/ngx_conf_file.c np = (ngx_uint_t *) (p + cmd->offset); p 97 core/ngx_config.h #define ngx_align_ptr(p, a) \ p 98 core/ngx_config.h (u_char *) (((uintptr_t) (p) + ((uintptr_t) a - 1)) & ~((uintptr_t) a - 1)) p 107 core/ngx_crc32.c void *p; p 116 core/ngx_crc32.c p = ngx_alloc(16 * sizeof(uint32_t) + ngx_cacheline_size, ngx_cycle->log); p 117 core/ngx_crc32.c if (p == NULL) { p 121 core/ngx_crc32.c p = ngx_align_ptr(p, ngx_cacheline_size); p 123 core/ngx_crc32.c ngx_memcpy(p, ngx_crc32_table16, 16 * sizeof(uint32_t)); p 125 core/ngx_crc32.c ngx_crc32_table_short = p; p 20 core/ngx_crc32.h ngx_crc32_short(u_char *p, size_t len) p 28 core/ngx_crc32.h c = *p++; p 38 core/ngx_crc32.h ngx_crc32_long(u_char *p, size_t len) p 45 core/ngx_crc32.h crc = ngx_crc32_table256[(crc ^ *p++) & 0xff] ^ (crc >> 8); p 57 core/ngx_crc32.h ngx_crc32_update(uint32_t *crc, u_char *p, size_t len) p 64 core/ngx_crc32.h c = ngx_crc32_table256[(c ^ *p++) & 0xff] ^ (c >> 8); p 183 core/ngx_file.c u_char *p, ch; p 189 core/ngx_file.c p = dir + 3; p 191 core/ngx_file.c p = dir + 1; p 194 core/ngx_file.c for ( /* void */ ; *p; p++) { p 195 core/ngx_file.c ch = *p; p 201 core/ngx_file.c *p = '\0'; p 217 core/ngx_file.c *p = '/'; p 240 core/ngx_file.c char *p = conf; p 247 core/ngx_file.c slot = (ngx_path_t **) (p + cmd->offset); p 349 core/ngx_file.c u_char *p; p 365 core/ngx_file.c p = value[i].data; p 367 core/ngx_file.c if (ngx_strncmp(p, "user:", sizeof("user:") - 1) == 0) { p 369 core/ngx_file.c p += sizeof("user:") - 1; p 371 core/ngx_file.c } else if (ngx_strncmp(p, "group:", sizeof("group:") - 1) == 0) { p 373 core/ngx_file.c p += sizeof("group:") - 1; p 375 core/ngx_file.c } else if (ngx_strncmp(p, "all:", sizeof("all:") - 1) == 0) { p 377 core/ngx_file.c p += sizeof("all:") - 1; p 383 core/ngx_file.c if (ngx_strcmp(p, "rw") == 0) { p 386 core/ngx_file.c } else if (ngx_strcmp(p, "r") == 0) { p 410 core/ngx_file.c ngx_path_t *path, **p; p 414 core/ngx_file.c p = cf->cycle->pathes.elts; p 416 core/ngx_file.c if (p[i]->name.len == path->name.len p 417 core/ngx_file.c && ngx_strcmp(p[i]->name.data, path->name.data) == 0) p 420 core/ngx_file.c if (p[i]->level[n] != path->level[n]) { p 422 core/ngx_file.c if (p[i]->conf_file == NULL) { p 428 core/ngx_file.c &p[i]->name); p 437 core/ngx_file.c &p[i]->name, p[i]->conf_file, p[i]->line); p 444 core/ngx_file.c &p[i]->name, p[i]->conf_file, p[i]->line); p 448 core/ngx_file.c if (p[i]->level[n] == 0) { p 453 core/ngx_file.c *slot = p[i]; p 459 core/ngx_file.c p = ngx_array_push(&cf->cycle->pathes); p 460 core/ngx_file.c if (p == NULL) { p 464 core/ngx_file.c *p = path; p 821 core/ngx_file.c u_char *p, *name; p 906 core/ngx_file.c p = ngx_cpymem(buf.data, tree->data, tree->len); p 907 core/ngx_file.c *p++ = '/'; p 908 core/ngx_file.c ngx_memcpy(p, name, len + 1); p 710 core/ngx_hash.c u_char *p; p 878 core/ngx_hash.c p = ngx_pnalloc(ha->temp_pool, last); p 879 core/ngx_hash.c if (p == NULL) { p 888 core/ngx_hash.c ngx_memcpy(&p[n], &key->data[i + 1], len); p 890 core/ngx_hash.c p[n++] = '.'; p 899 core/ngx_hash.c ngx_memcpy(&p[n], &key->data[1], len); p 903 core/ngx_hash.c p[n] = '\0'; p 914 core/ngx_hash.c p = ngx_pnalloc(ha->temp_pool, last); p 915 core/ngx_hash.c if (p == NULL) { p 919 core/ngx_hash.c ngx_cpystrn(p, key->data, last); p 932 core/ngx_hash.c hk->key.data = p; p 19 core/ngx_inet.c u_char *p, c; p 27 core/ngx_inet.c for (p = text; p < text + len; p++) { p 29 core/ngx_inet.c c = *p; p 62 core/ngx_inet.c ngx_inet6_addr(u_char *p, size_t len, u_char *addr) p 79 core/ngx_inet.c if (p[0] == ':') { p 80 core/ngx_inet.c p++; p 85 core/ngx_inet.c c = *p++; p 89 core/ngx_inet.c digit = p; p 102 core/ngx_inet.c digit = p; p 182 core/ngx_inet.c u_char *p; p 197 core/ngx_inet.c p = (u_char *) &sin->sin_addr; p 200 core/ngx_inet.c p = ngx_snprintf(text, len, "%ud.%ud.%ud.%ud:%d", p 201 core/ngx_inet.c p[0], p[1], p[2], p[3], ntohs(sin->sin_port)); p 203 core/ngx_inet.c p = ngx_snprintf(text, len, "%ud.%ud.%ud.%ud", p 204 core/ngx_inet.c p[0], p[1], p[2], p[3]); p 207 core/ngx_inet.c return (p - text); p 251 core/ngx_inet.c u_char *p; p 257 core/ngx_inet.c p = addr; p 260 core/ngx_inet.c p[0], p[1], p[2], p[3]) p 279 core/ngx_inet.c ngx_inet6_ntop(u_char *p, u_char *text, size_t len) p 296 core/ngx_inet.c if (p[i] || p[i + 1]) { p 322 core/ngx_inet.c if ((max == 5 && p[10] == 0xff && p[11] == 0xff) p 324 core/ngx_inet.c || (max == 7 && p[14] != 0 && p[15] != 1)) p 340 core/ngx_inet.c dst = ngx_sprintf(dst, "%uxi", p[i] * 256 + p[i + 1]); p 348 core/ngx_inet.c dst = ngx_sprintf(dst, "%ud.%ud.%ud.%ud", p[12], p[13], p[14], p[15]); p 513 core/ngx_inet.c u_char *p; p 515 core/ngx_inet.c p = u->url.data; p 517 core/ngx_inet.c if (ngx_strncasecmp(p, (u_char *) "unix:", 5) == 0) { p 521 core/ngx_inet.c if ((p[0] == ':' || p[0] == '/') && !u->listen) { p 526 core/ngx_inet.c if (p[0] == '[') { p 615 core/ngx_inet.c u_char *p, *host, *port, *last, *uri, *args; p 741 core/ngx_inet.c p = ngx_alloc(++len, pool->log); p 742 core/ngx_inet.c if (p == NULL) { p 746 core/ngx_inet.c (void) ngx_cpystrn(p, host, len); p 748 core/ngx_inet.c h = gethostbyname((const char *) p); p 750 core/ngx_inet.c ngx_free(p); p 790 core/ngx_inet.c u_char *p, *host, *port, *last, *uri; p 803 core/ngx_inet.c p = ngx_strlchr(host, last, ']'); p 805 core/ngx_inet.c if (p == NULL) { p 810 core/ngx_inet.c if (last - p) { p 812 core/ngx_inet.c port = p + 1; p 854 core/ngx_inet.c len = p - host; p 899 core/ngx_inet.c u_char *p, *host; p 962 core/ngx_inet.c p = ngx_pnalloc(pool, len); p 963 core/ngx_inet.c if (p == NULL) { p 967 core/ngx_inet.c len = ngx_sock_ntop((struct sockaddr *) sin, p, len, 1); p 970 core/ngx_inet.c u->addrs[i].name.data = p; p 996 core/ngx_inet.c p = ngx_pnalloc(pool, u->host.len + sizeof(":65535") - 1); p 997 core/ngx_inet.c if (p == NULL) { p 1001 core/ngx_inet.c u->addrs[0].name.len = ngx_sprintf(p, "%V:%d", p 1002 core/ngx_inet.c &u->host, ntohs(port)) - p; p 1003 core/ngx_inet.c u->addrs[0].name.data = p; p 106 core/ngx_inet.h ngx_int_t ngx_inet6_addr(u_char *p, size_t len, u_char *addr); p 107 core/ngx_inet.h size_t ngx_inet6_ntop(u_char *p, u_char *text, size_t len); p 90 core/ngx_log.c u_char *p, *last, *msg; p 102 core/ngx_log.c p = errstr + ngx_cached_err_log_time.len; p 104 core/ngx_log.c p = ngx_slprintf(p, last, " [%V] ", &err_levels[level]); p 107 core/ngx_log.c p = ngx_slprintf(p, last, "%P#" NGX_TID_T_FMT ": ", p 111 core/ngx_log.c p = ngx_slprintf(p, last, "*%uA ", log->connection); p 114 core/ngx_log.c msg = p; p 119 core/ngx_log.c p = ngx_vslprintf(p, last, fmt, args); p 124 core/ngx_log.c p = ngx_vslprintf(p, last, fmt, args); p 129 core/ngx_log.c p = ngx_log_errno(p, last, err); p 133 core/ngx_log.c p = log->handler(log, p, last - p); p 136 core/ngx_log.c if (p > last - NGX_LINEFEED_SIZE) { p 137 core/ngx_log.c p = last - NGX_LINEFEED_SIZE; p 140 core/ngx_log.c ngx_linefeed(p); p 142 core/ngx_log.c (void) ngx_write_fd(log->file->fd, errstr, p - errstr); p 155 core/ngx_log.c (void) ngx_write_console(ngx_stderr, msg, p - msg); p 191 core/ngx_log.c u_char *p; p 196 core/ngx_log.c p = ngx_vsnprintf(errstr, sizeof(errstr) - 1, fmt, args); p 200 core/ngx_log.c "%*s", p - errstr, errstr); p 207 core/ngx_log.c u_char *p, *last; p 212 core/ngx_log.c p = errstr + 7; p 217 core/ngx_log.c p = ngx_vslprintf(p, last, fmt, args); p 221 core/ngx_log.c p = ngx_log_errno(p, last, err); p 224 core/ngx_log.c if (p > last - NGX_LINEFEED_SIZE) { p 225 core/ngx_log.c p = last - NGX_LINEFEED_SIZE; p 228 core/ngx_log.c ngx_linefeed(p); p 230 core/ngx_log.c (void) ngx_write_console(ngx_stderr, errstr, p - errstr); p 267 core/ngx_log.c u_char *p, *name; p 287 core/ngx_log.c p = NULL; p 313 core/ngx_log.c p = ngx_cpymem(name, prefix, plen); p 315 core/ngx_log.c if (!ngx_path_separator(*(p - 1))) { p 316 core/ngx_log.c *p++ = '/'; p 319 core/ngx_log.c ngx_cpystrn(p, (u_char *) NGX_ERROR_LOG_PATH, nlen + 1); p 321 core/ngx_log.c p = name; p 342 core/ngx_log.c if (p) { p 343 core/ngx_log.c ngx_free(p); p 777 core/ngx_open_file_cache.c ngx_rbtree_node_t **p; p 784 core/ngx_open_file_cache.c p = &temp->left; p 788 core/ngx_open_file_cache.c p = &temp->right; p 795 core/ngx_open_file_cache.c p = (ngx_strcmp(file->name, file_temp->name) < 0) p 799 core/ngx_open_file_cache.c if (*p == sentinel) { p 803 core/ngx_open_file_cache.c temp = *p; p 806 core/ngx_open_file_cache.c *p = node; p 18 core/ngx_palloc.c ngx_pool_t *p; p 20 core/ngx_palloc.c p = ngx_memalign(NGX_POOL_ALIGNMENT, size, log); p 21 core/ngx_palloc.c if (p == NULL) { p 25 core/ngx_palloc.c p->d.last = (u_char *) p + sizeof(ngx_pool_t); p 26 core/ngx_palloc.c p->d.end = (u_char *) p + size; p 27 core/ngx_palloc.c p->d.next = NULL; p 28 core/ngx_palloc.c p->d.failed = 0; p 31 core/ngx_palloc.c p->max = (size < NGX_MAX_ALLOC_FROM_POOL) ? size : NGX_MAX_ALLOC_FROM_POOL; p 33 core/ngx_palloc.c p->current = p; p 34 core/ngx_palloc.c p->chain = NULL; p 35 core/ngx_palloc.c p->large = NULL; p 36 core/ngx_palloc.c p->cleanup = NULL; p 37 core/ngx_palloc.c p->log = log; p 39 core/ngx_palloc.c return p; p 46 core/ngx_palloc.c ngx_pool_t *p, *n; p 74 core/ngx_palloc.c for (p = pool, n = pool->d.next; /* void */; p = n, n = n->d.next) { p 76 core/ngx_palloc.c "free: %p, unused: %uz", p, p->d.end - p->d.last); p 85 core/ngx_palloc.c for (p = pool, n = pool->d.next; /* void */; p = n, n = n->d.next) { p 86 core/ngx_palloc.c ngx_free(p); p 98 core/ngx_palloc.c ngx_pool_t *p; p 109 core/ngx_palloc.c for (p = pool; p; p = p->d.next) { p 110 core/ngx_palloc.c p->d.last = (u_char *) p + sizeof(ngx_pool_t); p 119 core/ngx_palloc.c ngx_pool_t *p; p 123 core/ngx_palloc.c p = pool->current; p 126 core/ngx_palloc.c m = ngx_align_ptr(p->d.last, NGX_ALIGNMENT); p 128 core/ngx_palloc.c if ((size_t) (p->d.end - m) >= size) { p 129 core/ngx_palloc.c p->d.last = m + size; p 134 core/ngx_palloc.c p = p->d.next; p 136 core/ngx_palloc.c } while (p); p 149 core/ngx_palloc.c ngx_pool_t *p; p 153 core/ngx_palloc.c p = pool->current; p 156 core/ngx_palloc.c m = p->d.last; p 158 core/ngx_palloc.c if ((size_t) (p->d.end - m) >= size) { p 159 core/ngx_palloc.c p->d.last = m + size; p 164 core/ngx_palloc.c p = p->d.next; p 166 core/ngx_palloc.c } while (p); p 180 core/ngx_palloc.c ngx_pool_t *p, *new, *current; p 201 core/ngx_palloc.c for (p = current; p->d.next; p = p->d.next) { p 202 core/ngx_palloc.c if (p->d.failed++ > 4) { p 203 core/ngx_palloc.c current = p->d.next; p 207 core/ngx_palloc.c p->d.next = new; p 218 core/ngx_palloc.c void *p; p 222 core/ngx_palloc.c p = ngx_alloc(size, pool->log); p 223 core/ngx_palloc.c if (p == NULL) { p 231 core/ngx_palloc.c large->alloc = p; p 232 core/ngx_palloc.c return p; p 242 core/ngx_palloc.c ngx_free(p); p 246 core/ngx_palloc.c large->alloc = p; p 250 core/ngx_palloc.c return p; p 257 core/ngx_palloc.c void *p; p 260 core/ngx_palloc.c p = ngx_memalign(alignment, size, pool->log); p 261 core/ngx_palloc.c if (p == NULL) { p 267 core/ngx_palloc.c ngx_free(p); p 271 core/ngx_palloc.c large->alloc = p; p 275 core/ngx_palloc.c return p; p 280 core/ngx_palloc.c ngx_pfree(ngx_pool_t *pool, void *p) p 285 core/ngx_palloc.c if (p == l->alloc) { p 302 core/ngx_palloc.c void *p; p 304 core/ngx_palloc.c p = ngx_palloc(pool, size); p 305 core/ngx_palloc.c if (p) { p 306 core/ngx_palloc.c ngx_memzero(p, size); p 309 core/ngx_palloc.c return p; p 314 core/ngx_palloc.c ngx_pool_cleanup_add(ngx_pool_t *p, size_t size) p 318 core/ngx_palloc.c c = ngx_palloc(p, sizeof(ngx_pool_cleanup_t)); p 324 core/ngx_palloc.c c->data = ngx_palloc(p, size); p 334 core/ngx_palloc.c c->next = p->cleanup; p 336 core/ngx_palloc.c p->cleanup = c; p 338 core/ngx_palloc.c ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, p->log, 0, "add cleanup: %p", c); p 345 core/ngx_palloc.c ngx_pool_run_cleanup_file(ngx_pool_t *p, ngx_fd_t fd) p 350 core/ngx_palloc.c for (c = p->cleanup; c; c = c->next) { p 411 core/ngx_palloc.c void *p; p 423 core/ngx_palloc.c p = slot->block; p 426 core/ngx_palloc.c return p; p 85 core/ngx_palloc.h ngx_int_t ngx_pfree(ngx_pool_t *pool, void *p); p 88 core/ngx_palloc.h ngx_pool_cleanup_t *ngx_pool_cleanup_add(ngx_pool_t *p, size_t size); p 89 core/ngx_palloc.h void ngx_pool_run_cleanup_file(ngx_pool_t *p, ngx_fd_t fd); p 98 core/ngx_parse.c u_char *p, *last; p 120 core/ngx_parse.c p = line->data; p 121 core/ngx_parse.c last = p + line->len; p 123 core/ngx_parse.c while (p < last) { p 125 core/ngx_parse.c if (*p >= '0' && *p <= '9') { p 126 core/ngx_parse.c value = value * 10 + (*p++ - '0'); p 131 core/ngx_parse.c switch (*p++) { p 179 core/ngx_parse.c if (*p == 's') { p 183 core/ngx_parse.c p++; p 238 core/ngx_parse.c while (p < last && *p == ' ') { p 239 core/ngx_parse.c p++; p 268 core/ngx_radix_tree.c char *p; p 271 core/ngx_radix_tree.c p = (char *) tree->free; p 273 core/ngx_radix_tree.c return p; p 285 core/ngx_radix_tree.c p = tree->start; p 289 core/ngx_radix_tree.c return p; p 100 core/ngx_rbtree.c ngx_rbtree_node_t **p; p 104 core/ngx_rbtree.c p = (node->key < temp->key) ? &temp->left : &temp->right; p 106 core/ngx_rbtree.c if (*p == sentinel) { p 110 core/ngx_rbtree.c temp = *p; p 113 core/ngx_rbtree.c *p = node; p 125 core/ngx_rbtree.c ngx_rbtree_node_t **p; p 138 core/ngx_rbtree.c p = ((ngx_rbtree_key_int_t) node->key - (ngx_rbtree_key_int_t) temp->key p 142 core/ngx_rbtree.c if (*p == sentinel) { p 146 core/ngx_rbtree.c temp = *p; p 149 core/ngx_rbtree.c *p = node; p 12 core/ngx_regex.c static void ngx_libc_cdecl ngx_regex_free(void *p); p 66 core/ngx_regex.c char *p; p 99 core/ngx_regex.c p = "pcre_fullinfo(\"%V\", PCRE_INFO_CAPTURECOUNT) failed: %d"; p 109 core/ngx_regex.c p = "pcre_fullinfo(\"%V\", PCRE_INFO_NAMECOUNT) failed: %d"; p 119 core/ngx_regex.c p = "pcre_fullinfo(\"%V\", PCRE_INFO_NAMEENTRYSIZE) failed: %d"; p 125 core/ngx_regex.c p = "pcre_fullinfo(\"%V\", PCRE_INFO_NAMETABLE) failed: %d"; p 133 core/ngx_regex.c rc->err.len = ngx_snprintf(rc->err.data, rc->err.len, p, &rc->pattern, n) p 219 core/ngx_regex.c ngx_regex_free(void *p) p 87 core/ngx_resolver.c static void ngx_resolver_free(ngx_resolver_t *r, void *p); p 88 core/ngx_resolver.c static void ngx_resolver_free_locked(ngx_resolver_t *r, void *p); p 306 core/ngx_resolver.c ngx_resolver_ctx_t *w, **p; p 331 core/ngx_resolver.c p = &rn->waiting; p 336 core/ngx_resolver.c *p = w->next; p 341 core/ngx_resolver.c p = &w->next; p 726 core/ngx_resolver.c ngx_resolver_ctx_t *w, **p; p 745 core/ngx_resolver.c p = &rn->waiting; p 750 core/ngx_resolver.c *p = w->next; p 755 core/ngx_resolver.c p = &w->next; p 1684 core/ngx_resolver.c ngx_rbtree_node_t **p; p 1691 core/ngx_resolver.c p = &temp->left; p 1695 core/ngx_resolver.c p = &temp->right; p 1702 core/ngx_resolver.c p = (ngx_memn2cmp(rn->name, rn_temp->name, rn->nlen, rn_temp->nlen) p 1706 core/ngx_resolver.c if (*p == sentinel) { p 1710 core/ngx_resolver.c temp = *p; p 1713 core/ngx_resolver.c *p = node; p 1724 core/ngx_resolver.c u_char *p, *s; p 1734 core/ngx_resolver.c p = ngx_resolver_alloc(ctx->resolver, len); p 1735 core/ngx_resolver.c if (p == NULL) { p 1740 core/ngx_resolver.c rn->query = p; p 1742 core/ngx_resolver.c query = (ngx_resolver_query_t *) p; p 1761 core/ngx_resolver.c p += sizeof(ngx_resolver_query_t) + nlen; p 1763 core/ngx_resolver.c qs = (ngx_resolver_qs_t *) p; p 1774 core/ngx_resolver.c p--; p 1775 core/ngx_resolver.c *p-- = '\0'; p 1779 core/ngx_resolver.c *p = *s; p 1787 core/ngx_resolver.c *p = (u_char) len; p 1791 core/ngx_resolver.c p--; p 1794 core/ngx_resolver.c *p = (u_char) len; p 1805 core/ngx_resolver.c u_char *p, *d; p 1815 core/ngx_resolver.c p = ngx_resolver_alloc(ctx->resolver, len); p 1816 core/ngx_resolver.c if (p == NULL) { p 1820 core/ngx_resolver.c rn->query = p; p 1821 core/ngx_resolver.c query = (ngx_resolver_query_t *) p; p 1837 core/ngx_resolver.c p += sizeof(ngx_resolver_query_t); p 1840 core/ngx_resolver.c d = ngx_sprintf(&p[1], "%ud", (ctx->addr >> n) & 0xff); p 1841 core/ngx_resolver.c *p = (u_char) (d - &p[1]); p 1842 core/ngx_resolver.c p = d; p 1846 core/ngx_resolver.c ngx_memcpy(p, "\7in-addr\4arpa\0\0\14\0\1", 18); p 1849 core/ngx_resolver.c (p + sizeof("\7in-addr\4arpa") + sizeof(ngx_resolver_qs_t) p 1861 core/ngx_resolver.c u_char *p, *dst; p 1865 core/ngx_resolver.c p = src; p 1874 core/ngx_resolver.c n = *p++; p 1881 core/ngx_resolver.c n = ((n & 0x3f) << 8) + *p; p 1882 core/ngx_resolver.c p = &buf[n]; p 1886 core/ngx_resolver.c p = &p[n]; p 1889 core/ngx_resolver.c if (p >= last) { p 1994 core/ngx_resolver.c u_char *p; p 1998 core/ngx_resolver.c p = ngx_alloc(size, r->log); p 2002 core/ngx_resolver.c return p; p 2009 core/ngx_resolver.c u_char *p; p 2011 core/ngx_resolver.c p = ngx_resolver_alloc(r, size); p 2013 core/ngx_resolver.c if (p) { p 2014 core/ngx_resolver.c ngx_memzero(p, size); p 2017 core/ngx_resolver.c return p; p 2022 core/ngx_resolver.c ngx_resolver_free(ngx_resolver_t *r, void *p) p 2026 core/ngx_resolver.c ngx_free(p); p 2033 core/ngx_resolver.c ngx_resolver_free_locked(ngx_resolver_t *r, void *p) p 2035 core/ngx_resolver.c ngx_free(p); p 2082 core/ngx_resolver.c u_char *p; p 2085 core/ngx_resolver.c p = buf; p 2088 core/ngx_resolver.c p = ngx_snprintf(buf, len, " while %s", log->action); p 2089 core/ngx_resolver.c len -= p - buf; p 2095 core/ngx_resolver.c p = ngx_snprintf(p, len, ", resolver: %V", &uc->server); p 2098 core/ngx_resolver.c return p; p 45 core/ngx_slab.c #define ngx_slab_junk(p, size) ngx_memset(p, 0xD0, size) p 51 core/ngx_slab.c #define ngx_slab_junk(p, size) \ p 52 core/ngx_slab.c if (ngx_freebsd_debug_malloc) ngx_memset(p, 0xD0, size) p 56 core/ngx_slab.c #define ngx_slab_junk(p, size) p 78 core/ngx_slab.c u_char *p; p 96 core/ngx_slab.c p = (u_char *) pool + sizeof(ngx_slab_pool_t); p 97 core/ngx_slab.c size = pool->end - p; p 99 core/ngx_slab.c ngx_slab_junk(p, size); p 101 core/ngx_slab.c slots = (ngx_slab_page_t *) p; p 110 core/ngx_slab.c p += n * sizeof(ngx_slab_page_t); p 114 core/ngx_slab.c ngx_memzero(p, pages * sizeof(ngx_slab_page_t)); p 116 core/ngx_slab.c pool->pages = (ngx_slab_page_t *) p; p 119 core/ngx_slab.c pool->free.next = (ngx_slab_page_t *) p; p 126 core/ngx_slab.c ngx_align_ptr((uintptr_t) p + pages * sizeof(ngx_slab_page_t), p 143 core/ngx_slab.c void *p; p 147 core/ngx_slab.c p = ngx_slab_alloc_locked(pool, size); p 151 core/ngx_slab.c return p; p 159 core/ngx_slab.c uintptr_t p, n, m, mask, *bitmap; p 171 core/ngx_slab.c p = (page - pool->pages) << ngx_pagesize_shift; p 172 core/ngx_slab.c p += (uintptr_t) pool->start; p 175 core/ngx_slab.c p = 0; p 203 core/ngx_slab.c p = (page - pool->pages) << ngx_pagesize_shift; p 204 core/ngx_slab.c bitmap = (uintptr_t *) (pool->start + p); p 226 core/ngx_slab.c p = (uintptr_t) bitmap + i; p 241 core/ngx_slab.c p = (uintptr_t) bitmap + i; p 274 core/ngx_slab.c p = (page - pool->pages) << ngx_pagesize_shift; p 275 core/ngx_slab.c p += i << shift; p 276 core/ngx_slab.c p += (uintptr_t) pool->start; p 316 core/ngx_slab.c p = (page - pool->pages) << ngx_pagesize_shift; p 317 core/ngx_slab.c p += i << shift; p 318 core/ngx_slab.c p += (uintptr_t) pool->start; p 334 core/ngx_slab.c p = (page - pool->pages) << ngx_pagesize_shift; p 335 core/ngx_slab.c bitmap = (uintptr_t *) (pool->start + p); p 358 core/ngx_slab.c p = ((page - pool->pages) << ngx_pagesize_shift) + s * n; p 359 core/ngx_slab.c p += (uintptr_t) pool->start; p 371 core/ngx_slab.c p = (page - pool->pages) << ngx_pagesize_shift; p 372 core/ngx_slab.c p += (uintptr_t) pool->start; p 384 core/ngx_slab.c p = (page - pool->pages) << ngx_pagesize_shift; p 385 core/ngx_slab.c p += (uintptr_t) pool->start; p 391 core/ngx_slab.c p = 0; p 395 core/ngx_slab.c ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, ngx_cycle->log, 0, "slab alloc: %p", p); p 397 core/ngx_slab.c return (void *) p; p 402 core/ngx_slab.c ngx_slab_free(ngx_slab_pool_t *pool, void *p) p 406 core/ngx_slab.c ngx_slab_free_locked(pool, p); p 413 core/ngx_slab.c ngx_slab_free_locked(ngx_slab_pool_t *pool, void *p) p 420 core/ngx_slab.c ngx_log_debug1(NGX_LOG_DEBUG_ALLOC, ngx_cycle->log, 0, "slab free: %p", p); p 422 core/ngx_slab.c if ((u_char *) p < pool->start || (u_char *) p > pool->end) { p 427 core/ngx_slab.c n = ((u_char *) p - pool->start) >> ngx_pagesize_shift; p 439 core/ngx_slab.c if ((uintptr_t) p & (size - 1)) { p 443 core/ngx_slab.c n = ((uintptr_t) p & (ngx_pagesize - 1)) >> shift; p 446 core/ngx_slab.c bitmap = (uintptr_t *) ((uintptr_t) p & ~(ngx_pagesize - 1)); p 492 core/ngx_slab.c (((uintptr_t) p & (ngx_pagesize - 1)) >> ngx_slab_exact_shift); p 495 core/ngx_slab.c if ((uintptr_t) p & (size - 1)) { p 530 core/ngx_slab.c if ((uintptr_t) p & (size - 1)) { p 534 core/ngx_slab.c m = (uintptr_t) 1 << ((((uintptr_t) p & (ngx_pagesize - 1)) >> shift) p 566 core/ngx_slab.c if ((uintptr_t) p & (ngx_pagesize - 1)) { p 582 core/ngx_slab.c n = ((u_char *) p - pool->start) >> ngx_pagesize_shift; p 587 core/ngx_slab.c ngx_slab_junk(p, size << ngx_pagesize_shift); p 598 core/ngx_slab.c ngx_slab_junk(p, size); p 623 core/ngx_slab.c ngx_slab_page_t *page, *p; p 634 core/ngx_slab.c p = (ngx_slab_page_t *) page->prev; p 635 core/ngx_slab.c p->next = &page[pages]; p 639 core/ngx_slab.c p = (ngx_slab_page_t *) page->prev; p 640 core/ngx_slab.c p->next = page->next; p 652 core/ngx_slab.c for (p = page + 1; pages; pages--) { p 653 core/ngx_slab.c p->slab = NGX_SLAB_PAGE_BUSY; p 654 core/ngx_slab.c p->next = NULL; p 655 core/ngx_slab.c p->prev = NGX_SLAB_PAGE; p 656 core/ngx_slab.c p++; p 49 core/ngx_slab.h void ngx_slab_free(ngx_slab_pool_t *pool, void *p); p 50 core/ngx_slab.h void ngx_slab_free_locked(ngx_slab_pool_t *pool, void *p); p 104 core/ngx_string.c u_char *p; p 108 core/ngx_string.c p = ngx_vslprintf(buf, (void *) -1, fmt, args); p 111 core/ngx_string.c return p; p 118 core/ngx_string.c u_char *p; p 122 core/ngx_string.c p = ngx_vslprintf(buf, buf + max, fmt, args); p 125 core/ngx_string.c return p; p 132 core/ngx_string.c u_char *p; p 136 core/ngx_string.c p = ngx_vslprintf(buf, last, fmt, args); p 139 core/ngx_string.c return p; p 146 core/ngx_string.c u_char *p, zero; p 250 core/ngx_string.c p = va_arg(args, u_char *); p 253 core/ngx_string.c while (*p && buf < last) { p 254 core/ngx_string.c *buf++ = *p++; p 259 core/ngx_string.c buf = ngx_cpymem(buf, p, len); p 471 core/ngx_string.c u_char *p, temp[NGX_INT64_LEN + 1]; p 481 core/ngx_string.c p = temp + NGX_INT64_LEN; p 505 core/ngx_string.c *--p = (u_char) (ui32 % 10 + '0'); p 510 core/ngx_string.c *--p = (u_char) (ui64 % 10 + '0'); p 519 core/ngx_string.c *--p = hex[(uint32_t) (ui64 & 0xf)]; p 528 core/ngx_string.c *--p = HEX[(uint32_t) (ui64 & 0xf)]; p 535 core/ngx_string.c len = (temp + NGX_INT64_LEN) - p; p 543 core/ngx_string.c len = (temp + NGX_INT64_LEN) - p; p 549 core/ngx_string.c return ngx_cpymem(buf, p, len); p 1207 core/ngx_string.c ngx_utf8_decode(u_char **p, size_t n) p 1212 core/ngx_string.c u = **p; p 1233 core/ngx_string.c (*p)++; p 1241 core/ngx_string.c (*p)++; p 1244 core/ngx_string.c i = *(*p)++; p 1264 core/ngx_string.c ngx_utf8_length(u_char *p, size_t n) p 1269 core/ngx_string.c last = p + n; p 1271 core/ngx_string.c for (len = 0; p < last; len++) { p 1273 core/ngx_string.c c = *p; p 1276 core/ngx_string.c p++; p 1280 core/ngx_string.c if (ngx_utf8_decode(&p, n) > 0x10ffff) { p 1683 core/ngx_string.c ngx_rbtree_node_t **p; p 1692 core/ngx_string.c p = (node->key < temp->key) ? &temp->left : &temp->right; p 1696 core/ngx_string.c p = (n->str.len < t->str.len) ? &temp->left : &temp->right; p 1699 core/ngx_string.c p = (ngx_memcmp(n->str.data, t->str.data, n->str.len) < 0) p 1703 core/ngx_string.c if (*p == sentinel) { p 1707 core/ngx_string.c temp = *p; p 1710 core/ngx_string.c *p = node; p 1767 core/ngx_string.c u_char *p1, *p2, *p; p 1769 core/ngx_string.c p = ngx_alloc(size, ngx_cycle->log); p 1770 core/ngx_string.c if (p == NULL) { p 1778 core/ngx_string.c ngx_memcpy(p, p1, size); p 1781 core/ngx_string.c p2 > (u_char *) base && cmp(p2 - size, p) > 0; p 1787 core/ngx_string.c ngx_memcpy(p2, p, size); p 1790 core/ngx_string.c ngx_free(p); p 65 core/ngx_string.h ngx_strlchr(u_char *p, u_char *last, u_char c) p 67 core/ngx_string.h while (p < last) { p 69 core/ngx_string.h if (*p == c) { p 70 core/ngx_string.h return p; p 73 core/ngx_string.h p++; p 187 core/ngx_string.h uint32_t ngx_utf8_decode(u_char **p, size_t n); p 188 core/ngx_string.h size_t ngx_utf8_length(u_char *p, size_t n); p 186 core/ngx_times.c u_char *p; p 215 core/ngx_times.c p = &cached_err_log_time[slot][0]; p 217 core/ngx_times.c (void) ngx_sprintf(p, "%4d/%02d/%02d %02d:%02d:%02d", p 224 core/ngx_times.c ngx_cached_err_log_time.data = p; p 560 event/ngx_event.h #define ngx_event_ident(p) ((ngx_connection_t *) (p))->fd p 179 event/ngx_event_busy_lock.c ngx_event_busy_lock_ctx_t *c, *p; p 189 event/ngx_event_busy_lock.c p = bl->events; p 192 event/ngx_event_busy_lock.c p->next = ctx->next; p 195 event/ngx_event_busy_lock.c p = c; p 438 event/ngx_event_openssl.c dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL); p 441 event/ngx_event_openssl.c if (dh->p == NULL || dh->g == NULL) { p 1389 event/ngx_event_openssl.c u_char *p, *last; p 1395 event/ngx_event_openssl.c p = ngx_vslprintf(errstr, last - 1, fmt, args); p 1398 event/ngx_event_openssl.c p = ngx_cpystrn(p, (u_char *) " (SSL:", last - p); p 1408 event/ngx_event_openssl.c if (p >= last) { p 1412 event/ngx_event_openssl.c *p++ = ' '; p 1414 event/ngx_event_openssl.c ERR_error_string_n(n, (char *) p, last - p); p 1416 event/ngx_event_openssl.c while (p < last && *p) { p 1417 event/ngx_event_openssl.c p++; p 1565 event/ngx_event_openssl.c u_char *p, *id, *cached_sess; p 1583 event/ngx_event_openssl.c p = buf; p 1584 event/ngx_event_openssl.c i2d_SSL_SESSION(sess, &p); p 1685 event/ngx_event_openssl.c u_char *p; p 1745 event/ngx_event_openssl.c p = buf; p 1746 event/ngx_event_openssl.c sess = d2i_SSL_SESSION(NULL, &p, sess_id->len); p 1917 event/ngx_event_openssl.c ngx_rbtree_node_t **p; p 1924 event/ngx_event_openssl.c p = &temp->left; p 1928 event/ngx_event_openssl.c p = &temp->right; p 1935 event/ngx_event_openssl.c p = (ngx_memn2cmp(sess_id->id, sess_id_temp->id, p 1940 event/ngx_event_openssl.c if (*p == sentinel) { p 1944 event/ngx_event_openssl.c temp = *p; p 1947 event/ngx_event_openssl.c *p = node; p 1984 event/ngx_event_openssl.c u_char *p, *buf; p 2003 event/ngx_event_openssl.c p = buf; p 2004 event/ngx_event_openssl.c i2d_SSL_SESSION(sess, &p); p 2067 event/ngx_event_openssl.c u_char *p; p 2095 event/ngx_event_openssl.c p = s->data; p 2098 event/ngx_event_openssl.c *p++ = cert.data[i]; p 2100 event/ngx_event_openssl.c *p++ = '\t'; p 2111 event/ngx_event_openssl.c char *p; p 2129 event/ngx_event_openssl.c p = X509_NAME_oneline(name, NULL, 0); p 2131 event/ngx_event_openssl.c for (len = 0; p[len]; len++) { /* void */ } p 2136 event/ngx_event_openssl.c OPENSSL_free(p); p 2141 event/ngx_event_openssl.c ngx_memcpy(s->data, p, len); p 2143 event/ngx_event_openssl.c OPENSSL_free(p); p 2153 event/ngx_event_openssl.c char *p; p 2171 event/ngx_event_openssl.c p = X509_NAME_oneline(name, NULL, 0); p 2173 event/ngx_event_openssl.c for (len = 0; p[len]; len++) { /* void */ } p 2178 event/ngx_event_openssl.c OPENSSL_free(p); p 2183 event/ngx_event_openssl.c ngx_memcpy(s->data, p, len); p 2185 event/ngx_event_openssl.c OPENSSL_free(p); p 13 event/ngx_event_pipe.c static ngx_int_t ngx_event_pipe_read_upstream(ngx_event_pipe_t *p); p 14 event/ngx_event_pipe.c static ngx_int_t ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p); p 16 event/ngx_event_pipe.c static ngx_int_t ngx_event_pipe_write_chain_to_temp_file(ngx_event_pipe_t *p); p 20 event/ngx_event_pipe.c static ngx_int_t ngx_event_pipe_drain_chains(ngx_event_pipe_t *p); p 24 event/ngx_event_pipe.c ngx_event_pipe(ngx_event_pipe_t *p, ngx_int_t do_write) p 32 event/ngx_event_pipe.c p->log->action = "sending to client"; p 34 event/ngx_event_pipe.c rc = ngx_event_pipe_write_to_downstream(p); p 45 event/ngx_event_pipe.c p->read = 0; p 46 event/ngx_event_pipe.c p->upstream_blocked = 0; p 48 event/ngx_event_pipe.c p->log->action = "reading upstream"; p 50 event/ngx_event_pipe.c if (ngx_event_pipe_read_upstream(p) == NGX_ABORT) { p 54 event/ngx_event_pipe.c if (!p->read && !p->upstream_blocked) { p 61 event/ngx_event_pipe.c if (p->upstream->fd != -1) { p 62 event/ngx_event_pipe.c rev = p->upstream->read; p 71 event/ngx_event_pipe.c ngx_add_timer(rev, p->read_timeout); p 78 event/ngx_event_pipe.c if (p->downstream->fd != -1 && p->downstream->data == p->output_ctx) { p 79 event/ngx_event_pipe.c wev = p->downstream->write; p 80 event/ngx_event_pipe.c if (ngx_handle_write_event(wev, p->send_lowat) != NGX_OK) { p 86 event/ngx_event_pipe.c ngx_add_timer(wev, p->send_timeout); p 99 event/ngx_event_pipe.c ngx_event_pipe_read_upstream(ngx_event_pipe_t *p) p 106 event/ngx_event_pipe.c if (p->upstream_eof || p->upstream_error || p->upstream_done) { p 110 event/ngx_event_pipe.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, p 111 event/ngx_event_pipe.c "pipe read upstream: %d", p->upstream->read->ready); p 115 event/ngx_event_pipe.c if (p->upstream_eof || p->upstream_error || p->upstream_done) { p 119 event/ngx_event_pipe.c if (p->preread_bufs == NULL && !p->upstream->read->ready) { p 123 event/ngx_event_pipe.c if (p->preread_bufs) { p 127 event/ngx_event_pipe.c chain = p->preread_bufs; p 128 event/ngx_event_pipe.c p->preread_bufs = NULL; p 129 event/ngx_event_pipe.c n = p->preread_size; p 131 event/ngx_event_pipe.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, p 135 event/ngx_event_pipe.c p->read = 1; p 148 event/ngx_event_pipe.c if (p->upstream->read->available == 0 p 149 event/ngx_event_pipe.c && p->upstream->read->pending_eof) p 151 event/ngx_event_pipe.c p->upstream->read->ready = 0; p 152 event/ngx_event_pipe.c p->upstream->read->eof = 0; p 153 event/ngx_event_pipe.c p->upstream_eof = 1; p 154 event/ngx_event_pipe.c p->read = 1; p 156 event/ngx_event_pipe.c if (p->upstream->read->kq_errno) { p 157 event/ngx_event_pipe.c p->upstream->read->error = 1; p 158 event/ngx_event_pipe.c p->upstream_error = 1; p 159 event/ngx_event_pipe.c p->upstream_eof = 0; p 161 event/ngx_event_pipe.c ngx_log_error(NGX_LOG_ERR, p->log, p 162 event/ngx_event_pipe.c p->upstream->read->kq_errno, p 171 event/ngx_event_pipe.c if (p->free_raw_bufs) { p 175 event/ngx_event_pipe.c chain = p->free_raw_bufs; p 176 event/ngx_event_pipe.c if (p->single_buf) { p 177 event/ngx_event_pipe.c p->free_raw_bufs = p->free_raw_bufs->next; p 180 event/ngx_event_pipe.c p->free_raw_bufs = NULL; p 183 event/ngx_event_pipe.c } else if (p->allocated < p->bufs.num) { p 187 event/ngx_event_pipe.c b = ngx_create_temp_buf(p->pool, p->bufs.size); p 192 event/ngx_event_pipe.c p->allocated++; p 194 event/ngx_event_pipe.c chain = ngx_alloc_chain_link(p->pool); p 202 event/ngx_event_pipe.c } else if (!p->cacheable p 203 event/ngx_event_pipe.c && p->downstream->data == p->output_ctx p 204 event/ngx_event_pipe.c && p->downstream->write->ready p 205 event/ngx_event_pipe.c && !p->downstream->write->delayed) p 212 event/ngx_event_pipe.c p->upstream_blocked = 1; p 214 event/ngx_event_pipe.c ngx_log_debug0(NGX_LOG_DEBUG_EVENT, p->log, 0, p 219 event/ngx_event_pipe.c } else if (p->cacheable p 220 event/ngx_event_pipe.c || p->temp_file->offset < p->max_temp_file_size) p 228 event/ngx_event_pipe.c rc = ngx_event_pipe_write_chain_to_temp_file(p); p 230 event/ngx_event_pipe.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, p 231 event/ngx_event_pipe.c "pipe temp offset: %O", p->temp_file->offset); p 239 event/ngx_event_pipe.c && p->upstream->read->active p 240 event/ngx_event_pipe.c && p->upstream->read->ready) p 242 event/ngx_event_pipe.c if (ngx_del_event(p->upstream->read, NGX_READ_EVENT, 0) p 254 event/ngx_event_pipe.c chain = p->free_raw_bufs; p 255 event/ngx_event_pipe.c if (p->single_buf) { p 256 event/ngx_event_pipe.c p->free_raw_bufs = p->free_raw_bufs->next; p 259 event/ngx_event_pipe.c p->free_raw_bufs = NULL; p 266 event/ngx_event_pipe.c ngx_log_debug0(NGX_LOG_DEBUG_EVENT, p->log, 0, p 272 event/ngx_event_pipe.c n = p->upstream->recv_chain(p->upstream, chain); p 274 event/ngx_event_pipe.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, p 277 event/ngx_event_pipe.c if (p->free_raw_bufs) { p 278 event/ngx_event_pipe.c chain->next = p->free_raw_bufs; p 280 event/ngx_event_pipe.c p->free_raw_bufs = chain; p 283 event/ngx_event_pipe.c p->upstream_error = 1; p 288 event/ngx_event_pipe.c if (p->single_buf) { p 295 event/ngx_event_pipe.c p->read = 1; p 298 event/ngx_event_pipe.c p->upstream_eof = 1; p 303 event/ngx_event_pipe.c p->read_length += n; p 305 event/ngx_event_pipe.c p->free_raw_bufs = NULL; p 316 event/ngx_event_pipe.c /* STUB */ cl->buf->num = p->num++; p 318 event/ngx_event_pipe.c if (p->input_filter(p, cl->buf) == NGX_ERROR) { p 325 event/ngx_event_pipe.c ngx_free_chain(p->pool, ln); p 336 event/ngx_event_pipe.c ln->next = p->free_raw_bufs; p 337 event/ngx_event_pipe.c p->free_raw_bufs = cl; p 343 event/ngx_event_pipe.c for (cl = p->busy; cl; cl = cl->next) { p 344 event/ngx_event_pipe.c ngx_log_debug8(NGX_LOG_DEBUG_EVENT, p->log, 0, p 356 event/ngx_event_pipe.c for (cl = p->out; cl; cl = cl->next) { p 357 event/ngx_event_pipe.c ngx_log_debug8(NGX_LOG_DEBUG_EVENT, p->log, 0, p 369 event/ngx_event_pipe.c for (cl = p->in; cl; cl = cl->next) { p 370 event/ngx_event_pipe.c ngx_log_debug8(NGX_LOG_DEBUG_EVENT, p->log, 0, p 382 event/ngx_event_pipe.c for (cl = p->free_raw_bufs; cl; cl = cl->next) { p 383 event/ngx_event_pipe.c ngx_log_debug8(NGX_LOG_DEBUG_EVENT, p->log, 0, p 397 event/ngx_event_pipe.c if ((p->upstream_eof || p->upstream_error) && p->free_raw_bufs) { p 399 event/ngx_event_pipe.c /* STUB */ p->free_raw_bufs->buf->num = p->num++; p 401 event/ngx_event_pipe.c if (p->input_filter(p, p->free_raw_bufs->buf) == NGX_ERROR) { p 405 event/ngx_event_pipe.c p->free_raw_bufs = p->free_raw_bufs->next; p 407 event/ngx_event_pipe.c if (p->free_bufs && p->buf_to_file == NULL) { p 408 event/ngx_event_pipe.c for (cl = p->free_raw_bufs; cl; cl = cl->next) { p 410 event/ngx_event_pipe.c ngx_pfree(p->pool, cl->buf->start); p 416 event/ngx_event_pipe.c if (p->cacheable && p->in) { p 417 event/ngx_event_pipe.c if (ngx_event_pipe_write_chain_to_temp_file(p) == NGX_ABORT) { p 427 event/ngx_event_pipe.c ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p) p 436 event/ngx_event_pipe.c downstream = p->downstream; p 438 event/ngx_event_pipe.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, p 444 event/ngx_event_pipe.c if (p->downstream_error) { p 445 event/ngx_event_pipe.c return ngx_event_pipe_drain_chains(p); p 448 event/ngx_event_pipe.c if (p->upstream_eof || p->upstream_error || p->upstream_done) { p 452 event/ngx_event_pipe.c for (cl = p->busy; cl; cl = cl->next) { p 456 event/ngx_event_pipe.c if (p->out) { p 457 event/ngx_event_pipe.c ngx_log_debug0(NGX_LOG_DEBUG_EVENT, p->log, 0, p 460 event/ngx_event_pipe.c for (cl = p->out; cl; cl = cl->next) { p 464 event/ngx_event_pipe.c rc = p->output_filter(p->output_ctx, p->out); p 467 event/ngx_event_pipe.c p->downstream_error = 1; p 468 event/ngx_event_pipe.c return ngx_event_pipe_drain_chains(p); p 471 event/ngx_event_pipe.c p->out = NULL; p 474 event/ngx_event_pipe.c if (p->in) { p 475 event/ngx_event_pipe.c ngx_log_debug0(NGX_LOG_DEBUG_EVENT, p->log, 0, p 478 event/ngx_event_pipe.c for (cl = p->in; cl; cl = cl->next) { p 482 event/ngx_event_pipe.c rc = p->output_filter(p->output_ctx, p->in); p 485 event/ngx_event_pipe.c p->downstream_error = 1; p 486 event/ngx_event_pipe.c return ngx_event_pipe_drain_chains(p); p 489 event/ngx_event_pipe.c p->in = NULL; p 492 event/ngx_event_pipe.c if (p->cacheable && p->buf_to_file) { p 494 event/ngx_event_pipe.c file.buf = p->buf_to_file; p 497 event/ngx_event_pipe.c if (ngx_write_chain_to_temp_file(p->temp_file, &file) p 504 event/ngx_event_pipe.c ngx_log_debug0(NGX_LOG_DEBUG_EVENT, p->log, 0, p 509 event/ngx_event_pipe.c p->downstream_done = 1; p 513 event/ngx_event_pipe.c if (downstream->data != p->output_ctx p 525 event/ngx_event_pipe.c for (cl = p->busy; cl; cl = cl->next) { p 537 event/ngx_event_pipe.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, p 542 event/ngx_event_pipe.c if (bsize >= (size_t) p->busy_size) { p 552 event/ngx_event_pipe.c if (p->out) { p 553 event/ngx_event_pipe.c cl = p->out; p 556 event/ngx_event_pipe.c && bsize + cl->buf->last - cl->buf->pos > p->busy_size) p 562 event/ngx_event_pipe.c p->out = p->out->next; p 564 event/ngx_event_pipe.c ngx_event_pipe_free_shadow_raw_buf(&p->free_raw_bufs, cl->buf); p 566 event/ngx_event_pipe.c } else if (!p->cacheable && p->in) { p 567 event/ngx_event_pipe.c cl = p->in; p 569 event/ngx_event_pipe.c ngx_log_debug3(NGX_LOG_DEBUG_EVENT, p->log, 0, p 577 event/ngx_event_pipe.c && bsize + cl->buf->last - cl->buf->pos > p->busy_size) p 580 event/ngx_event_pipe.c p->in = p->in->next; p 597 event/ngx_event_pipe.c p->in = p->in->next; p 619 event/ngx_event_pipe.c ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0, p 634 event/ngx_event_pipe.c rc = p->output_filter(p->output_ctx, out); p 637 event/ngx_event_pipe.c p->downstream_error = 1; p 638 event/ngx_event_pipe.c return ngx_event_pipe_drain_chains(p); p 641 event/ngx_event_pipe.c ngx_chain_update_chains(&p->free, &p->busy, &out, p->tag); p 643 event/ngx_event_pipe.c for (cl = p->free; cl; cl = cl->next) { p 646 event/ngx_event_pipe.c if (p->cacheable || !p->cyclic_temp_file) { p 652 event/ngx_event_pipe.c if (cl->buf->file_last == p->temp_file->offset) { p 653 event/ngx_event_pipe.c p->temp_file->offset = 0; p 662 event/ngx_event_pipe.c if (ngx_event_pipe_add_free_buf(p, cl->buf->shadow) != NGX_OK) { p 678 event/ngx_event_pipe.c ngx_event_pipe_write_chain_to_temp_file(ngx_event_pipe_t *p) p 684 event/ngx_event_pipe.c if (p->buf_to_file) { p 685 event/ngx_event_pipe.c fl.buf = p->buf_to_file; p 686 event/ngx_event_pipe.c fl.next = p->in; p 690 event/ngx_event_pipe.c out = p->in; p 693 event/ngx_event_pipe.c if (!p->cacheable) { p 699 event/ngx_event_pipe.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, p 700 event/ngx_event_pipe.c "pipe offset: %O", p->temp_file->offset); p 705 event/ngx_event_pipe.c ngx_log_debug3(NGX_LOG_DEBUG_EVENT, p->log, 0, p 709 event/ngx_event_pipe.c if ((size + bsize > p->temp_file_write_size) p 710 event/ngx_event_pipe.c || (p->temp_file->offset + size + bsize > p->max_temp_file_size)) p 721 event/ngx_event_pipe.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, "size: %z", size); p 728 event/ngx_event_pipe.c p->in = cl; p 732 event/ngx_event_pipe.c p->in = NULL; p 733 event/ngx_event_pipe.c p->last_in = &p->in; p 737 event/ngx_event_pipe.c p->in = NULL; p 738 event/ngx_event_pipe.c p->last_in = &p->in; p 741 event/ngx_event_pipe.c if (ngx_write_chain_to_temp_file(p->temp_file, out) == NGX_ERROR) { p 745 event/ngx_event_pipe.c for (last_free = &p->free_raw_bufs; p 752 event/ngx_event_pipe.c if (p->buf_to_file) { p 753 event/ngx_event_pipe.c p->temp_file->offset = p->buf_to_file->last - p->buf_to_file->pos; p 754 event/ngx_event_pipe.c p->buf_to_file = NULL; p 763 event/ngx_event_pipe.c b->file = &p->temp_file->file; p 764 event/ngx_event_pipe.c b->file_pos = p->temp_file->offset; p 765 event/ngx_event_pipe.c p->temp_file->offset += b->last - b->pos; p 766 event/ngx_event_pipe.c b->file_last = p->temp_file->offset; p 771 event/ngx_event_pipe.c if (p->out) { p 772 event/ngx_event_pipe.c *p->last_out = cl; p 774 event/ngx_event_pipe.c p->out = cl; p 776 event/ngx_event_pipe.c p->last_out = &cl->next; p 780 event/ngx_event_pipe.c tl = ngx_alloc_chain_link(p->pool); p 805 event/ngx_event_pipe.c ngx_event_pipe_copy_input_filter(ngx_event_pipe_t *p, ngx_buf_t *buf) p 814 event/ngx_event_pipe.c if (p->free) { p 815 event/ngx_event_pipe.c cl = p->free; p 817 event/ngx_event_pipe.c p->free = cl->next; p 818 event/ngx_event_pipe.c ngx_free_chain(p->pool, cl); p 821 event/ngx_event_pipe.c b = ngx_alloc_buf(p->pool); p 829 event/ngx_event_pipe.c b->tag = p->tag; p 834 event/ngx_event_pipe.c cl = ngx_alloc_chain_link(p->pool); p 842 event/ngx_event_pipe.c ngx_log_debug1(NGX_LOG_DEBUG_EVENT, p->log, 0, "input buf #%d", b->num); p 844 event/ngx_event_pipe.c if (p->in) { p 845 event/ngx_event_pipe.c *p->last_in = cl; p 847 event/ngx_event_pipe.c p->in = cl; p 849 event/ngx_event_pipe.c p->last_in = &cl->next; p 916 event/ngx_event_pipe.c ngx_event_pipe_add_free_buf(ngx_event_pipe_t *p, ngx_buf_t *b) p 920 event/ngx_event_pipe.c cl = ngx_alloc_chain_link(p->pool); p 931 event/ngx_event_pipe.c if (p->free_raw_bufs == NULL) { p 932 event/ngx_event_pipe.c p->free_raw_bufs = cl; p 938 event/ngx_event_pipe.c if (p->free_raw_bufs->buf->pos == p->free_raw_bufs->buf->last) { p 942 event/ngx_event_pipe.c cl->next = p->free_raw_bufs; p 943 event/ngx_event_pipe.c p->free_raw_bufs = cl; p 950 event/ngx_event_pipe.c cl->next = p->free_raw_bufs->next; p 951 event/ngx_event_pipe.c p->free_raw_bufs->next = cl; p 958 event/ngx_event_pipe.c ngx_event_pipe_drain_chains(ngx_event_pipe_t *p) p 963 event/ngx_event_pipe.c if (p->busy) { p 964 event/ngx_event_pipe.c cl = p->busy; p 965 event/ngx_event_pipe.c p->busy = NULL; p 967 event/ngx_event_pipe.c } else if (p->out) { p 968 event/ngx_event_pipe.c cl = p->out; p 969 event/ngx_event_pipe.c p->out = NULL; p 971 event/ngx_event_pipe.c } else if (p->in) { p 972 event/ngx_event_pipe.c cl = p->in; p 973 event/ngx_event_pipe.c p->in = NULL; p 981 event/ngx_event_pipe.c if (ngx_event_pipe_add_free_buf(p, cl->buf->shadow) != NGX_OK) { p 990 event/ngx_event_pipe.c cl->next = p->free; p 991 event/ngx_event_pipe.c p->free = cl; p 18 event/ngx_event_pipe.h typedef ngx_int_t (*ngx_event_pipe_input_filter_pt)(ngx_event_pipe_t *p, p 89 event/ngx_event_pipe.h ngx_int_t ngx_event_pipe(ngx_event_pipe_t *p, ngx_int_t do_write); p 90 event/ngx_event_pipe.h ngx_int_t ngx_event_pipe_copy_input_filter(ngx_event_pipe_t *p, ngx_buf_t *buf); p 91 event/ngx_event_pipe.h ngx_int_t ngx_event_pipe_add_free_buf(ngx_event_pipe_t *p, ngx_buf_t *b); p 41 http/modules/ngx_http_access_module.c ngx_http_access_loc_conf_t *alcf, u_char *p); p 117 http/modules/ngx_http_access_module.c u_char *p; p 122 http/modules/ngx_http_access_module.c p = sin6->sin6_addr.s6_addr; p 125 http/modules/ngx_http_access_module.c addr = p[12] << 24; p 126 http/modules/ngx_http_access_module.c addr += p[13] << 16; p 127 http/modules/ngx_http_access_module.c addr += p[14] << 8; p 128 http/modules/ngx_http_access_module.c addr += p[15]; p 132 http/modules/ngx_http_access_module.c return ngx_http_access_inet6(r, alcf, p); p 173 http/modules/ngx_http_access_module.c u_char *p) p 189 http/modules/ngx_http_access_module.c cl = ngx_inet6_ntop(p, ct, NGX_INET6_ADDRSTRLEN); p 199 http/modules/ngx_http_access_module.c if ((p[n] & rule6[i].mask.s6_addr[n]) != rule6[i].addr.s6_addr[n]) { p 424 http/modules/ngx_http_auth_basic_module.c u_char *basic, *p; p 438 http/modules/ngx_http_auth_basic_module.c p = ngx_cpymem(basic, "Basic realm=\"", sizeof("Basic realm=\"") - 1); p 439 http/modules/ngx_http_auth_basic_module.c p = ngx_cpymem(p, realm->data, realm->len); p 440 http/modules/ngx_http_auth_basic_module.c *p = '"'; p 649 http/modules/ngx_http_charset_filter_module.c u_char *p, *last; p 653 http/modules/ngx_http_charset_filter_module.c for (p = b->pos; p < last; p++) { p 655 http/modules/ngx_http_charset_filter_module.c if (*p != table[*p]) { p 665 http/modules/ngx_http_charset_filter_module.c if (*p != table[*p]) { p 666 http/modules/ngx_http_charset_filter_module.c *p = table[*p]; p 669 http/modules/ngx_http_charset_filter_module.c p++; p 671 http/modules/ngx_http_charset_filter_module.c } while (p < last); p 684 http/modules/ngx_http_charset_filter_module.c u_char c, *p, *src, *dst, *saved, **table; p 781 http/modules/ngx_http_charset_filter_module.c p = src; p 784 http/modules/ngx_http_charset_filter_module.c ctx->saved[i] = *p++; p 786 http/modules/ngx_http_charset_filter_module.c if (p == buf->last) { p 798 http/modules/ngx_http_charset_filter_module.c p = table[n >> 8]; p 800 http/modules/ngx_http_charset_filter_module.c if (p) { p 801 http/modules/ngx_http_charset_filter_module.c c = p[n & 0xff]; p 904 http/modules/ngx_http_charset_filter_module.c p = table[n >> 8]; p 906 http/modules/ngx_http_charset_filter_module.c if (p) { p 907 http/modules/ngx_http_charset_filter_module.c c = p[n & 0xff]; p 965 http/modules/ngx_http_charset_filter_module.c u_char *p, *src, *dst, *table; p 1048 http/modules/ngx_http_charset_filter_module.c p = &table[*src++ * NGX_UTF_LEN]; p 1049 http/modules/ngx_http_charset_filter_module.c len = *p++; p 1070 http/modules/ngx_http_charset_filter_module.c *dst++ = *p++; p 1171 http/modules/ngx_http_charset_filter_module.c u_char *p, *dst2src, **pp; p 1239 http/modules/ngx_http_charset_filter_module.c p = &table->src2dst[i * NGX_UTF_LEN]; p 1240 http/modules/ngx_http_charset_filter_module.c p[0] = '\1'; p 1241 http/modules/ngx_http_charset_filter_module.c p[1] = (u_char) i; p 1246 http/modules/ngx_http_charset_filter_module.c p = &table->src2dst[i * NGX_UTF_LEN]; p 1247 http/modules/ngx_http_charset_filter_module.c p[0] = '\1'; p 1248 http/modules/ngx_http_charset_filter_module.c p[1] = '?'; p 1304 http/modules/ngx_http_charset_filter_module.c u_char *p, *dst2src, **pp; p 1330 http/modules/ngx_http_charset_filter_module.c p = &table->src2dst[src * NGX_UTF_LEN]; p 1332 http/modules/ngx_http_charset_filter_module.c *p++ = (u_char) (value[1].len / 2); p 1342 http/modules/ngx_http_charset_filter_module.c *p++ = (u_char) dst; p 1350 http/modules/ngx_http_charset_filter_module.c p = &table->src2dst[src * NGX_UTF_LEN] + 1; p 1352 http/modules/ngx_http_charset_filter_module.c n = ngx_utf8_decode(&p, i); p 1394 http/modules/ngx_http_charset_filter_module.c char *p = conf; p 1400 http/modules/ngx_http_charset_filter_module.c cp = (ngx_int_t *) (p + cmd->offset); p 470 http/modules/ngx_http_dav_module.c u_char *p; p 486 http/modules/ngx_http_dav_module.c p = ngx_http_map_uri_to_path(r, &path, &root, 0); p 488 http/modules/ngx_http_dav_module.c *(p - 1) = '\0'; p 512 http/modules/ngx_http_dav_module.c u_char *p, *host, *last, ch; p 538 http/modules/ngx_http_dav_module.c p = dest->value.data; p 540 http/modules/ngx_http_dav_module.c if (p[0] == '/') { p 541 http/modules/ngx_http_dav_module.c last = p + dest->value.len; p 586 http/modules/ngx_http_dav_module.c for (p = host + len; p < last; p++) { p 587 http/modules/ngx_http_dav_module.c if (*p == '/') { p 601 http/modules/ngx_http_dav_module.c duri.len = last - p; p 602 http/modules/ngx_http_dav_module.c duri.data = p; p 833 http/modules/ngx_http_dav_module.c u_char *p, *dir; p 849 http/modules/ngx_http_dav_module.c p = ngx_cpymem(dir, copy->path.data, copy->path.len); p 850 http/modules/ngx_http_dav_module.c (void) ngx_cpystrn(p, path->data + copy->len, path->len - copy->len + 1); p 869 http/modules/ngx_http_dav_module.c u_char *p, *dir; p 885 http/modules/ngx_http_dav_module.c p = ngx_cpymem(dir, copy->path.data, copy->path.len); p 886 http/modules/ngx_http_dav_module.c (void) ngx_cpystrn(p, path->data + copy->len, path->len - copy->len + 1); p 933 http/modules/ngx_http_dav_module.c u_char *p, *file; p 950 http/modules/ngx_http_dav_module.c p = ngx_cpymem(file, copy->path.data, copy->path.len); p 951 http/modules/ngx_http_dav_module.c (void) ngx_cpystrn(p, path->data + copy->len, path->len - copy->len + 1); p 133 http/modules/ngx_http_fastcgi_module.c static ngx_int_t ngx_http_fastcgi_input_filter(ngx_event_pipe_t *p, p 1137 http/modules/ngx_http_fastcgi_module.c u_char *p, *msg, *start, *last, p 1236 http/modules/ngx_http_fastcgi_module.c for (p = u->buffer.pos - 1; msg < p; p--) { p 1237 http/modules/ngx_http_fastcgi_module.c if (*p != LF && *p != CR && *p != '.' && *p != ' ') { p 1242 http/modules/ngx_http_fastcgi_module.c p++; p 1245 http/modules/ngx_http_fastcgi_module.c "FastCGI sent in stderr: \"%*s\"", p - msg, msg); p 1254 http/modules/ngx_http_fastcgi_module.c p - msg) p 1388 http/modules/ngx_http_fastcgi_module.c p = ngx_pnalloc(r->pool, size); p 1389 http/modules/ngx_http_fastcgi_module.c if (p == NULL) { p 1393 http/modules/ngx_http_fastcgi_module.c buf.pos = p; p 1396 http/modules/ngx_http_fastcgi_module.c p = ngx_cpymem(p, part[i].start, p 1400 http/modules/ngx_http_fastcgi_module.c p = ngx_cpymem(p, part_start, u->buffer.pos - part_start); p 1402 http/modules/ngx_http_fastcgi_module.c buf.last = p; p 1569 http/modules/ngx_http_fastcgi_module.c ngx_http_fastcgi_input_filter(ngx_event_pipe_t *p, ngx_buf_t *buf) p 1582 http/modules/ngx_http_fastcgi_module.c r = p->input_ctx; p 1606 http/modules/ngx_http_fastcgi_module.c p->upstream_done = 1; p 1608 http/modules/ngx_http_fastcgi_module.c ngx_log_debug0(NGX_LOG_DEBUG_HTTP, p->log, 0, p 1616 http/modules/ngx_http_fastcgi_module.c p->upstream_done = 1; p 1618 http/modules/ngx_http_fastcgi_module.c ngx_log_debug0(NGX_LOG_DEBUG_HTTP, p->log, 0, p 1675 http/modules/ngx_http_fastcgi_module.c ngx_log_error(NGX_LOG_ERR, p->log, 0, p 1697 http/modules/ngx_http_fastcgi_module.c if (p->free) { p 1698 http/modules/ngx_http_fastcgi_module.c b = p->free->buf; p 1699 http/modules/ngx_http_fastcgi_module.c p->free = p->free->next; p 1702 http/modules/ngx_http_fastcgi_module.c b = ngx_alloc_buf(p->pool); p 1713 http/modules/ngx_http_fastcgi_module.c b->tag = p->tag; p 1720 http/modules/ngx_http_fastcgi_module.c cl = ngx_alloc_chain_link(p->pool); p 1728 http/modules/ngx_http_fastcgi_module.c if (p->in) { p 1729 http/modules/ngx_http_fastcgi_module.c *p->last_in = cl; p 1731 http/modules/ngx_http_fastcgi_module.c p->in = cl; p 1733 http/modules/ngx_http_fastcgi_module.c p->last_in = &cl->next; p 1738 http/modules/ngx_http_fastcgi_module.c ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0, p 1780 http/modules/ngx_http_fastcgi_module.c ngx_log_debug2(NGX_LOG_DEBUG_EVENT, p->log, 0, p 1788 http/modules/ngx_http_fastcgi_module.c if (ngx_event_pipe_add_free_buf(p, buf) != NGX_OK) { p 1800 http/modules/ngx_http_fastcgi_module.c u_char ch, *p; p 1805 http/modules/ngx_http_fastcgi_module.c for (p = f->pos; p < f->last; p++) { p 1807 http/modules/ngx_http_fastcgi_module.c ch = *p; p 1884 http/modules/ngx_http_fastcgi_module.c f->pos = p + 1; p 2016 http/modules/ngx_http_fastcgi_module.c u_char *p; p 2407 http/modules/ngx_http_fastcgi_module.c p = (u_char *) copy + sizeof(ngx_http_script_copy_code_t); p 2408 http/modules/ngx_http_fastcgi_module.c ngx_memcpy(p, src[i].key.data, src[i].key.len); p 2470 http/modules/ngx_http_fastcgi_module.c u_char *p; p 2501 http/modules/ngx_http_fastcgi_module.c p = ngx_copy(v->data, f->script_name.data, f->script_name.len); p 2502 http/modules/ngx_http_fastcgi_module.c ngx_memcpy(p, flcf->index.data, flcf->index.len); p 93 http/modules/ngx_http_geo_module.c static u_char *ngx_http_geo_copy_values(u_char *base, u_char *p, p 214 http/modules/ngx_http_geo_module.c u_char *p, *ip; p 238 http/modules/ngx_http_geo_module.c for (p = ip + len - 1; p > ip; p--) { p 239 http/modules/ngx_http_geo_module.c if (*p == ' ' || *p == ',') { p 240 http/modules/ngx_http_geo_module.c p++; p 241 http/modules/ngx_http_geo_module.c len -= p - ip; p 242 http/modules/ngx_http_geo_module.c ip = p; p 293 http/modules/ngx_http_geo_module.c void **p; p 384 http/modules/ngx_http_geo_module.c p = (void **) ngx_cpymem(ctx.high.low[i], a->elts, len); p 385 http/modules/ngx_http_geo_module.c *p = NULL; p 521 http/modules/ngx_http_geo_module.c u_char *p, *last; p 571 http/modules/ngx_http_geo_module.c p = ngx_strlchr(net->data, last, '-'); p 573 http/modules/ngx_http_geo_module.c if (p == NULL) { p 577 http/modules/ngx_http_geo_module.c start = ngx_inet_addr(net->data, p - net->data); p 585 http/modules/ngx_http_geo_module.c p++; p 587 http/modules/ngx_http_geo_module.c end = ngx_inet_addr(p, last - p); p 1315 http/modules/ngx_http_geo_module.c u_char *p; p 1341 http/modules/ngx_http_geo_module.c p = ngx_cpymem(fm.addr, &ngx_http_geo_header, p 1344 http/modules/ngx_http_geo_module.c p = ngx_http_geo_copy_values(fm.addr, p, ctx->rbtree.root, p 1347 http/modules/ngx_http_geo_module.c p += sizeof(ngx_http_variable_value_t); p 1349 http/modules/ngx_http_geo_module.c ranges = (ngx_http_geo_range_t **) p; p 1351 http/modules/ngx_http_geo_module.c p += 0x10000 * sizeof(ngx_http_geo_range_t *); p 1359 http/modules/ngx_http_geo_module.c range = (ngx_http_geo_range_t *) p; p 1360 http/modules/ngx_http_geo_module.c ranges[i] = (ngx_http_geo_range_t *) (p - (u_char *) fm.addr); p 1378 http/modules/ngx_http_geo_module.c p = (u_char *) range + sizeof(void *); p 1391 http/modules/ngx_http_geo_module.c ngx_http_geo_copy_values(u_char *base, u_char *p, ngx_rbtree_node_t *node, p 1398 http/modules/ngx_http_geo_module.c return p; p 1402 http/modules/ngx_http_geo_module.c gvvn->offset = p - base; p 1404 http/modules/ngx_http_geo_module.c vv = (ngx_http_variable_value_t *) p; p 1406 http/modules/ngx_http_geo_module.c p += sizeof(ngx_http_variable_value_t); p 1407 http/modules/ngx_http_geo_module.c vv->data = (u_char *) (p - base); p 1409 http/modules/ngx_http_geo_module.c p = ngx_cpymem(p, gvvn->sn.str.data, gvvn->sn.str.len); p 1411 http/modules/ngx_http_geo_module.c p = ngx_align_ptr(p, sizeof(void *)); p 1413 http/modules/ngx_http_geo_module.c p = ngx_http_geo_copy_values(base, p, node->left, sentinel); p 1415 http/modules/ngx_http_geo_module.c return ngx_http_geo_copy_values(base, p, node->right, sentinel); p 961 http/modules/ngx_http_gzip_filter_module.c void *p; p 977 http/modules/ngx_http_gzip_filter_module.c p = ctx->free_mem; p 983 http/modules/ngx_http_gzip_filter_module.c items, size, alloc, p); p 985 http/modules/ngx_http_gzip_filter_module.c return p; p 992 http/modules/ngx_http_gzip_filter_module.c p = ngx_palloc(ctx->request->pool, items * size); p 994 http/modules/ngx_http_gzip_filter_module.c return p; p 71 http/modules/ngx_http_gzip_static_module.c u_char *p; p 108 http/modules/ngx_http_gzip_static_module.c p = ngx_http_map_uri_to_path(r, &path, &root, sizeof(".gz") - 1); p 109 http/modules/ngx_http_gzip_static_module.c if (p == NULL) { p 113 http/modules/ngx_http_gzip_static_module.c *p++ = '.'; p 114 http/modules/ngx_http_gzip_static_module.c *p++ = 'g'; p 115 http/modules/ngx_http_gzip_static_module.c *p++ = 'z'; p 116 http/modules/ngx_http_gzip_static_module.c *p = '\0'; p 118 http/modules/ngx_http_gzip_static_module.c path.len = p - path.data; p 393 http/modules/ngx_http_image_filter_module.c u_char *p; p 395 http/modules/ngx_http_image_filter_module.c p = in->buf->pos; p 397 http/modules/ngx_http_image_filter_module.c if (in->buf->last - p < 16) { p 402 http/modules/ngx_http_image_filter_module.c "image filter: \"%c%c\"", p[0], p[1]); p 404 http/modules/ngx_http_image_filter_module.c if (p[0] == 0xff && p[1] == 0xd8) { p 410 http/modules/ngx_http_image_filter_module.c } else if (p[0] == 'G' && p[1] == 'I' && p[2] == 'F' && p[3] == '8' p 411 http/modules/ngx_http_image_filter_module.c && p[5] == 'a') p 413 http/modules/ngx_http_image_filter_module.c if (p[4] == '9' || p[4] == '7') { p 418 http/modules/ngx_http_image_filter_module.c } else if (p[0] == 0x89 && p[1] == 'P' && p[2] == 'N' && p[3] == 'G' p 419 http/modules/ngx_http_image_filter_module.c && p[4] == 0x0d && p[5] == 0x0a && p[6] == 0x1a && p[7] == 0x0a) p 433 http/modules/ngx_http_image_filter_module.c u_char *p; p 450 http/modules/ngx_http_image_filter_module.c p = ctx->last; p 460 http/modules/ngx_http_image_filter_module.c rest = ctx->image + ctx->length - p; p 463 http/modules/ngx_http_image_filter_module.c p = ngx_cpymem(p, b->pos, size); p 467 http/modules/ngx_http_image_filter_module.c ctx->last = p; p 472 http/modules/ngx_http_image_filter_module.c ctx->last = p; p 622 http/modules/ngx_http_image_filter_module.c u_char *p, *last; p 626 http/modules/ngx_http_image_filter_module.c p = ctx->image; p 632 http/modules/ngx_http_image_filter_module.c p += 2; p 638 http/modules/ngx_http_image_filter_module.c while (p < last) { p 640 http/modules/ngx_http_image_filter_module.c if (p[0] == 0xff && p[1] != 0xff) { p 643 http/modules/ngx_http_image_filter_module.c "JPEG: %02xd %02xd", p[0], p[1]); p 645 http/modules/ngx_http_image_filter_module.c p++; p 647 http/modules/ngx_http_image_filter_module.c if ((*p == 0xc0 || *p == 0xc1 || *p == 0xc2 || *p == 0xc3 p 648 http/modules/ngx_http_image_filter_module.c || *p == 0xc9 || *p == 0xca || *p == 0xcb) p 651 http/modules/ngx_http_image_filter_module.c width = p[6] * 256 + p[7]; p 652 http/modules/ngx_http_image_filter_module.c height = p[4] * 256 + p[5]; p 656 http/modules/ngx_http_image_filter_module.c "JPEG: %02xd %02xd", p[1], p[2]); p 658 http/modules/ngx_http_image_filter_module.c len = p[1] * 256 + p[2]; p 660 http/modules/ngx_http_image_filter_module.c if (*p >= 0xe1 && *p <= 0xef) { p 665 http/modules/ngx_http_image_filter_module.c p += len; p 670 http/modules/ngx_http_image_filter_module.c p++; p 692 http/modules/ngx_http_image_filter_module.c width = p[7] * 256 + p[6]; p 693 http/modules/ngx_http_image_filter_module.c height = p[9] * 256 + p[8]; p 703 http/modules/ngx_http_image_filter_module.c width = p[18] * 256 + p[19]; p 704 http/modules/ngx_http_image_filter_module.c height = p[22] * 256 + p[23]; p 98 http/modules/ngx_http_index_module.c u_char *p, *name; p 260 http/modules/ngx_http_index_module.c p = ngx_copy(uri.data, r->uri.data, r->uri.len); p 261 http/modules/ngx_http_index_module.c ngx_memcpy(p, name, len - 1); p 306 http/modules/ngx_http_limit_req_module.c ngx_rbtree_node_t **p; p 313 http/modules/ngx_http_limit_req_module.c p = &temp->left; p 317 http/modules/ngx_http_limit_req_module.c p = &temp->right; p 324 http/modules/ngx_http_limit_req_module.c p = (ngx_memn2cmp(lrn->data, lrnt->data, lrn->len, lrnt->len) < 0) p 328 http/modules/ngx_http_limit_req_module.c if (*p == sentinel) { p 332 http/modules/ngx_http_limit_req_module.c temp = *p; p 335 http/modules/ngx_http_limit_req_module.c *p = node; p 588 http/modules/ngx_http_limit_req_module.c u_char *p; p 610 http/modules/ngx_http_limit_req_module.c p = (u_char *) ngx_strchr(name.data, ':'); p 612 http/modules/ngx_http_limit_req_module.c if (p) { p 613 http/modules/ngx_http_limit_req_module.c *p = '\0'; p 615 http/modules/ngx_http_limit_req_module.c name.len = p - name.data; p 617 http/modules/ngx_http_limit_req_module.c p++; p 619 http/modules/ngx_http_limit_req_module.c s.len = value[i].data + value[i].len - p; p 620 http/modules/ngx_http_limit_req_module.c s.data = p; p 636 http/modules/ngx_http_limit_req_module.c p = value[i].data + len - 3; p 638 http/modules/ngx_http_limit_req_module.c if (ngx_strncmp(p, "r/s", 3) == 0) { p 642 http/modules/ngx_http_limit_req_module.c } else if (ngx_strncmp(p, "r/m", 3) == 0) { p 263 http/modules/ngx_http_limit_zone_module.c ngx_rbtree_node_t **p; p 270 http/modules/ngx_http_limit_zone_module.c p = &temp->left; p 274 http/modules/ngx_http_limit_zone_module.c p = &temp->right; p 281 http/modules/ngx_http_limit_zone_module.c p = (ngx_memn2cmp(lzn->data, lznt->data, lzn->len, lznt->len) < 0) p 285 http/modules/ngx_http_limit_zone_module.c if (*p == sentinel) { p 289 http/modules/ngx_http_limit_zone_module.c temp = *p; p 292 http/modules/ngx_http_limit_zone_module.c *p = node; p 219 http/modules/ngx_http_log_module.c u_char *line, *p; p 279 http/modules/ngx_http_log_module.c p = file->pos; p 282 http/modules/ngx_http_log_module.c p = op[i].run(r, p, &op[i]); p 285 http/modules/ngx_http_log_module.c ngx_linefeed(p); p 287 http/modules/ngx_http_log_module.c file->pos = p; p 298 http/modules/ngx_http_log_module.c p = line; p 301 http/modules/ngx_http_log_module.c p = op[i].run(r, p, &op[i]); p 304 http/modules/ngx_http_log_module.c ngx_linefeed(p); p 306 http/modules/ngx_http_log_module.c ngx_http_log_write(r, &log[l], line, p - line); p 1046 http/modules/ngx_http_log_module.c u_char *data, *p, ch; p 1203 http/modules/ngx_http_log_module.c p = ngx_pnalloc(cf->pool, len); p 1204 http/modules/ngx_http_log_module.c if (p == NULL) { p 1208 http/modules/ngx_http_log_module.c ngx_memcpy(p, data, len); p 1209 http/modules/ngx_http_log_module.c op->data = (uintptr_t) p; p 283 http/modules/ngx_http_memcached_module.c u_char *p, *len; p 290 http/modules/ngx_http_memcached_module.c for (p = u->buffer.pos; p < u->buffer.last; p++) { p 291 http/modules/ngx_http_memcached_module.c if (*p == LF) { p 300 http/modules/ngx_http_memcached_module.c *p = '\0'; p 302 http/modules/ngx_http_memcached_module.c line.len = p - u->buffer.pos - 1; p 308 http/modules/ngx_http_memcached_module.c p = u->buffer.pos; p 312 http/modules/ngx_http_memcached_module.c if (ngx_strncmp(p, "VALUE ", sizeof("VALUE ") - 1) == 0) { p 314 http/modules/ngx_http_memcached_module.c p += sizeof("VALUE ") - 1; p 316 http/modules/ngx_http_memcached_module.c if (ngx_strncmp(p, ctx->key.data, ctx->key.len) != 0) { p 325 http/modules/ngx_http_memcached_module.c p += ctx->key.len; p 327 http/modules/ngx_http_memcached_module.c if (*p++ != ' ') { p 333 http/modules/ngx_http_memcached_module.c while (*p) { p 334 http/modules/ngx_http_memcached_module.c if (*p++ == ' ') { p 343 http/modules/ngx_http_memcached_module.c len = p; p 345 http/modules/ngx_http_memcached_module.c while (*p && *p++ != CR) { /* void */ } p 347 http/modules/ngx_http_memcached_module.c r->headers_out.content_length_n = ngx_atoof(len, p - len - 1); p 358 http/modules/ngx_http_memcached_module.c u->buffer.pos = p + 1; p 363 http/modules/ngx_http_memcached_module.c if (ngx_strcmp(p, "END\x0d") == 0) { p 631 http/modules/ngx_http_proxy_module.c u_char *p; p 690 http/modules/ngx_http_proxy_module.c p = ngx_pnalloc(r->pool, url.uri.len + 1); p 691 http/modules/ngx_http_proxy_module.c if (p == NULL) { p 695 http/modules/ngx_http_proxy_module.c *p++ = '/'; p 696 http/modules/ngx_http_proxy_module.c ngx_memcpy(p, url.uri.data, url.uri.len); p 699 http/modules/ngx_http_proxy_module.c url.uri.data = p - 1; p 737 http/modules/ngx_http_proxy_module.c u_char *p; p 798 http/modules/ngx_http_proxy_module.c p = ngx_pnalloc(r->pool, len); p 799 http/modules/ngx_http_proxy_module.c if (p == NULL) { p 803 http/modules/ngx_http_proxy_module.c key->data = p; p 806 http/modules/ngx_http_proxy_module.c p = ngx_copy(p, ctx->vars.uri.data, ctx->vars.uri.len); p 810 http/modules/ngx_http_proxy_module.c ngx_escape_uri(p, r->uri.data + loc_len, p 812 http/modules/ngx_http_proxy_module.c p += r->uri.len - loc_len + escape; p 815 http/modules/ngx_http_proxy_module.c p = ngx_copy(p, r->uri.data + loc_len, r->uri.len - loc_len); p 819 http/modules/ngx_http_proxy_module.c *p++ = '?'; p 820 http/modules/ngx_http_proxy_module.c p = ngx_copy(p, r->args.data, r->args.len); p 823 http/modules/ngx_http_proxy_module.c key->len = p - key->data; p 1429 http/modules/ngx_http_proxy_module.c u_char *p; p 1444 http/modules/ngx_http_proxy_module.c p = ngx_pnalloc(r->pool, v->len); p 1445 http/modules/ngx_http_proxy_module.c if (p == NULL) { p 1449 http/modules/ngx_http_proxy_module.c v->data = p; p 1451 http/modules/ngx_http_proxy_module.c p = ngx_copy(p, r->headers_in.x_forwarded_for->value.data, p 1454 http/modules/ngx_http_proxy_module.c *p++ = ','; *p++ = ' '; p 1456 http/modules/ngx_http_proxy_module.c ngx_memcpy(p, r->connection->addr_text.data, r->connection->addr_text.len); p 1525 http/modules/ngx_http_proxy_module.c u_char *data, *p; p 1541 http/modules/ngx_http_proxy_module.c p = ngx_copy(data, h->value.data, prefix); p 1544 http/modules/ngx_http_proxy_module.c p = ngx_copy(p, pr->replacement.text.data, pr->replacement.text.len); p 1547 http/modules/ngx_http_proxy_module.c ngx_memcpy(p, h->value.data + prefix + pr->redirect.len, p 1562 http/modules/ngx_http_proxy_module.c u_char *data, *p; p 1591 http/modules/ngx_http_proxy_module.c p = ngx_copy(data, h->value.data, prefix); p 1594 http/modules/ngx_http_proxy_module.c e.pos = p; p 1720 http/modules/ngx_http_proxy_module.c u_char *p; p 1987 http/modules/ngx_http_proxy_module.c p = ngx_pnalloc(cf->pool, pr->redirect.len); p 1988 http/modules/ngx_http_proxy_module.c if (p == NULL) { p 1992 http/modules/ngx_http_proxy_module.c pr->redirect.data = p; p 1994 http/modules/ngx_http_proxy_module.c p = ngx_cpymem(p, conf->url.data, conf->url.len); p 1995 http/modules/ngx_http_proxy_module.c *p = '/'; p 2097 http/modules/ngx_http_proxy_module.c u_char *p; p 2230 http/modules/ngx_http_proxy_module.c p = (u_char *) copy + sizeof(ngx_http_script_copy_code_t); p 2232 http/modules/ngx_http_proxy_module.c p = ngx_cpymem(p, src[i].key.data, src[i].key.len); p 2233 http/modules/ngx_http_proxy_module.c *p++ = ':'; *p++ = ' '; p 2234 http/modules/ngx_http_proxy_module.c p = ngx_cpymem(p, src[i].value.data, src[i].value.len); p 2235 http/modules/ngx_http_proxy_module.c *p++ = CR; *p = LF; p 2261 http/modules/ngx_http_proxy_module.c p = (u_char *) copy + sizeof(ngx_http_script_copy_code_t); p 2262 http/modules/ngx_http_proxy_module.c p = ngx_cpymem(p, src[i].key.data, src[i].key.len); p 2263 http/modules/ngx_http_proxy_module.c *p++ = ':'; *p = ' '; p 2302 http/modules/ngx_http_proxy_module.c p = (u_char *) copy + sizeof(ngx_http_script_copy_code_t); p 2303 http/modules/ngx_http_proxy_module.c *p++ = CR; *p = LF; p 2472 http/modules/ngx_http_proxy_module.c u_char *p; p 2543 http/modules/ngx_http_proxy_module.c p = ngx_pnalloc(cf->pool, pr->redirect.len); p 2544 http/modules/ngx_http_proxy_module.c if (p == NULL) { p 2548 http/modules/ngx_http_proxy_module.c pr->redirect.data = p; p 2550 http/modules/ngx_http_proxy_module.c p = ngx_cpymem(p, plcf->url.data, plcf->url.len); p 2551 http/modules/ngx_http_proxy_module.c *p = '/'; p 237 http/modules/ngx_http_range_filter_module.c u_char *p; p 242 http/modules/ngx_http_range_filter_module.c p = r->headers_in.range->value.data + 6; p 249 http/modules/ngx_http_range_filter_module.c while (*p == ' ') { p++; } p 251 http/modules/ngx_http_range_filter_module.c if (*p != '-') { p 252 http/modules/ngx_http_range_filter_module.c if (*p < '0' || *p > '9') { p 256 http/modules/ngx_http_range_filter_module.c while (*p >= '0' && *p <= '9') { p 257 http/modules/ngx_http_range_filter_module.c start = start * 10 + *p++ - '0'; p 260 http/modules/ngx_http_range_filter_module.c while (*p == ' ') { p++; } p 262 http/modules/ngx_http_range_filter_module.c if (*p++ != '-') { p 270 http/modules/ngx_http_range_filter_module.c while (*p == ' ') { p++; } p 272 http/modules/ngx_http_range_filter_module.c if (*p == ',' || *p == '\0') { p 281 http/modules/ngx_http_range_filter_module.c if (*p++ != ',') { p 290 http/modules/ngx_http_range_filter_module.c p++; p 293 http/modules/ngx_http_range_filter_module.c if (*p < '0' || *p > '9') { p 297 http/modules/ngx_http_range_filter_module.c while (*p >= '0' && *p <= '9') { p 298 http/modules/ngx_http_range_filter_module.c end = end * 10 + *p++ - '0'; p 301 http/modules/ngx_http_range_filter_module.c while (*p == ' ') { p++; } p 303 http/modules/ngx_http_range_filter_module.c if (*p != ',' && *p != '\0') { p 334 http/modules/ngx_http_range_filter_module.c if (*p++ != ',') { p 110 http/modules/ngx_http_realip_module.c u_char *ip, *p; p 160 http/modules/ngx_http_realip_module.c for (p = ip + len - 1; p > ip; p--) { p 161 http/modules/ngx_http_realip_module.c if (*p == ' ' || *p == ',') { p 162 http/modules/ngx_http_realip_module.c p++; p 163 http/modules/ngx_http_realip_module.c len -= p - ip; p 164 http/modules/ngx_http_realip_module.c ip = p; p 178 http/modules/ngx_http_realip_module.c p = rlcf->header.data; p 194 http/modules/ngx_http_realip_module.c && ngx_strncmp(p, header[i].lowcase_key, len) == 0) p 245 http/modules/ngx_http_realip_module.c u_char *p; p 273 http/modules/ngx_http_realip_module.c p = ngx_pnalloc(c->pool, len); p 274 http/modules/ngx_http_realip_module.c if (p == NULL) { p 278 http/modules/ngx_http_realip_module.c ngx_memcpy(p, ip, len); p 290 http/modules/ngx_http_realip_module.c c->addr_text.data = p; p 96 http/modules/ngx_http_referer_module.c u_char *p, *ref, *last; p 151 http/modules/ngx_http_referer_module.c for (p = ref; p < last; p++) { p 152 http/modules/ngx_http_referer_module.c if (*p == '/' || *p == ':') { p 156 http/modules/ngx_http_referer_module.c buf[i] = ngx_tolower(*p); p 164 http/modules/ngx_http_referer_module.c uri = ngx_hash_find_combined(&rlcf->hash, key, buf, p - ref); p 202 http/modules/ngx_http_referer_module.c for ( /* void */ ; p < last; p++) { p 203 http/modules/ngx_http_referer_module.c if (*p == '/') { p 208 http/modules/ngx_http_referer_module.c len = last - p; p 214 http/modules/ngx_http_referer_module.c if (len < uri->len || ngx_strncmp(uri->data, p, uri->len) != 0) { p 359 http/modules/ngx_http_referer_module.c u_char *p; p 451 http/modules/ngx_http_referer_module.c p = (u_char *) ngx_strchr(value[i].data, '/'); p 453 http/modules/ngx_http_referer_module.c if (p) { p 454 http/modules/ngx_http_referer_module.c uri.len = (value[i].data + value[i].len) - p; p 455 http/modules/ngx_http_referer_module.c uri.data = p; p 456 http/modules/ngx_http_referer_module.c value[i].len = p - value[i].data; p 436 http/modules/ngx_http_rewrite_module.c u_char *p; p 453 http/modules/ngx_http_rewrite_module.c p = value[1].data; p 455 http/modules/ngx_http_rewrite_module.c ret->status = ngx_atoi(p, value[1].len); p 460 http/modules/ngx_http_rewrite_module.c && (ngx_strncmp(p, "http://", sizeof("http://") - 1) == 0 p 461 http/modules/ngx_http_rewrite_module.c || ngx_strncmp(p, "https://", sizeof("https://") - 1) == 0 p 462 http/modules/ngx_http_rewrite_module.c || ngx_strncmp(p, "$scheme", sizeof("$scheme") - 1) == 0)) p 633 http/modules/ngx_http_rewrite_module.c u_char *p; p 676 http/modules/ngx_http_rewrite_module.c p = value[cur].data; p 678 http/modules/ngx_http_rewrite_module.c if (len > 1 && p[0] == '$') { p 697 http/modules/ngx_http_rewrite_module.c p = value[cur].data; p 699 http/modules/ngx_http_rewrite_module.c if (len == 1 && p[0] == '=') { p 716 http/modules/ngx_http_rewrite_module.c if (len == 2 && p[0] == '!' && p[1] == '=') { p 732 http/modules/ngx_http_rewrite_module.c if ((len == 1 && p[0] == '~') p 733 http/modules/ngx_http_rewrite_module.c || (len == 2 && p[0] == '~' && p[1] == '*') p 734 http/modules/ngx_http_rewrite_module.c || (len == 2 && p[0] == '!' && p[1] == '~') p 735 http/modules/ngx_http_rewrite_module.c || (len == 3 && p[0] == '!' && p[1] == '~' && p[2] == '*')) p 748 http/modules/ngx_http_rewrite_module.c rc.options = (p[len - 1] == '*') ? NGX_REGEX_CASELESS : 0; p 760 http/modules/ngx_http_rewrite_module.c if (p[0] == '!') { p 772 http/modules/ngx_http_rewrite_module.c } else if ((len == 2 && p[0] == '-') p 773 http/modules/ngx_http_rewrite_module.c || (len == 3 && p[0] == '!' && p[1] == '-')) p 796 http/modules/ngx_http_rewrite_module.c if (p[1] == 'f') { p 801 http/modules/ngx_http_rewrite_module.c if (p[1] == 'd') { p 806 http/modules/ngx_http_rewrite_module.c if (p[1] == 'e') { p 811 http/modules/ngx_http_rewrite_module.c if (p[1] == 'x') { p 816 http/modules/ngx_http_rewrite_module.c if (p[0] == '!') { p 817 http/modules/ngx_http_rewrite_module.c if (p[2] == 'f') { p 822 http/modules/ngx_http_rewrite_module.c if (p[2] == 'd') { p 827 http/modules/ngx_http_rewrite_module.c if (p[2] == 'e') { p 832 http/modules/ngx_http_rewrite_module.c if (p[2] == 'x') { p 1043 http/modules/ngx_http_scgi_module.c u_char *p; p 1414 http/modules/ngx_http_scgi_module.c p = (u_char *) copy + sizeof(ngx_http_script_copy_code_t); p 1415 http/modules/ngx_http_scgi_module.c (void) ngx_cpystrn(p, src[i].key.data, src[i].key.len + 1); p 103 http/modules/ngx_http_secure_link_module.c u_char *p, *last; p 130 http/modules/ngx_http_secure_link_module.c p = ngx_strlchr(val.data, last, ','); p 133 http/modules/ngx_http_secure_link_module.c if (p) { p 134 http/modules/ngx_http_secure_link_module.c val.len = p++ - val.data; p 136 http/modules/ngx_http_secure_link_module.c expires = ngx_atotm(p, last - p); p 148 http/modules/ngx_http_secure_link_module.c ctx->expires.len = last - p; p 149 http/modules/ngx_http_secure_link_module.c ctx->expires.data = p; p 203 http/modules/ngx_http_secure_link_module.c u_char *p, *start, *end, *last; p 210 http/modules/ngx_http_secure_link_module.c p = &r->unparsed_uri.data[1]; p 213 http/modules/ngx_http_secure_link_module.c while (p < last) { p 214 http/modules/ngx_http_secure_link_module.c if (*p++ == '/') { p 215 http/modules/ngx_http_secure_link_module.c start = p; p 224 http/modules/ngx_http_secure_link_module.c while (p < last) { p 225 http/modules/ngx_http_secure_link_module.c if (*p++ == '/') { p 226 http/modules/ngx_http_secure_link_module.c end = p - 1; p 235 http/modules/ngx_http_secure_link_module.c len = last - p; p 242 http/modules/ngx_http_secure_link_module.c ngx_md5_update(&md5, p, len); p 257 http/modules/ngx_http_secure_link_module.c v->data = p; p 972 http/modules/ngx_http_ssi_filter_module.c u_char *p, *value, *last, *copy_end, ch; p 981 http/modules/ngx_http_ssi_filter_module.c for (p = ctx->pos; p < last; p++) { p 983 http/modules/ngx_http_ssi_filter_module.c ch = *p; p 991 http/modules/ngx_http_ssi_filter_module.c copy_end = p; p 998 http/modules/ngx_http_ssi_filter_module.c if (++p == last) { p 1002 http/modules/ngx_http_ssi_filter_module.c ch = *p; p 1006 http/modules/ngx_http_ssi_filter_module.c ctx->pos = p; p 1008 http/modules/ngx_http_ssi_filter_module.c ctx->copy_end = p; p 1034 http/modules/ngx_http_ssi_filter_module.c copy_end = p; p 1038 http/modules/ngx_http_ssi_filter_module.c copy_end = p; p 1054 http/modules/ngx_http_ssi_filter_module.c copy_end = p; p 1060 http/modules/ngx_http_ssi_filter_module.c copy_end = p; p 1076 http/modules/ngx_http_ssi_filter_module.c copy_end = p; p 1082 http/modules/ngx_http_ssi_filter_module.c copy_end = p; p 1093 http/modules/ngx_http_ssi_filter_module.c if (p - ctx->pos < 4) { p 1101 http/modules/ngx_http_ssi_filter_module.c copy_end = p; p 1107 http/modules/ngx_http_ssi_filter_module.c copy_end = p; p 1441 http/modules/ngx_http_ssi_filter_module.c ctx->pos = p + 1; p 1490 http/modules/ngx_http_ssi_filter_module.c ctx->pos = p + 1; p 1510 http/modules/ngx_http_ssi_filter_module.c ctx->pos = p; p 1513 http/modules/ngx_http_ssi_filter_module.c ctx->copy_end = (state == ssi_start_state) ? p : copy_end; p 1574 http/modules/ngx_http_ssi_filter_module.c u_char ch, *p, **value, *data, *part_data; p 1587 http/modules/ngx_http_ssi_filter_module.c p = data; p 1605 http/modules/ngx_http_ssi_filter_module.c p = ngx_copy(data, r->uri.data, prefix); p 1625 http/modules/ngx_http_ssi_filter_module.c *p++ = '\\'; p 1629 http/modules/ngx_http_ssi_filter_module.c *p++ = ch; p 1632 http/modules/ngx_http_ssi_filter_module.c text->len = p - data; p 1730 http/modules/ngx_http_ssi_filter_module.c for (p = part_data; i < text->len; i++) { p 1748 http/modules/ngx_http_ssi_filter_module.c *p++ = '\\'; p 1752 http/modules/ngx_http_ssi_filter_module.c *p++ = ch; p 1755 http/modules/ngx_http_ssi_filter_module.c part_len = p - part_data; p 1797 http/modules/ngx_http_ssi_filter_module.c p = ngx_pnalloc(r->pool, len + ((flags & NGX_HTTP_SSI_ADD_ZERO) ? 1 : 0)); p 1798 http/modules/ngx_http_ssi_filter_module.c if (p == NULL) { p 1803 http/modules/ngx_http_ssi_filter_module.c text->data = p; p 1805 http/modules/ngx_http_ssi_filter_module.c p = ngx_copy(p, r->uri.data, prefix); p 1808 http/modules/ngx_http_ssi_filter_module.c p = ngx_copy(p, value[i], size[i]); p 2098 http/modules/ngx_http_ssi_filter_module.c u_char *p; p 2167 http/modules/ngx_http_ssi_filter_module.c p = value->data; p 2176 http/modules/ngx_http_ssi_filter_module.c p = ngx_pnalloc(r->pool, value->len + len); p 2177 http/modules/ngx_http_ssi_filter_module.c if (p == NULL) { p 2181 http/modules/ngx_http_ssi_filter_module.c (void) ngx_escape_uri(p, value->data, value->len, NGX_ESCAPE_HTML); p 2191 http/modules/ngx_http_ssi_filter_module.c p = ngx_pnalloc(r->pool, value->len + len); p 2192 http/modules/ngx_http_ssi_filter_module.c if (p == NULL) { p 2196 http/modules/ngx_http_ssi_filter_module.c (void) ngx_escape_html(p, value->data, value->len); p 2218 http/modules/ngx_http_ssi_filter_module.c b->pos = p; p 2219 http/modules/ngx_http_ssi_filter_module.c b->last = p + len; p 2318 http/modules/ngx_http_ssi_filter_module.c u_char *p, *last; p 2344 http/modules/ngx_http_ssi_filter_module.c for (p = left.data; p < last; p++) { p 2345 http/modules/ngx_http_ssi_filter_module.c if (*p >= 'A' && *p <= 'Z') { p 2346 http/modules/ngx_http_ssi_filter_module.c *p |= 0x20; p 2350 http/modules/ngx_http_ssi_filter_module.c if ((*p >= 'a' && *p <= 'z') p 2351 http/modules/ngx_http_ssi_filter_module.c || (*p >= '0' && *p <= '9') p 2352 http/modules/ngx_http_ssi_filter_module.c || *p == '$' || *p == '{' || *p == '}' || *p == '_' p 2353 http/modules/ngx_http_ssi_filter_module.c || *p == '"' || *p == '\'') p 2361 http/modules/ngx_http_ssi_filter_module.c left.len = p - left.data; p 2363 http/modules/ngx_http_ssi_filter_module.c while (p < last && *p == ' ') { p 2364 http/modules/ngx_http_ssi_filter_module.c p++; p 2381 http/modules/ngx_http_ssi_filter_module.c if (p == last) { p 2395 http/modules/ngx_http_ssi_filter_module.c if (p < last && *p == '=') { p 2397 http/modules/ngx_http_ssi_filter_module.c p++; p 2399 http/modules/ngx_http_ssi_filter_module.c } else if (p + 1 < last && *p == '!' && *(p + 1) == '=') { p 2401 http/modules/ngx_http_ssi_filter_module.c p += 2; p 2407 http/modules/ngx_http_ssi_filter_module.c while (p < last && *p == ' ') { p 2408 http/modules/ngx_http_ssi_filter_module.c p++; p 2411 http/modules/ngx_http_ssi_filter_module.c if (p < last - 1 && *p == '/') { p 2419 http/modules/ngx_http_ssi_filter_module.c p++; p 2425 http/modules/ngx_http_ssi_filter_module.c if (p < last - 1 && p[0] == '\\' && p[1] == '/') { p 2426 http/modules/ngx_http_ssi_filter_module.c p++; p 2430 http/modules/ngx_http_ssi_filter_module.c right.len = last - p; p 2431 http/modules/ngx_http_ssi_filter_module.c right.data = p; p 507 http/modules/ngx_http_sub_filter_module.c u_char *p, *last, *copy_end, ch, match; p 527 http/modules/ngx_http_sub_filter_module.c for (p = ctx->pos; p < last; p++) { p 529 http/modules/ngx_http_sub_filter_module.c ch = *p; p 540 http/modules/ngx_http_sub_filter_module.c copy_end = p; p 541 http/modules/ngx_http_sub_filter_module.c ctx->looked.data[0] = *p; p 548 http/modules/ngx_http_sub_filter_module.c if (++p == last) { p 552 http/modules/ngx_http_sub_filter_module.c ch = *p; p 557 http/modules/ngx_http_sub_filter_module.c ctx->pos = p; p 559 http/modules/ngx_http_sub_filter_module.c ctx->copy_end = p; p 575 http/modules/ngx_http_sub_filter_module.c ctx->looked.data[looked] = *p; p 579 http/modules/ngx_http_sub_filter_module.c if ((size_t) (p - ctx->pos) < looked) { p 584 http/modules/ngx_http_sub_filter_module.c ctx->pos = p + 1; p 596 http/modules/ngx_http_sub_filter_module.c copy_end = p; p 597 http/modules/ngx_http_sub_filter_module.c ctx->looked.data[0] = *p; p 601 http/modules/ngx_http_sub_filter_module.c copy_end = p; p 608 http/modules/ngx_http_sub_filter_module.c ctx->pos = p; p 611 http/modules/ngx_http_sub_filter_module.c ctx->copy_end = (state == sub_start_state) ? p : copy_end; p 95 http/modules/ngx_http_upstream_ip_hash_module.c u_char *p; p 117 http/modules/ngx_http_upstream_ip_hash_module.c p = (u_char *) &sin->sin_addr.s_addr; p 118 http/modules/ngx_http_upstream_ip_hash_module.c iphp->addr[0] = p[0]; p 119 http/modules/ngx_http_upstream_ip_hash_module.c iphp->addr[1] = p[1]; p 120 http/modules/ngx_http_upstream_ip_hash_module.c iphp->addr[2] = p[2]; p 143 http/modules/ngx_http_upstream_ip_hash_module.c ngx_uint_t i, n, p, hash; p 168 http/modules/ngx_http_upstream_ip_hash_module.c p = hash % iphp->rrp.peers->number; p 170 http/modules/ngx_http_upstream_ip_hash_module.c n = p / (8 * sizeof(uintptr_t)); p 171 http/modules/ngx_http_upstream_ip_hash_module.c m = (uintptr_t) 1 << p % (8 * sizeof(uintptr_t)); p 176 http/modules/ngx_http_upstream_ip_hash_module.c "get ip hash peer, hash: %ui %04XA", p, m); p 178 http/modules/ngx_http_upstream_ip_hash_module.c peer = &iphp->rrp.peers->peer[p]; p 206 http/modules/ngx_http_upstream_ip_hash_module.c iphp->rrp.current = p; p 359 http/modules/ngx_http_userid_filter_module.c u_char *cookie, *p; p 387 http/modules/ngx_http_userid_filter_module.c p = ngx_copy(cookie, conf->name.data, conf->name.len); p 388 http/modules/ngx_http_userid_filter_module.c *p++ = '='; p 393 http/modules/ngx_http_userid_filter_module.c dst.data = p; p 397 http/modules/ngx_http_userid_filter_module.c p += dst.len; p 400 http/modules/ngx_http_userid_filter_module.c *(p - 2) = conf->mark; p 404 http/modules/ngx_http_userid_filter_module.c p = ngx_cpymem(p, ctx->cookie.data, 22); p 405 http/modules/ngx_http_userid_filter_module.c *p++ = conf->mark; p 406 http/modules/ngx_http_userid_filter_module.c *p++ = '='; p 410 http/modules/ngx_http_userid_filter_module.c p = ngx_cpymem(p, expires, sizeof(expires) - 1); p 413 http/modules/ngx_http_userid_filter_module.c p = ngx_cpymem(p, expires, sizeof("; expires=") - 1); p 414 http/modules/ngx_http_userid_filter_module.c p = ngx_http_cookie_time(p, ngx_time() + conf->expires); p 417 http/modules/ngx_http_userid_filter_module.c p = ngx_copy(p, conf->domain.data, conf->domain.len); p 419 http/modules/ngx_http_userid_filter_module.c p = ngx_copy(p, conf->path.data, conf->path.len); p 428 http/modules/ngx_http_userid_filter_module.c set_cookie->value.len = p - cookie; p 458 http/modules/ngx_http_userid_filter_module.c u_char *p; p 515 http/modules/ngx_http_userid_filter_module.c p = (u_char *) &ctx->uid_set[0]; p 517 http/modules/ngx_http_userid_filter_module.c *p++ = sin6->sin6_addr.s6_addr[12]; p 518 http/modules/ngx_http_userid_filter_module.c *p++ = sin6->sin6_addr.s6_addr[13]; p 519 http/modules/ngx_http_userid_filter_module.c *p++ = sin6->sin6_addr.s6_addr[14]; p 520 http/modules/ngx_http_userid_filter_module.c *p = sin6->sin6_addr.s6_addr[15]; p 663 http/modules/ngx_http_userid_filter_module.c u_char *p, *new; p 675 http/modules/ngx_http_userid_filter_module.c p = ngx_cpymem(new, "; domain=", sizeof("; domain=") - 1); p 676 http/modules/ngx_http_userid_filter_module.c ngx_memcpy(p, domain->data, domain->len); p 690 http/modules/ngx_http_userid_filter_module.c u_char *p, *new; p 697 http/modules/ngx_http_userid_filter_module.c p = ngx_cpymem(new, "; path=", sizeof("; path=") - 1); p 698 http/modules/ngx_http_userid_filter_module.c ngx_memcpy(p, path->data, path->len); p 1096 http/modules/ngx_http_uwsgi_module.c u_char *p; p 1472 http/modules/ngx_http_uwsgi_module.c p = (u_char *) copy + sizeof(ngx_http_script_copy_code_t); p 1473 http/modules/ngx_http_uwsgi_module.c ngx_memcpy(p, src[i].key.data, src[i].key.len); p 569 http/modules/ngx_http_xslt_filter_module.c u_char *p, *last, *value, *dst, *src, **s; p 586 http/modules/ngx_http_xslt_filter_module.c p = string.data; p 589 http/modules/ngx_http_xslt_filter_module.c while (p && *p) { p 591 http/modules/ngx_http_xslt_filter_module.c value = p; p 592 http/modules/ngx_http_xslt_filter_module.c p = (u_char *) ngx_strchr(p, '='); p 593 http/modules/ngx_http_xslt_filter_module.c if (p == NULL) { p 598 http/modules/ngx_http_xslt_filter_module.c *p++ = '\0'; p 610 http/modules/ngx_http_xslt_filter_module.c value = p; p 611 http/modules/ngx_http_xslt_filter_module.c p = (u_char *) ngx_strchr(p, ':'); p 613 http/modules/ngx_http_xslt_filter_module.c if (p) { p 614 http/modules/ngx_http_xslt_filter_module.c len = p - value; p 615 http/modules/ngx_http_xslt_filter_module.c *p++ = '\0'; p 766 http/modules/perl/ngx_http_perl_module.c u_char *p; p 768 http/modules/perl/ngx_http_perl_module.c for (p = handler->data; *p; p++) { p 769 http/modules/perl/ngx_http_perl_module.c if (*p != ' ' && *p != '\t' && *p != CR && *p != LF) { p 774 http/modules/perl/ngx_http_perl_module.c if (ngx_strncmp(p, "sub ", 4) == 0 p 775 http/modules/perl/ngx_http_perl_module.c || ngx_strncmp(p, "sub{", 4) == 0 p 776 http/modules/perl/ngx_http_perl_module.c || ngx_strncmp(p, "use ", 4) == 0) p 778 http/modules/perl/ngx_http_perl_module.c *sv = eval_pv((char *) p, FALSE); p 1142 http/ngx_http.c in_port_t p; p 1169 http/ngx_http.c p = sin6->sin6_port; p 1175 http/ngx_http.c p = 0; p 1181 http/ngx_http.c p = sin->sin_port; p 1188 http/ngx_http.c if (p != port[i].port || sa->sa_family != port[i].family) { p 1205 http/ngx_http.c port->port = p; p 1216 http/ngx_http.c u_char *p; p 1257 http/ngx_http.c p = lsopt->u.sockaddr_data + off; p 1263 http/ngx_http.c if (ngx_memcmp(p, addr[i].opt.u.sockaddr_data + off, len) != 0) { p 1403 http/ngx_http.c ngx_uint_t p, a; p 1412 http/ngx_http.c for (p = 0; p < ports->nelts; p++) { p 1414 http/ngx_http.c ngx_sort(port[p].addrs.elts, (size_t) port[p].addrs.nelts, p 1422 http/ngx_http.c addr = port[p].addrs.elts; p 1423 http/ngx_http.c for (a = 0; a < port[p].addrs.nelts; a++) { p 1437 http/ngx_http.c if (ngx_http_init_listening(cf, &port[p]) != NGX_OK) { p 1908 http/ngx_http.c char *p = conf; p 1915 http/ngx_http.c types = (ngx_array_t **) (p + cmd->offset); p 200 http/ngx_http_busy_lock.c char *p = conf; p 206 http/ngx_http_busy_lock.c blp = (ngx_http_busy_lock_t **) (p + cmd->offset); p 914 http/ngx_http_core_module.c u_char *p; p 978 http/ngx_http_core_module.c p = ngx_pnalloc(r->pool, len); p 980 http/ngx_http_core_module.c if (p == NULL) { p 986 http/ngx_http_core_module.c r->headers_out.location->value.data = p; p 988 http/ngx_http_core_module.c p = ngx_cpymem(p, clcf->name.data, clcf->name.len); p 989 http/ngx_http_core_module.c *p++ = '?'; p 990 http/ngx_http_core_module.c ngx_memcpy(p, r->args.data, r->args.len); p 1139 http/ngx_http_core_module.c u_char *p, *name; p 1312 http/ngx_http_core_module.c p = ngx_copy(r->uri.data, clcf->name.data, alias); p 1313 http/ngx_http_core_module.c ngx_memcpy(p, name, path.len); p 2017 http/ngx_http_core_module.c ngx_uint_t p; p 2055 http/ngx_http_core_module.c p = clcf->gzip_proxied; p 2057 http/ngx_http_core_module.c if (p & NGX_HTTP_GZIP_PROXIED_OFF) { p 2061 http/ngx_http_core_module.c if (p & NGX_HTTP_GZIP_PROXIED_ANY) { p 2065 http/ngx_http_core_module.c if (r->headers_in.authorization && (p & NGX_HTTP_GZIP_PROXIED_AUTH)) { p 2073 http/ngx_http_core_module.c if (!(p & NGX_HTTP_GZIP_PROXIED_EXPIRED)) { p 2105 http/ngx_http_core_module.c if ((p & NGX_HTTP_GZIP_PROXIED_NO_CACHE) p 2113 http/ngx_http_core_module.c if ((p & NGX_HTTP_GZIP_PROXIED_NO_STORE) p 2121 http/ngx_http_core_module.c if ((p & NGX_HTTP_GZIP_PROXIED_PRIVATE) p 2132 http/ngx_http_core_module.c if ((p & NGX_HTTP_GZIP_PROXIED_NO_LM) && r->headers_out.last_modified) { p 2136 http/ngx_http_core_module.c if ((p & NGX_HTTP_GZIP_PROXIED_NO_ETAG) && r->headers_out.etag) { p 2174 http/ngx_http_core_module.c ngx_http_postponed_request_t *pr, *p; p 2268 http/ngx_http_core_module.c for (p = r->postponed; p->next; p = p->next) { /* void */ } p 2269 http/ngx_http_core_module.c p->next = pr; p 3704 http/ngx_http_core_module.c u_char *p; p 3723 http/ngx_http_core_module.c for (p = value[i].data; p < value[i].data + value[i].len; p++) { p 3724 http/ngx_http_core_module.c if (*p >= 'A' && *p <= 'Z') { p 4003 http/ngx_http_core_module.c u_char *p; p 4065 http/ngx_http_core_module.c p = (u_char *) ngx_strchr(uri.data, '?'); p 4067 http/ngx_http_core_module.c if (p) { p 4068 http/ngx_http_core_module.c cv.value.len = p - uri.data; p 4070 http/ngx_http_core_module.c p++; p 4071 http/ngx_http_core_module.c args.len = (uri.data + uri.len) - p; p 4072 http/ngx_http_core_module.c args.data = p; p 620 http/ngx_http_file_cache.c u_char *p; p 635 http/ngx_http_file_cache.c p = c->file.name.data + path->name.len + 1 + path->len; p 636 http/ngx_http_file_cache.c p = ngx_hex_dump(p, c->key, NGX_HTTP_CACHE_KEY_LEN); p 637 http/ngx_http_file_cache.c *p = '\0'; p 702 http/ngx_http_file_cache.c ngx_rbtree_node_t **p; p 709 http/ngx_http_file_cache.c p = &temp->left; p 713 http/ngx_http_file_cache.c p = &temp->right; p 720 http/ngx_http_file_cache.c p = (ngx_memcmp(cn->key, cnt->key, p 726 http/ngx_http_file_cache.c if (*p == sentinel) { p 730 http/ngx_http_file_cache.c temp = *p; p 733 http/ngx_http_file_cache.c *p = node; p 746 http/ngx_http_file_cache.c u_char *p; p 764 http/ngx_http_file_cache.c p = buf + sizeof(ngx_http_file_cache_header_t); p 766 http/ngx_http_file_cache.c p = ngx_cpymem(p, ngx_http_file_cache_key, sizeof(ngx_http_file_cache_key)); p 770 http/ngx_http_file_cache.c p = ngx_copy(p, key[i].data, key[i].len); p 773 http/ngx_http_file_cache.c *p = LF; p 1054 http/ngx_http_file_cache.c u_char *name, *p; p 1111 http/ngx_http_file_cache.c p = ngx_hex_dump(key, (u_char *) &fcn->node.key, p 1114 http/ngx_http_file_cache.c (void) ngx_hex_dump(p, fcn->key, len); p 1143 http/ngx_http_file_cache.c u_char *p; p 1154 http/ngx_http_file_cache.c p = name + path->name.len + 1 + path->len; p 1155 http/ngx_http_file_cache.c p = ngx_hex_dump(p, (u_char *) &fcn->node.key, p 1158 http/ngx_http_file_cache.c p = ngx_hex_dump(p, fcn->key, len); p 1159 http/ngx_http_file_cache.c *p = '\0'; p 1335 http/ngx_http_file_cache.c u_char *p; p 1395 http/ngx_http_file_cache.c p = &name->data[name->len - 2 * NGX_HTTP_CACHE_KEY_LEN]; p 1398 http/ngx_http_file_cache.c n = ngx_hextoi(p, 2); p 1404 http/ngx_http_file_cache.c p += 2; p 1513 http/ngx_http_file_cache.c u_char *last, *p; p 1552 http/ngx_http_file_cache.c p = value[i].data + 7; p 1555 http/ngx_http_file_cache.c for (n = 0; n < 3 && p < last; n++) { p 1557 http/ngx_http_file_cache.c if (*p > '0' && *p < '3') { p 1559 http/ngx_http_file_cache.c cache->path->level[n] = *p++ - '0'; p 1562 http/ngx_http_file_cache.c if (p == last) { p 1566 http/ngx_http_file_cache.c if (*p++ == ':' && n < 2 && p != last) { p 1591 http/ngx_http_file_cache.c p = (u_char *) ngx_strchr(name.data, ':'); p 1593 http/ngx_http_file_cache.c if (p) { p 1594 http/ngx_http_file_cache.c *p = '\0'; p 1596 http/ngx_http_file_cache.c name.len = p - name.data; p 1598 http/ngx_http_file_cache.c p++; p 1600 http/ngx_http_file_cache.c s.len = value[i].data + value[i].len - p; p 1601 http/ngx_http_file_cache.c s.data = p; p 1690 http/ngx_http_file_cache.c char *p = conf; p 1699 http/ngx_http_file_cache.c a = (ngx_array_t **) (p + cmd->offset); p 1788 http/ngx_http_file_cache.c char *p = conf; p 1796 http/ngx_http_file_cache.c a = (ngx_array_t **) (p + cmd->offset); p 156 http/ngx_http_header_filter_module.c u_char *p; p 457 http/ngx_http_header_filter_module.c p = (u_char *) ngx_http_server_full_string; p 461 http/ngx_http_header_filter_module.c p = (u_char *) ngx_http_server_string; p 465 http/ngx_http_header_filter_module.c b->last = ngx_cpymem(b->last, p, len); p 479 http/ngx_http_header_filter_module.c p = b->last; p 493 http/ngx_http_header_filter_module.c r->headers_out.content_type.len = b->last - p; p 494 http/ngx_http_header_filter_module.c r->headers_out.content_type.data = p; p 519 http/ngx_http_header_filter_module.c p = b->last + sizeof("Location: ") - 1; p 542 http/ngx_http_header_filter_module.c r->headers_out.location->value.len = b->last - p; p 543 http/ngx_http_header_filter_module.c r->headers_out.location->value.data = p; p 105 http/ngx_http_parse.c u_char c, ch, *p, *m; p 135 http/ngx_http_parse.c for (p = b->pos; p < b->last; p++) { p 136 http/ngx_http_parse.c ch = *p; p 142 http/ngx_http_parse.c r->request_start = p; p 157 http/ngx_http_parse.c r->method_end = p - 1; p 160 http/ngx_http_parse.c switch (p - m) { p 276 http/ngx_http_parse.c r->uri_start = p; p 283 http/ngx_http_parse.c r->schema_start = p; p 305 http/ngx_http_parse.c r->schema_end = p; p 326 http/ngx_http_parse.c r->host_start = p + 1; p 345 http/ngx_http_parse.c r->host_end = p; p 352 http/ngx_http_parse.c r->uri_start = p; p 376 http/ngx_http_parse.c r->port_end = p; p 377 http/ngx_http_parse.c r->uri_start = p; p 381 http/ngx_http_parse.c r->port_end = p; p 408 http/ngx_http_parse.c r->http_protocol.data = p; p 427 http/ngx_http_parse.c r->uri_end = p; p 431 http/ngx_http_parse.c r->uri_end = p; p 436 http/ngx_http_parse.c r->uri_end = p; p 458 http/ngx_http_parse.c r->args_start = p + 1; p 489 http/ngx_http_parse.c r->uri_ext = p + 1; p 492 http/ngx_http_parse.c r->uri_end = p; p 496 http/ngx_http_parse.c r->uri_end = p; p 501 http/ngx_http_parse.c r->uri_end = p; p 515 http/ngx_http_parse.c r->args_start = p + 1; p 543 http/ngx_http_parse.c r->http_protocol.data = p; p 563 http/ngx_http_parse.c r->uri_end = p; p 567 http/ngx_http_parse.c r->uri_end = p; p 572 http/ngx_http_parse.c r->uri_end = p; p 596 http/ngx_http_parse.c r->http_protocol.data = p; p 719 http/ngx_http_parse.c r->request_end = p - 1; p 729 http/ngx_http_parse.c b->pos = p; p 736 http/ngx_http_parse.c b->pos = p + 1; p 739 http/ngx_http_parse.c r->request_end = p; p 757 http/ngx_http_parse.c u_char c, ch, *p; p 786 http/ngx_http_parse.c for (p = b->pos; p < b->last; p++) { p 787 http/ngx_http_parse.c ch = *p; p 793 http/ngx_http_parse.c r->header_name_start = p; p 798 http/ngx_http_parse.c r->header_end = p; p 802 http/ngx_http_parse.c r->header_end = p; p 848 http/ngx_http_parse.c r->header_name_end = p; p 854 http/ngx_http_parse.c r->header_name_end = p; p 855 http/ngx_http_parse.c r->header_start = p; p 856 http/ngx_http_parse.c r->header_end = p; p 862 http/ngx_http_parse.c r->header_name_end = p; p 863 http/ngx_http_parse.c r->header_start = p; p 864 http/ngx_http_parse.c r->header_end = p; p 871 http/ngx_http_parse.c && p - r->header_name_start == 4 p 888 http/ngx_http_parse.c r->header_start = p; p 889 http/ngx_http_parse.c r->header_end = p; p 893 http/ngx_http_parse.c r->header_start = p; p 894 http/ngx_http_parse.c r->header_end = p; p 897 http/ngx_http_parse.c r->header_start = p; p 907 http/ngx_http_parse.c r->header_end = p; p 911 http/ngx_http_parse.c r->header_end = p; p 915 http/ngx_http_parse.c r->header_end = p; p 970 http/ngx_http_parse.c b->pos = p; p 979 http/ngx_http_parse.c b->pos = p + 1; p 988 http/ngx_http_parse.c b->pos = p + 1; p 998 http/ngx_http_parse.c u_char c, ch, decoded, *p, *u; p 1014 http/ngx_http_parse.c p = r->uri_start; p 1019 http/ngx_http_parse.c ch = *p++; p 1021 http/ngx_http_parse.c while (p <= r->uri_end) { p 1038 http/ngx_http_parse.c ch = *p++; p 1047 http/ngx_http_parse.c if (p == r->uri_start + r->uri.len) { p 1071 http/ngx_http_parse.c r->args_start = p; p 1086 http/ngx_http_parse.c ch = *p++; p 1094 http/ngx_http_parse.c ch = *p++; p 1117 http/ngx_http_parse.c r->args_start = p; p 1129 http/ngx_http_parse.c ch = *p++; p 1137 http/ngx_http_parse.c ch = *p++; p 1158 http/ngx_http_parse.c r->args_start = p; p 1170 http/ngx_http_parse.c ch = *p++; p 1178 http/ngx_http_parse.c ch = *p++; p 1205 http/ngx_http_parse.c r->args_start = p; p 1217 http/ngx_http_parse.c ch = *p++; p 1226 http/ngx_http_parse.c ch = *p++; p 1234 http/ngx_http_parse.c ch = *p++; p 1247 http/ngx_http_parse.c ch = *p++; p 1265 http/ngx_http_parse.c ch = *p++; p 1295 http/ngx_http_parse.c while (p < r->uri_end) { p 1296 http/ngx_http_parse.c if (*p++ != '#') { p 1300 http/ngx_http_parse.c r->args.len = p - 1 - r->args_start; p 1325 http/ngx_http_parse.c u_char *p; p 1344 http/ngx_http_parse.c for (p = b->pos; p < b->last; p++) { p 1345 http/ngx_http_parse.c ch = *p; p 1458 http/ngx_http_parse.c status->start = p - 2; p 1496 http/ngx_http_parse.c status->end = p - 1; p 1506 http/ngx_http_parse.c b->pos = p; p 1513 http/ngx_http_parse.c b->pos = p + 1; p 1516 http/ngx_http_parse.c status->end = p; p 1529 http/ngx_http_parse.c u_char ch, *p; p 1533 http/ngx_http_parse.c p = uri->data; p 1535 http/ngx_http_parse.c if (len == 0 || p[0] == '?') { p 1539 http/ngx_http_parse.c if (p[0] == '.' && len == 3 && p[1] == '.' && (ngx_path_separator(p[2]))) { p 1545 http/ngx_http_parse.c ch = *p++; p 1553 http/ngx_http_parse.c args->data = p; p 1567 http/ngx_http_parse.c if (p[0] == '.' && p[1] == '.' && ngx_path_separator(p[2])) { p 1662 http/ngx_http_parse.c u_char *p, *last; p 1668 http/ngx_http_parse.c p = r->args.data; p 1669 http/ngx_http_parse.c last = p + r->args.len; p 1671 http/ngx_http_parse.c for ( /* void */ ; p < last; p++) { p 1675 http/ngx_http_parse.c p = ngx_strlcasestrn(p, last - 1, name, len - 1); p 1677 http/ngx_http_parse.c if (p == NULL) { p 1681 http/ngx_http_parse.c if ((p == r->args.data || *(p - 1) == '&') && *(p + len) == '=') { p 1683 http/ngx_http_parse.c value->data = p + len + 1; p 1685 http/ngx_http_parse.c p = ngx_strlchr(p, last, '&'); p 1687 http/ngx_http_parse.c if (p == NULL) { p 1688 http/ngx_http_parse.c p = r->args.data + r->args.len; p 1691 http/ngx_http_parse.c value->len = p - value->data; p 1704 http/ngx_http_parse.c u_char *p, *last; p 1708 http/ngx_http_parse.c p = ngx_strlchr(uri->data, last, '?'); p 1710 http/ngx_http_parse.c if (p) { p 1711 http/ngx_http_parse.c uri->len = p - uri->data; p 1712 http/ngx_http_parse.c p++; p 1713 http/ngx_http_parse.c args->len = last - p; p 1714 http/ngx_http_parse.c args->data = p; p 16 http/ngx_http_parse_time.c u_char *p, *end; p 35 http/ngx_http_parse_time.c for (p = value; p < end; p++) { p 36 http/ngx_http_parse_time.c if (*p == ',') { p 40 http/ngx_http_parse_time.c if (*p == ' ') { p 46 http/ngx_http_parse_time.c for (p++; p < end; p++) p 47 http/ngx_http_parse_time.c if (*p != ' ') { p 51 http/ngx_http_parse_time.c if (end - p < 18) { p 56 http/ngx_http_parse_time.c if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9') { p 60 http/ngx_http_parse_time.c day = (*p - '0') * 10 + *(p + 1) - '0'; p 61 http/ngx_http_parse_time.c p += 2; p 63 http/ngx_http_parse_time.c if (*p == ' ') { p 64 http/ngx_http_parse_time.c if (end - p < 18) { p 69 http/ngx_http_parse_time.c } else if (*p == '-') { p 76 http/ngx_http_parse_time.c p++; p 79 http/ngx_http_parse_time.c switch (*p) { p 82 http/ngx_http_parse_time.c month = *(p + 1) == 'a' ? 0 : *(p + 2) == 'n' ? 5 : 6; p 90 http/ngx_http_parse_time.c month = *(p + 2) == 'r' ? 2 : 4; p 94 http/ngx_http_parse_time.c month = *(p + 1) == 'p' ? 3 : 7; p 117 http/ngx_http_parse_time.c p += 3; p 119 http/ngx_http_parse_time.c if ((fmt == rfc822 && *p != ' ') || (fmt == rfc850 && *p != '-')) { p 123 http/ngx_http_parse_time.c p++; p 126 http/ngx_http_parse_time.c if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9' p 127 http/ngx_http_parse_time.c || *(p + 2) < '0' || *(p + 2) > '9' p 128 http/ngx_http_parse_time.c || *(p + 3) < '0' || *(p + 3) > '9') p 133 http/ngx_http_parse_time.c year = (*p - '0') * 1000 + (*(p + 1) - '0') * 100 p 134 http/ngx_http_parse_time.c + (*(p + 2) - '0') * 10 + *(p + 3) - '0'; p 135 http/ngx_http_parse_time.c p += 4; p 138 http/ngx_http_parse_time.c if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9') { p 142 http/ngx_http_parse_time.c year = (*p - '0') * 10 + *(p + 1) - '0'; p 144 http/ngx_http_parse_time.c p += 2; p 148 http/ngx_http_parse_time.c if (*p == ' ') { p 149 http/ngx_http_parse_time.c p++; p 152 http/ngx_http_parse_time.c if (*p < '0' || *p > '9') { p 156 http/ngx_http_parse_time.c day = *p++ - '0'; p 158 http/ngx_http_parse_time.c if (*p != ' ') { p 159 http/ngx_http_parse_time.c if (*p < '0' || *p > '9') { p 163 http/ngx_http_parse_time.c day = day * 10 + *p++ - '0'; p 166 http/ngx_http_parse_time.c if (end - p < 14) { p 171 http/ngx_http_parse_time.c if (*p++ != ' ') { p 175 http/ngx_http_parse_time.c if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9') { p 179 http/ngx_http_parse_time.c hour = (*p - '0') * 10 + *(p + 1) - '0'; p 180 http/ngx_http_parse_time.c p += 2; p 182 http/ngx_http_parse_time.c if (*p++ != ':') { p 186 http/ngx_http_parse_time.c if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9') { p 190 http/ngx_http_parse_time.c min = (*p - '0') * 10 + *(p + 1) - '0'; p 191 http/ngx_http_parse_time.c p += 2; p 193 http/ngx_http_parse_time.c if (*p++ != ':') { p 197 http/ngx_http_parse_time.c if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9') { p 201 http/ngx_http_parse_time.c sec = (*p - '0') * 10 + *(p + 1) - '0'; p 204 http/ngx_http_parse_time.c p += 2; p 206 http/ngx_http_parse_time.c if (*p++ != ' ') { p 210 http/ngx_http_parse_time.c if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9' p 211 http/ngx_http_parse_time.c || *(p + 2) < '0' || *(p + 2) > '9' p 212 http/ngx_http_parse_time.c || *(p + 3) < '0' || *(p + 3) > '9') p 217 http/ngx_http_parse_time.c year = (*p - '0') * 1000 + (*(p + 1) - '0') * 100 p 218 http/ngx_http_parse_time.c + (*(p + 2) - '0') * 10 + *(p + 3) - '0'; p 792 http/ngx_http_request.c u_char *p; p 794 http/ngx_http_request.c p = r->uri.data + r->uri.len - 1; p 796 http/ngx_http_request.c while (p > r->uri.data) { p 798 http/ngx_http_request.c if (*p == ' ') { p 799 http/ngx_http_request.c p--; p 803 http/ngx_http_request.c if (*p == '.') { p 804 http/ngx_http_request.c p--; p 808 http/ngx_http_request.c if (ngx_strncasecmp(p - 6, (u_char *) "::$data", 7) == 0) { p 809 http/ngx_http_request.c p -= 7; p 816 http/ngx_http_request.c if (p != r->uri.data + r->uri.len - 1) { p 817 http/ngx_http_request.c r->uri.len = p + 1 - r->uri.data; p 936 http/ngx_http_request.c u_char *p; p 979 http/ngx_http_request.c p = r->header_name_start; p 983 http/ngx_http_request.c if (p == NULL) { p 991 http/ngx_http_request.c len = r->header_in->end - p; p 995 http/ngx_http_request.c p[len++] = '.'; p[len++] = '.'; p[len++] = '.'; p 1845 http/ngx_http_request.c ngx_http_posted_request_t **p; p 1857 http/ngx_http_request.c for (p = &r->main->posted_requests; *p; p = &(*p)->next) { /* void */ } p 1859 http/ngx_http_request.c *p = pr; p 3054 http/ngx_http_request.c u_char *p; p 3059 http/ngx_http_request.c p = ngx_snprintf(buf, len, " while %s", log->action); p 3060 http/ngx_http_request.c len -= p - buf; p 3061 http/ngx_http_request.c buf = p; p 3066 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", client: %V", &ctx->connection->addr_text); p 3067 http/ngx_http_request.c len -= p - buf; p 3072 http/ngx_http_request.c return r->log_handler(r, ctx->current_request, p, len); p 3075 http/ngx_http_request.c p = ngx_snprintf(p, len, ", server: %V", p 3079 http/ngx_http_request.c return p; p 3088 http/ngx_http_request.c u_char *p; p 3094 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", server: %V", &cscf->server_name); p 3095 http/ngx_http_request.c len -= p - buf; p 3096 http/ngx_http_request.c buf = p; p 3099 http/ngx_http_request.c for (p = r->request_start; p < r->header_in->last; p++) { p 3100 http/ngx_http_request.c if (*p == CR || *p == LF) { p 3105 http/ngx_http_request.c r->request_line.len = p - r->request_start; p 3110 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", request: \"%V\"", &r->request_line); p 3111 http/ngx_http_request.c len -= p - buf; p 3112 http/ngx_http_request.c buf = p; p 3116 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", subrequest: \"%V\"", &sr->uri); p 3117 http/ngx_http_request.c len -= p - buf; p 3118 http/ngx_http_request.c buf = p; p 3133 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", upstream: \"%V%V%s%V\"", p 3136 http/ngx_http_request.c len -= p - buf; p 3137 http/ngx_http_request.c buf = p; p 3141 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", host: \"%V\"", p 3143 http/ngx_http_request.c len -= p - buf; p 3144 http/ngx_http_request.c buf = p; p 3148 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", referrer: \"%V\"", p 3150 http/ngx_http_request.c buf = p; p 217 http/ngx_http_script.c char *p = conf; p 223 http/ngx_http_script.c cv = (ngx_http_complex_value_t **) (p + cmd->offset); p 280 http/ngx_http_script.c char *p = conf; p 288 http/ngx_http_script.c a = (ngx_array_t **) (p + cmd->offset); p 661 http/ngx_http_script.c u_char *elts, **p; p 673 http/ngx_http_script.c p = code; p 674 http/ngx_http_script.c *p += (u_char *) codes->elts - elts; p 686 http/ngx_http_script.c u_char *p; p 713 http/ngx_http_script.c p = ngx_cpymem((u_char *) code + sizeof(ngx_http_script_copy_code_t), p 717 http/ngx_http_script.c *p = '\0'; p 741 http/ngx_http_script.c u_char *p; p 746 http/ngx_http_script.c p = e->pos; p 749 http/ngx_http_script.c e->pos = ngx_copy(p, e->ip + sizeof(ngx_http_script_copy_code_t), p 757 http/ngx_http_script.c "http script copy: \"%*s\"", e->pos - p, p); p 764 http/ngx_http_script.c ngx_int_t index, *p; p 774 http/ngx_http_script.c p = ngx_array_push(*sc->flushes); p 775 http/ngx_http_script.c if (p == NULL) { p 779 http/ngx_http_script.c *p = index; p 833 http/ngx_http_script.c u_char *p; p 851 http/ngx_http_script.c p = e->pos; p 852 http/ngx_http_script.c e->pos = ngx_copy(p, value->data, value->len); p 856 http/ngx_http_script.c "http script var: \"%*s\"", e->pos - p, p); p 1208 http/ngx_http_script.c u_char *p; p 1228 http/ngx_http_script.c p = r->captures_data; p 1231 http/ngx_http_script.c + 2 * ngx_escape_uri(NULL, &p[cap[n]], cap[n + 1] - cap[n], p 1246 http/ngx_http_script.c u_char *p, *pos; p 1264 http/ngx_http_script.c p = r->captures_data; p 1269 http/ngx_http_script.c e->pos = (u_char *) ngx_escape_uri(pos, &p[cap[n]], p 1273 http/ngx_http_script.c e->pos = ngx_copy(pos, &p[cap[n]], cap[n + 1] - cap[n]); p 713 http/ngx_http_special_response.c u_char *p, *location; p 759 http/ngx_http_special_response.c p = ngx_cpymem(b->pos, ngx_http_msie_refresh_head, p 763 http/ngx_http_special_response.c p = ngx_cpymem(p, location, len); p 766 http/ngx_http_special_response.c p = (u_char *) ngx_escape_uri(p, location, len, NGX_ESCAPE_REFRESH); p 769 http/ngx_http_special_response.c b->last = ngx_cpymem(p, ngx_http_msie_refresh_tail, p 2007 http/ngx_http_upstream.c ngx_event_pipe_t *p; p 2202 http/ngx_http_upstream.c p = u->pipe; p 2204 http/ngx_http_upstream.c p->output_filter = (ngx_event_pipe_output_filter_pt) ngx_http_output_filter; p 2205 http/ngx_http_upstream.c p->output_ctx = r; p 2206 http/ngx_http_upstream.c p->tag = u->output.tag; p 2207 http/ngx_http_upstream.c p->bufs = u->conf->bufs; p 2208 http/ngx_http_upstream.c p->busy_size = u->conf->busy_buffers_size; p 2209 http/ngx_http_upstream.c p->upstream = u->peer.connection; p 2210 http/ngx_http_upstream.c p->downstream = c; p 2211 http/ngx_http_upstream.c p->pool = r->pool; p 2212 http/ngx_http_upstream.c p->log = c->log; p 2214 http/ngx_http_upstream.c p->cacheable = u->cacheable || u->store; p 2216 http/ngx_http_upstream.c p->temp_file = ngx_pcalloc(r->pool, sizeof(ngx_temp_file_t)); p 2217 http/ngx_http_upstream.c if (p->temp_file == NULL) { p 2222 http/ngx_http_upstream.c p->temp_file->file.fd = NGX_INVALID_FILE; p 2223 http/ngx_http_upstream.c p->temp_file->file.log = c->log; p 2224 http/ngx_http_upstream.c p->temp_file->path = u->conf->temp_path; p 2225 http/ngx_http_upstream.c p->temp_file->pool = r->pool; p 2227 http/ngx_http_upstream.c if (p->cacheable) { p 2228 http/ngx_http_upstream.c p->temp_file->persistent = 1; p 2231 http/ngx_http_upstream.c p->temp_file->log_level = NGX_LOG_WARN; p 2232 http/ngx_http_upstream.c p->temp_file->warn = "an upstream response is buffered " p 2236 http/ngx_http_upstream.c p->max_temp_file_size = u->conf->max_temp_file_size; p 2237 http/ngx_http_upstream.c p->temp_file_write_size = u->conf->temp_file_write_size; p 2239 http/ngx_http_upstream.c p->preread_bufs = ngx_alloc_chain_link(r->pool); p 2240 http/ngx_http_upstream.c if (p->preread_bufs == NULL) { p 2245 http/ngx_http_upstream.c p->preread_bufs->buf = &u->buffer; p 2246 http/ngx_http_upstream.c p->preread_bufs->next = NULL; p 2249 http/ngx_http_upstream.c p->preread_size = u->buffer.last - u->buffer.pos; p 2253 http/ngx_http_upstream.c p->buf_to_file = ngx_calloc_buf(r->pool); p 2254 http/ngx_http_upstream.c if (p->buf_to_file == NULL) { p 2259 http/ngx_http_upstream.c p->buf_to_file->pos = u->buffer.start; p 2260 http/ngx_http_upstream.c p->buf_to_file->last = u->buffer.pos; p 2261 http/ngx_http_upstream.c p->buf_to_file->temporary = 1; p 2266 http/ngx_http_upstream.c p->single_buf = 1; p 2270 http/ngx_http_upstream.c p->free_bufs = 1; p 2286 http/ngx_http_upstream.c p->cyclic_temp_file = 1; p 2290 http/ngx_http_upstream.c p->cyclic_temp_file = 0; p 2293 http/ngx_http_upstream.c p->read_timeout = u->conf->read_timeout; p 2294 http/ngx_http_upstream.c p->send_timeout = clcf->send_timeout; p 2295 http/ngx_http_upstream.c p->send_lowat = clcf->send_lowat; p 2522 http/ngx_http_upstream.c ngx_event_pipe_t *p; p 2527 http/ngx_http_upstream.c p = u->pipe; p 2543 http/ngx_http_upstream.c ngx_add_timer(wev, p->send_timeout); p 2545 http/ngx_http_upstream.c if (ngx_handle_write_event(wev, p->send_lowat) != NGX_OK) { p 2552 http/ngx_http_upstream.c if (ngx_event_pipe(p, wev->write) == NGX_ABORT) { p 2558 http/ngx_http_upstream.c p->downstream_error = 1; p 2570 http/ngx_http_upstream.c if (ngx_handle_write_event(wev, p->send_lowat) != NGX_OK) { p 2577 http/ngx_http_upstream.c if (ngx_event_pipe(p, 1) == NGX_ABORT) { p 2620 http/ngx_http_upstream.c ngx_event_pipe_t *p; p 2624 http/ngx_http_upstream.c p = u->pipe; p 2630 http/ngx_http_upstream.c del = p->upstream_error; p 2634 http/ngx_http_upstream.c if (p->upstream_eof || p->upstream_done) { p 2662 http/ngx_http_upstream.c if (p->upstream_done) { p 2665 http/ngx_http_upstream.c } else if (p->upstream_eof) { p 2671 http/ngx_http_upstream.c } else if (p->upstream_error) { p 2678 http/ngx_http_upstream.c if (p->upstream_done || p->upstream_eof || p->upstream_error) { p 2680 http/ngx_http_upstream.c "http upstream exit: %p", p->out); p 2689 http/ngx_http_upstream.c if (p->downstream_error) { p 2895 http/ngx_http_upstream.c ngx_http_upstream_busy_lock(p); p 3104 http/ngx_http_upstream.c u_char *p, *last; p 3119 http/ngx_http_upstream.c p = h->value.data; p 3120 http/ngx_http_upstream.c last = p + h->value.len; p 3122 http/ngx_http_upstream.c if (ngx_strlcasestrn(p, last, (u_char *) "no-cache", 8 - 1) != NULL p 3123 http/ngx_http_upstream.c || ngx_strlcasestrn(p, last, (u_char *) "no-store", 8 - 1) != NULL p 3124 http/ngx_http_upstream.c || ngx_strlcasestrn(p, last, (u_char *) "private", 7 - 1) != NULL) p 3130 http/ngx_http_upstream.c p = ngx_strlcasestrn(p, last, (u_char *) "max-age=", 8 - 1); p 3132 http/ngx_http_upstream.c if (p == NULL) { p 3138 http/ngx_http_upstream.c for (p += 8; p < last; p++) { p 3139 http/ngx_http_upstream.c if (*p == ',' || *p == ';' || *p == ' ') { p 3143 http/ngx_http_upstream.c if (*p >= '0' && *p <= '9') { p 3144 http/ngx_http_upstream.c n = n * 10 + *p - '0'; p 3216 http/ngx_http_upstream.c u_char *p; p 3229 http/ngx_http_upstream.c p = h->value.data; p 3231 http/ngx_http_upstream.c if (p[0] != '@') { p 3232 http/ngx_http_upstream.c n = ngx_atoi(p, len); p 3246 http/ngx_http_upstream.c p++; p 3249 http/ngx_http_upstream.c n = ngx_atoi(p, len); p 3379 http/ngx_http_upstream.c u_char *p, *last; p 3385 http/ngx_http_upstream.c for (p = h->value.data; *p; p++) { p 3387 http/ngx_http_upstream.c if (*p != ';') { p 3391 http/ngx_http_upstream.c last = p; p 3393 http/ngx_http_upstream.c while (*++p == ' ') { /* void */ } p 3395 http/ngx_http_upstream.c if (*p == '\0') { p 3399 http/ngx_http_upstream.c if (ngx_strncasecmp(p, (u_char *) "charset=", 8) != 0) { p 3403 http/ngx_http_upstream.c p += 8; p 3407 http/ngx_http_upstream.c if (*p == '"') { p 3408 http/ngx_http_upstream.c p++; p 3417 http/ngx_http_upstream.c r->headers_out.charset.len = last - p; p 3418 http/ngx_http_upstream.c r->headers_out.charset.data = p; p 3523 http/ngx_http_upstream.c u_char *p; p 3536 http/ngx_http_upstream.c p = ngx_strcasestrn(ho->value.data, "url=", 4 - 1); p 3538 http/ngx_http_upstream.c if (p) { p 3539 http/ngx_http_upstream.c rc = r->upstream->rewrite_redirect(r, ho, p + 4 - ho->value.data); p 3640 http/ngx_http_upstream.c u_char *p; p 3666 http/ngx_http_upstream.c p = ngx_pnalloc(r->pool, len); p 3667 http/ngx_http_upstream.c if (p == NULL) { p 3671 http/ngx_http_upstream.c v->data = p; p 3677 http/ngx_http_upstream.c p = ngx_cpymem(p, state[i].peer->data, state[i].peer->len); p 3685 http/ngx_http_upstream.c *p++ = ','; p 3686 http/ngx_http_upstream.c *p++ = ' '; p 3689 http/ngx_http_upstream.c *p++ = ' '; p 3690 http/ngx_http_upstream.c *p++ = ':'; p 3691 http/ngx_http_upstream.c *p++ = ' '; p 3701 http/ngx_http_upstream.c v->len = p - v->data; p 3711 http/ngx_http_upstream.c u_char *p; p 3727 http/ngx_http_upstream.c p = ngx_pnalloc(r->pool, len); p 3728 http/ngx_http_upstream.c if (p == NULL) { p 3732 http/ngx_http_upstream.c v->data = p; p 3739 http/ngx_http_upstream.c p = ngx_sprintf(p, "%ui", state[i].status); p 3742 http/ngx_http_upstream.c *p++ = '-'; p 3750 http/ngx_http_upstream.c *p++ = ','; p 3751 http/ngx_http_upstream.c *p++ = ' '; p 3754 http/ngx_http_upstream.c *p++ = ' '; p 3755 http/ngx_http_upstream.c *p++ = ':'; p 3756 http/ngx_http_upstream.c *p++ = ' '; p 3766 http/ngx_http_upstream.c v->len = p - v->data; p 3776 http/ngx_http_upstream.c u_char *p; p 3793 http/ngx_http_upstream.c p = ngx_pnalloc(r->pool, len); p 3794 http/ngx_http_upstream.c if (p == NULL) { p 3798 http/ngx_http_upstream.c v->data = p; p 3808 http/ngx_http_upstream.c p = ngx_sprintf(p, "%d.%03d", ms / 1000, ms % 1000); p 3811 http/ngx_http_upstream.c *p++ = '-'; p 3819 http/ngx_http_upstream.c *p++ = ','; p 3820 http/ngx_http_upstream.c *p++ = ' '; p 3823 http/ngx_http_upstream.c *p++ = ' '; p 3824 http/ngx_http_upstream.c *p++ = ':'; p 3825 http/ngx_http_upstream.c *p++ = ' '; p 3835 http/ngx_http_upstream.c v->len = p - v->data; p 3845 http/ngx_http_upstream.c u_char *p; p 3861 http/ngx_http_upstream.c p = ngx_pnalloc(r->pool, len); p 3862 http/ngx_http_upstream.c if (p == NULL) { p 3866 http/ngx_http_upstream.c v->data = p; p 3872 http/ngx_http_upstream.c p = ngx_sprintf(p, "%O", state[i].response_length); p 3879 http/ngx_http_upstream.c *p++ = ','; p 3880 http/ngx_http_upstream.c *p++ = ' '; p 3883 http/ngx_http_upstream.c *p++ = ' '; p 3884 http/ngx_http_upstream.c *p++ = ':'; p 3885 http/ngx_http_upstream.c *p++ = ' '; p 3895 http/ngx_http_upstream.c v->len = p - v->data; p 4304 http/ngx_http_upstream.c char *p = conf; p 4310 http/ngx_http_upstream.c paddr = (ngx_addr_t **) (p + cmd->offset); p 254 http/ngx_http_upstream_round_robin.c u_char *p; p 297 http/ngx_http_upstream_round_robin.c p = ngx_pnalloc(r->pool, len); p 298 http/ngx_http_upstream_round_robin.c if (p == NULL) { p 302 http/ngx_http_upstream_round_robin.c len = ngx_inet_ntop(AF_INET, &ur->addrs[i], p, NGX_INET_ADDRSTRLEN); p 303 http/ngx_http_upstream_round_robin.c len = ngx_sprintf(&p[len], ":%d", ur->port) - p; p 317 http/ngx_http_upstream_round_robin.c peers->peer[i].name.data = p; p 644 http/ngx_http_variables.c u_char *p; p 677 http/ngx_http_variables.c p = ngx_pnalloc(r->pool, len); p 678 http/ngx_http_variables.c if (p == NULL) { p 683 http/ngx_http_variables.c v->data = p; p 686 http/ngx_http_variables.c p = ngx_copy(p, h[i]->value.data, h[i]->value.len); p 692 http/ngx_http_variables.c *p++ = ';'; *p++ = ' '; p 777 http/ngx_http_variables.c u_char *p, *s; p 789 http/ngx_http_variables.c for (p = s; p < r->header_in->last; p++) { p 790 http/ngx_http_variables.c if (*p == CR || *p == LF) { p 795 http/ngx_http_variables.c r->request_line.len = p - s; p 1298 http/ngx_http_variables.c u_char *p; p 1306 http/ngx_http_variables.c p = ngx_pnalloc(r->pool, NGX_OFF_T_LEN); p 1307 http/ngx_http_variables.c if (p == NULL) { p 1311 http/ngx_http_variables.c v->len = ngx_sprintf(p, "%O", sent) - p; p 1315 http/ngx_http_variables.c v->data = p; p 1344 http/ngx_http_variables.c u_char *p; p 1357 http/ngx_http_variables.c p = ngx_pnalloc(r->pool, NGX_OFF_T_LEN); p 1358 http/ngx_http_variables.c if (p == NULL) { p 1362 http/ngx_http_variables.c v->len = ngx_sprintf(p, "%O", r->headers_out.content_length_n) - p; p 1366 http/ngx_http_variables.c v->data = p; p 1405 http/ngx_http_variables.c u_char *p; p 1418 http/ngx_http_variables.c p = ngx_pnalloc(r->pool, p 1420 http/ngx_http_variables.c if (p == NULL) { p 1424 http/ngx_http_variables.c v->len = ngx_http_time(p, r->headers_out.last_modified_time) - p; p 1428 http/ngx_http_variables.c v->data = p; p 1444 http/ngx_http_variables.c char *p; p 1448 http/ngx_http_variables.c p = "keep-alive"; p 1452 http/ngx_http_variables.c p = "close"; p 1459 http/ngx_http_variables.c v->data = (u_char *) p; p 1469 http/ngx_http_variables.c u_char *p; p 1477 http/ngx_http_variables.c p = ngx_pnalloc(r->pool, sizeof("timeout=") - 1 + NGX_TIME_T_LEN); p 1478 http/ngx_http_variables.c if (p == NULL) { p 1482 http/ngx_http_variables.c v->len = ngx_sprintf(p, "timeout=%T", clcf->keepalive_header) - p; p 1486 http/ngx_http_variables.c v->data = p; p 1545 http/ngx_http_variables.c u_char *p; p 1575 http/ngx_http_variables.c p = ngx_pnalloc(r->pool, len); p 1576 http/ngx_http_variables.c if (p == NULL) { p 1580 http/ngx_http_variables.c v->data = p; p 1582 http/ngx_http_variables.c p = ngx_cpymem(p, buf->pos, buf->last - buf->pos); p 1583 http/ngx_http_variables.c ngx_memcpy(p, next->pos, next->last - next->pos); p 1646 http/ngx_http_variables.c u_char *p; p 1648 http/ngx_http_variables.c p = ngx_pnalloc(r->pool, NGX_INT64_LEN); p 1649 http/ngx_http_variables.c if (p == NULL) { p 1653 http/ngx_http_variables.c v->len = ngx_sprintf(p, "%P", ngx_pid) - p; p 1657 http/ngx_http_variables.c v->data = p; p 1667 http/ngx_http_variables.c void *p; p 1669 http/ngx_http_variables.c p = ngx_hash_find_combined(&map->hash, key, text, len); p 1670 http/ngx_http_variables.c if (p) { p 1671 http/ngx_http_variables.c return p; p 1721 http/ngx_http_variables.c u_char *p; p 1764 http/ngx_http_variables.c p = rc->names; p 1767 http/ngx_http_variables.c rv[i].capture = 2 * ((p[0] << 8) + p[1]); p 1769 http/ngx_http_variables.c name.data = &p[2]; p 1784 http/ngx_http_variables.c p += size; p 244 mail/ngx_mail.c in_port_t p; p 261 mail/ngx_mail.c p = sin6->sin6_port; p 267 mail/ngx_mail.c p = sin->sin_port; p 273 mail/ngx_mail.c if (p == port[i].port && sa->sa_family == port[i].family) { p 290 mail/ngx_mail.c port->port = p; p 325 mail/ngx_mail.c ngx_uint_t i, p, last, bind_wildcard; p 332 mail/ngx_mail.c for (p = 0; p < ports->nelts; p++) { p 334 mail/ngx_mail.c ngx_sort(port[p].addrs.elts, (size_t) port[p].addrs.nelts, p 337 mail/ngx_mail.c addr = port[p].addrs.elts; p 338 mail/ngx_mail.c last = port[p].addrs.nelts; p 423 mail/ngx_mail.c u_char *p; p 450 mail/ngx_mail.c p = ngx_pnalloc(cf->pool, len); p 451 mail/ngx_mail.c if (p == NULL) { p 455 mail/ngx_mail.c ngx_memcpy(p, buf, len); p 458 mail/ngx_mail.c addrs[i].conf.addr_text.data = p; p 471 mail/ngx_mail.c u_char *p; p 498 mail/ngx_mail.c p = ngx_pnalloc(cf->pool, len); p 499 mail/ngx_mail.c if (p == NULL) { p 503 mail/ngx_mail.c ngx_memcpy(p, buf, len); p 506 mail/ngx_mail.c addrs6[i].conf.addr_text.data = p; p 349 mail/ngx_mail_auth_http_module.c u_char *p, ch; p 365 mail/ngx_mail_auth_http_module.c for (p = ctx->response->pos; p < ctx->response->last; p++) { p 366 mail/ngx_mail_auth_http_module.c ch = *p; p 434 mail/ngx_mail_auth_http_module.c ctx->response->pos = p; p 441 mail/ngx_mail_auth_http_module.c p = ctx->response->start - 1; p 445 mail/ngx_mail_auth_http_module.c ctx->response->pos = p + 1; p 456 mail/ngx_mail_auth_http_module.c u_char *p; p 532 mail/ngx_mail_auth_http_module.c p = ngx_pnalloc(s->connection->pool, size); p 533 mail/ngx_mail_auth_http_module.c if (p == NULL) { p 540 mail/ngx_mail_auth_http_module.c ctx->err.data = p; p 545 mail/ngx_mail_auth_http_module.c *p++ = '-'; *p++ = 'E'; *p++ = 'R'; *p++ = 'R'; *p++ = ' '; p 549 mail/ngx_mail_auth_http_module.c p = ngx_cpymem(p, s->tag.data, s->tag.len); p 550 mail/ngx_mail_auth_http_module.c *p++ = 'N'; *p++ = 'O'; *p++ = ' '; p 557 mail/ngx_mail_auth_http_module.c p = ngx_cpymem(p, ctx->header_start, len); p 558 mail/ngx_mail_auth_http_module.c *p++ = CR; *p++ = LF; p 560 mail/ngx_mail_auth_http_module.c ctx->err.len = p - ctx->err.data; p 696 mail/ngx_mail_auth_http_module.c p = ngx_pnalloc(s->connection->pool, ctx->err.len); p 697 mail/ngx_mail_auth_http_module.c if (p == NULL) { p 704 mail/ngx_mail_auth_http_module.c ctx->err.data = p; p 706 mail/ngx_mail_auth_http_module.c p = ngx_cpymem(p, ctx->errcode.data, ctx->errcode.len); p 707 mail/ngx_mail_auth_http_module.c *p++ = ' '; p 708 mail/ngx_mail_auth_http_module.c p = ngx_cpymem(p, ctx->errmsg.data, ctx->errmsg.len); p 709 mail/ngx_mail_auth_http_module.c *p++ = CR; *p = LF; p 918 mail/ngx_mail_auth_http_module.c u_char c, ch, *p; p 931 mail/ngx_mail_auth_http_module.c for (p = ctx->response->pos; p < ctx->response->last; p++) { p 932 mail/ngx_mail_auth_http_module.c ch = *p; p 941 mail/ngx_mail_auth_http_module.c ctx->header_end = p; p 945 mail/ngx_mail_auth_http_module.c ctx->header_end = p; p 949 mail/ngx_mail_auth_http_module.c ctx->header_name_start = p; p 972 mail/ngx_mail_auth_http_module.c ctx->header_name_end = p; p 986 mail/ngx_mail_auth_http_module.c ctx->header_name_end = p; p 987 mail/ngx_mail_auth_http_module.c ctx->header_start = p; p 988 mail/ngx_mail_auth_http_module.c ctx->header_end = p; p 994 mail/ngx_mail_auth_http_module.c ctx->header_name_end = p; p 995 mail/ngx_mail_auth_http_module.c ctx->header_start = p; p 996 mail/ngx_mail_auth_http_module.c ctx->header_end = p; p 1008 mail/ngx_mail_auth_http_module.c ctx->header_start = p; p 1009 mail/ngx_mail_auth_http_module.c ctx->header_end = p; p 1013 mail/ngx_mail_auth_http_module.c ctx->header_start = p; p 1014 mail/ngx_mail_auth_http_module.c ctx->header_end = p; p 1017 mail/ngx_mail_auth_http_module.c ctx->header_start = p; p 1027 mail/ngx_mail_auth_http_module.c ctx->header_end = p; p 1031 mail/ngx_mail_auth_http_module.c ctx->header_end = p; p 1035 mail/ngx_mail_auth_http_module.c ctx->header_end = p; p 1076 mail/ngx_mail_auth_http_module.c ctx->response->pos = p; p 1083 mail/ngx_mail_auth_http_module.c ctx->response->pos = p + 1; p 1090 mail/ngx_mail_auth_http_module.c ctx->response->pos = p + 1; p 1272 mail/ngx_mail_auth_http_module.c u_char *p; p 1284 mail/ngx_mail_auth_http_module.c p = ngx_pnalloc(pool, escaped->len); p 1285 mail/ngx_mail_auth_http_module.c if (p == NULL) { p 1289 mail/ngx_mail_auth_http_module.c (void) ngx_escape_uri(p, text->data, text->len, NGX_ESCAPE_MAIL_AUTH); p 1291 mail/ngx_mail_auth_http_module.c escaped->data = p; p 1322 mail/ngx_mail_auth_http_module.c u_char *p; p 1355 mail/ngx_mail_auth_http_module.c p = ngx_pnalloc(cf->pool, len); p 1356 mail/ngx_mail_auth_http_module.c if (p == NULL) { p 1361 mail/ngx_mail_auth_http_module.c conf->header.data = p; p 1364 mail/ngx_mail_auth_http_module.c p = ngx_cpymem(p, header[i].key.data, header[i].key.len); p 1365 mail/ngx_mail_auth_http_module.c *p++ = ':'; *p++ = ' '; p 1366 mail/ngx_mail_auth_http_module.c p = ngx_cpymem(p, header[i].value.data, header[i].value.len); p 1367 mail/ngx_mail_auth_http_module.c *p++ = CR; *p++ = LF; p 532 mail/ngx_mail_core_module.c char *p = conf; p 538 mail/ngx_mail_core_module.c a = (ngx_array_t *) (p + cmd->offset); p 338 mail/ngx_mail_handler.c u_char *p, *last; p 359 mail/ngx_mail_handler.c p = plain.data; p 360 mail/ngx_mail_handler.c last = p + plain.len; p 362 mail/ngx_mail_handler.c while (p < last && *p++) { /* void */ } p 364 mail/ngx_mail_handler.c if (p == last) { p 370 mail/ngx_mail_handler.c s->login.data = p; p 372 mail/ngx_mail_handler.c while (p < last && *p) { p++; } p 374 mail/ngx_mail_handler.c if (p == last) { p 380 mail/ngx_mail_handler.c s->login.len = p++ - s->login.data; p 382 mail/ngx_mail_handler.c s->passwd.len = last - p; p 383 mail/ngx_mail_handler.c s->passwd.data = p; p 460 mail/ngx_mail_handler.c u_char *p; p 464 mail/ngx_mail_handler.c p = ngx_pnalloc(c->pool, len + ngx_base64_encoded_length(s->salt.len) + 2); p 465 mail/ngx_mail_handler.c if (p == NULL) { p 469 mail/ngx_mail_handler.c salt.data = ngx_cpymem(p, prefix, len); p 476 mail/ngx_mail_handler.c p[n++] = CR; p[n++] = LF; p 479 mail/ngx_mail_handler.c s->out.data = p; p 488 mail/ngx_mail_handler.c u_char *p, *last; p 507 mail/ngx_mail_handler.c p = s->login.data; p 508 mail/ngx_mail_handler.c last = p + s->login.len; p 510 mail/ngx_mail_handler.c while (p < last) { p 511 mail/ngx_mail_handler.c if (*p++ == ' ') { p 512 mail/ngx_mail_handler.c s->login.len = p - s->login.data - 1; p 513 mail/ngx_mail_handler.c s->passwd.len = last - p; p 514 mail/ngx_mail_handler.c s->passwd.data = p; p 729 mail/ngx_mail_handler.c u_char *p; p 734 mail/ngx_mail_handler.c p = ngx_snprintf(buf, len, " while %s", log->action); p 735 mail/ngx_mail_handler.c len -= p - buf; p 736 mail/ngx_mail_handler.c buf = p; p 741 mail/ngx_mail_handler.c p = ngx_snprintf(buf, len, ", client: %V", ctx->client); p 742 mail/ngx_mail_handler.c len -= p - buf; p 743 mail/ngx_mail_handler.c buf = p; p 748 mail/ngx_mail_handler.c return p; p 751 mail/ngx_mail_handler.c p = ngx_snprintf(buf, len, "%s, server: %V", p 754 mail/ngx_mail_handler.c len -= p - buf; p 755 mail/ngx_mail_handler.c buf = p; p 758 mail/ngx_mail_handler.c return p; p 761 mail/ngx_mail_handler.c p = ngx_snprintf(buf, len, ", login: \"%V\"", &s->login); p 762 mail/ngx_mail_handler.c len -= p - buf; p 763 mail/ngx_mail_handler.c buf = p; p 766 mail/ngx_mail_handler.c return p; p 769 mail/ngx_mail_handler.c p = ngx_snprintf(buf, len, ", upstream: %V", s->proxy->upstream.name); p 771 mail/ngx_mail_handler.c return p; p 103 mail/ngx_mail_imap_handler.c u_char *p, *dst, *src, *end; p 262 mail/ngx_mail_imap_handler.c p = s->tagged_line.data; p 265 mail/ngx_mail_imap_handler.c p = ngx_cpymem(p, s->text.data, s->text.len); p 268 mail/ngx_mail_imap_handler.c p = ngx_cpymem(p, s->tag.data, s->tag.len); p 269 mail/ngx_mail_imap_handler.c ngx_memcpy(p, s->out.data, s->out.len); p 140 mail/ngx_mail_imap_module.c u_char *p, *auth; p 187 mail/ngx_mail_imap_module.c p = ngx_pnalloc(cf->pool, size); p 188 mail/ngx_mail_imap_module.c if (p == NULL) { p 193 mail/ngx_mail_imap_module.c conf->capability.data = p; p 195 mail/ngx_mail_imap_module.c p = ngx_cpymem(p, "* CAPABILITY", sizeof("* CAPABILITY") - 1); p 198 mail/ngx_mail_imap_module.c *p++ = ' '; p 199 mail/ngx_mail_imap_module.c p = ngx_cpymem(p, c[i].data, c[i].len); p 202 mail/ngx_mail_imap_module.c auth = p; p 209 mail/ngx_mail_imap_module.c *p++ = ' '; p 210 mail/ngx_mail_imap_module.c p = ngx_cpymem(p, ngx_mail_imap_auth_methods_names[i].data, p 215 mail/ngx_mail_imap_module.c *p++ = CR; *p = LF; p 220 mail/ngx_mail_imap_module.c p = ngx_pnalloc(cf->pool, size); p 221 mail/ngx_mail_imap_module.c if (p == NULL) { p 226 mail/ngx_mail_imap_module.c conf->starttls_capability.data = p; p 228 mail/ngx_mail_imap_module.c p = ngx_cpymem(p, conf->capability.data, p 230 mail/ngx_mail_imap_module.c p = ngx_cpymem(p, " STARTTLS", sizeof(" STARTTLS") - 1); p 231 mail/ngx_mail_imap_module.c *p++ = CR; *p = LF; p 237 mail/ngx_mail_imap_module.c p = ngx_pnalloc(cf->pool, size); p 238 mail/ngx_mail_imap_module.c if (p == NULL) { p 243 mail/ngx_mail_imap_module.c conf->starttls_only_capability.data = p; p 245 mail/ngx_mail_imap_module.c p = ngx_cpymem(p, conf->capability.data, p 247 mail/ngx_mail_imap_module.c p = ngx_cpymem(p, " STARTTLS LOGINDISABLED", p 249 mail/ngx_mail_imap_module.c *p++ = CR; *p = LF; p 16 mail/ngx_mail_parse.c u_char ch, *p, *c, c0, c1, c2, c3; p 27 mail/ngx_mail_parse.c for (p = s->buffer->pos; p < s->buffer->last; p++) { p 28 mail/ngx_mail_parse.c ch = *p; p 37 mail/ngx_mail_parse.c if (p - c == 4) { p 109 mail/ngx_mail_parse.c s->arg_end = p; p 112 mail/ngx_mail_parse.c s->arg_end = p; p 117 mail/ngx_mail_parse.c s->arg_start = p; p 148 mail/ngx_mail_parse.c arg->len = p - s->arg_start; p 179 mail/ngx_mail_parse.c s->buffer->pos = p; p 186 mail/ngx_mail_parse.c s->buffer->pos = p + 1; p 214 mail/ngx_mail_parse.c u_char ch, *p, *c; p 233 mail/ngx_mail_parse.c for (p = s->buffer->pos; p < s->buffer->last; p++) { p 234 mail/ngx_mail_parse.c ch = *p; p 242 mail/ngx_mail_parse.c s->tag.len = p - s->buffer->start + 1; p 266 mail/ngx_mail_parse.c s->cmd_start = p; p 277 mail/ngx_mail_parse.c switch (p - c) { p 409 mail/ngx_mail_parse.c s->arg_end = p; p 412 mail/ngx_mail_parse.c s->arg_end = p; p 417 mail/ngx_mail_parse.c s->arg_start = p + 1; p 430 mail/ngx_mail_parse.c s->arg_start = p; p 457 mail/ngx_mail_parse.c arg->len = p - s->arg_start; p 520 mail/ngx_mail_parse.c s->buffer->pos = p + 1; p 521 mail/ngx_mail_parse.c s->arg_start = p + 1; p 543 mail/ngx_mail_parse.c arg->len = p + 1 - s->arg_start; p 579 mail/ngx_mail_parse.c s->buffer->pos = p; p 586 mail/ngx_mail_parse.c s->buffer->pos = p + 1; p 621 mail/ngx_mail_parse.c u_char ch, *p, *c, c0, c1, c2, c3; p 632 mail/ngx_mail_parse.c for (p = s->buffer->pos; p < s->buffer->last; p++) { p 633 mail/ngx_mail_parse.c ch = *p; p 642 mail/ngx_mail_parse.c if (p - c == 4) { p 697 mail/ngx_mail_parse.c } else if (p - c == 8) { p 743 mail/ngx_mail_parse.c s->arg_end = p; p 746 mail/ngx_mail_parse.c s->arg_end = p; p 751 mail/ngx_mail_parse.c s->arg_start = p; p 767 mail/ngx_mail_parse.c arg->len = p - s->arg_start; p 798 mail/ngx_mail_parse.c s->buffer->pos = p; p 805 mail/ngx_mail_parse.c s->buffer->pos = p + 1; p 34 mail/ngx_mail_pop3_handler.c u_char *p; p 55 mail/ngx_mail_pop3_handler.c p = ngx_cpymem(s->out.data, pop3_greeting, sizeof(pop3_greeting) - 3); p 56 mail/ngx_mail_pop3_handler.c *p++ = ' '; p 57 mail/ngx_mail_pop3_handler.c p = ngx_cpymem(p, s->salt.data, s->salt.len); p 59 mail/ngx_mail_pop3_handler.c s->out.len = p - s->out.data; p 137 mail/ngx_mail_pop3_module.c u_char *p; p 186 mail/ngx_mail_pop3_module.c p = ngx_pnalloc(cf->pool, size); p 187 mail/ngx_mail_pop3_module.c if (p == NULL) { p 192 mail/ngx_mail_pop3_module.c conf->capability.data = p; p 194 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, "+OK Capability list follows" CRLF, p 198 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, c[i].data, c[i].len); p 199 mail/ngx_mail_pop3_module.c *p++ = CR; *p++ = LF; p 203 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, "SASL LOGIN PLAIN CRAM-MD5" CRLF, p 207 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, "SASL LOGIN PLAIN" CRLF, p 211 mail/ngx_mail_pop3_module.c *p++ = '.'; *p++ = CR; *p = LF; p 216 mail/ngx_mail_pop3_module.c p = ngx_pnalloc(cf->pool, size); p 217 mail/ngx_mail_pop3_module.c if (p == NULL) { p 222 mail/ngx_mail_pop3_module.c conf->starttls_capability.data = p; p 224 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, conf->capability.data, p 227 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, "STLS" CRLF, sizeof("STLS" CRLF) - 1); p 228 mail/ngx_mail_pop3_module.c *p++ = '.'; *p++ = CR; *p = LF; p 239 mail/ngx_mail_pop3_module.c p = ngx_pnalloc(cf->pool, stls_only_size); p 240 mail/ngx_mail_pop3_module.c if (p == NULL) { p 245 mail/ngx_mail_pop3_module.c conf->starttls_only_capability.data = p; p 247 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, "+OK Capability list follows" CRLF, p 255 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, c[i].data, c[i].len); p 256 mail/ngx_mail_pop3_module.c *p++ = CR; *p++ = LF; p 259 mail/ngx_mail_pop3_module.c p = ngx_cpymem(p, "STLS" CRLF, sizeof("STLS" CRLF) - 1); p 260 mail/ngx_mail_pop3_module.c *p++ = '.'; *p++ = CR; *p = LF; p 115 mail/ngx_mail_proxy_module.c ngx_mail_proxy_ctx_t *p; p 135 mail/ngx_mail_proxy_module.c p = ngx_pcalloc(s->connection->pool, sizeof(ngx_mail_proxy_ctx_t)); p 136 mail/ngx_mail_proxy_module.c if (p == NULL) { p 141 mail/ngx_mail_proxy_module.c s->proxy = p; p 143 mail/ngx_mail_proxy_module.c p->upstream.sockaddr = peer->sockaddr; p 144 mail/ngx_mail_proxy_module.c p->upstream.socklen = peer->socklen; p 145 mail/ngx_mail_proxy_module.c p->upstream.name = &peer->name; p 146 mail/ngx_mail_proxy_module.c p->upstream.get = ngx_event_get_peer; p 147 mail/ngx_mail_proxy_module.c p->upstream.log = s->connection->log; p 148 mail/ngx_mail_proxy_module.c p->upstream.log_error = NGX_ERROR_ERR; p 150 mail/ngx_mail_proxy_module.c rc = ngx_event_connect_peer(&p->upstream); p 157 mail/ngx_mail_proxy_module.c ngx_add_timer(p->upstream.connection->read, cscf->timeout); p 159 mail/ngx_mail_proxy_module.c p->upstream.connection->data = s; p 160 mail/ngx_mail_proxy_module.c p->upstream.connection->pool = s->connection->pool; p 163 mail/ngx_mail_proxy_module.c p->upstream.connection->write->handler = ngx_mail_proxy_dummy_handler; p 179 mail/ngx_mail_proxy_module.c p->upstream.connection->read->handler = ngx_mail_proxy_pop3_handler; p 184 mail/ngx_mail_proxy_module.c p->upstream.connection->read->handler = ngx_mail_proxy_imap_handler; p 189 mail/ngx_mail_proxy_module.c p->upstream.connection->read->handler = ngx_mail_proxy_smtp_handler; p 216 mail/ngx_mail_proxy_module.c u_char *p; p 262 mail/ngx_mail_proxy_module.c p = ngx_cpymem(line.data, "USER ", sizeof("USER ") - 1); p 263 mail/ngx_mail_proxy_module.c p = ngx_cpymem(p, s->login.data, s->login.len); p 264 mail/ngx_mail_proxy_module.c *p++ = CR; *p = LF; p 281 mail/ngx_mail_proxy_module.c p = ngx_cpymem(line.data, "PASS ", sizeof("PASS ") - 1); p 282 mail/ngx_mail_proxy_module.c p = ngx_cpymem(p, s->passwd.data, s->passwd.len); p 283 mail/ngx_mail_proxy_module.c *p++ = CR; *p = LF; p 329 mail/ngx_mail_proxy_module.c u_char *p; p 416 mail/ngx_mail_proxy_module.c p = ngx_cpymem(line.data, s->passwd.data, s->passwd.len); p 417 mail/ngx_mail_proxy_module.c *p++ = CR; *p = LF; p 463 mail/ngx_mail_proxy_module.c u_char *p; p 515 mail/ngx_mail_proxy_module.c p = ngx_cpymem(line.data, p 519 mail/ngx_mail_proxy_module.c p = ngx_cpymem(p, cscf->server_name.data, cscf->server_name.len); p 520 mail/ngx_mail_proxy_module.c *p++ = CR; *p = LF; p 606 mail/ngx_mail_proxy_module.c p = ngx_cpymem(line.data, s->smtp_from.data, s->smtp_from.len); p 607 mail/ngx_mail_proxy_module.c *p++ = CR; *p = LF; p 626 mail/ngx_mail_proxy_module.c p = ngx_cpymem(line.data, s->smtp_to.data, s->smtp_to.len); p 627 mail/ngx_mail_proxy_module.c *p++ = CR; *p = LF; p 704 mail/ngx_mail_proxy_module.c u_char *p; p 742 mail/ngx_mail_proxy_module.c p = b->pos; p 747 mail/ngx_mail_proxy_module.c if (p[0] == '+' && p[1] == 'O' && p[2] == 'K') { p 756 mail/ngx_mail_proxy_module.c if (p[0] == '*' && p[1] == ' ' && p[2] == 'O' && p[3] == 'K') { p 763 mail/ngx_mail_proxy_module.c if (p[0] == '+') { p 769 mail/ngx_mail_proxy_module.c if (ngx_strncmp(p, s->tag.data, s->tag.len) == 0) { p 770 mail/ngx_mail_proxy_module.c p += s->tag.len; p 771 mail/ngx_mail_proxy_module.c if (p[0] == 'O' && p[1] == 'K') { p 784 mail/ngx_mail_proxy_module.c if (p[0] == '2' && p[1] == '2' && p[2] == '0') { p 793 mail/ngx_mail_proxy_module.c if (p[0] == '2' && p[1] == '5' && p[2] == '0') { p 801 mail/ngx_mail_proxy_module.c if (p[0] == '2' && (p[1] == '2' || p[1] == '5') && p[2] == '0') { p 818 mail/ngx_mail_proxy_module.c "upstream sent invalid response: \"%s\"", p); p 822 mail/ngx_mail_proxy_module.c s->out.len = b->last - p - 2; p 823 mail/ngx_mail_proxy_module.c s->out.data = p; p 141 mail/ngx_mail_smtp_module.c u_char *p, *auth, *last; p 165 mail/ngx_mail_smtp_module.c p = ngx_pnalloc(cf->pool, size); p 166 mail/ngx_mail_smtp_module.c if (p == NULL) { p 171 mail/ngx_mail_smtp_module.c conf->greeting.data = p; p 173 mail/ngx_mail_smtp_module.c *p++ = '2'; *p++ = '2'; *p++ = '0'; *p++ = ' '; p 174 mail/ngx_mail_smtp_module.c p = ngx_cpymem(p, cscf->server_name.data, cscf->server_name.len); p 175 mail/ngx_mail_smtp_module.c ngx_memcpy(p, " ESMTP ready" CRLF, sizeof(" ESMTP ready" CRLF) - 1); p 180 mail/ngx_mail_smtp_module.c p = ngx_pnalloc(cf->pool, size); p 181 mail/ngx_mail_smtp_module.c if (p == NULL) { p 186 mail/ngx_mail_smtp_module.c conf->server_name.data = p; p 188 mail/ngx_mail_smtp_module.c *p++ = '2'; *p++ = '5'; *p++ = '0'; *p++ = ' '; p 189 mail/ngx_mail_smtp_module.c p = ngx_cpymem(p, cscf->server_name.data, cscf->server_name.len); p 190 mail/ngx_mail_smtp_module.c *p++ = CR; *p = LF; p 220 mail/ngx_mail_smtp_module.c p = ngx_pnalloc(cf->pool, size); p 221 mail/ngx_mail_smtp_module.c if (p == NULL) { p 226 mail/ngx_mail_smtp_module.c conf->capability.data = p; p 228 mail/ngx_mail_smtp_module.c last = p; p 230 mail/ngx_mail_smtp_module.c *p++ = '2'; *p++ = '5'; *p++ = '0'; *p++ = '-'; p 231 mail/ngx_mail_smtp_module.c p = ngx_cpymem(p, cscf->server_name.data, cscf->server_name.len); p 232 mail/ngx_mail_smtp_module.c *p++ = CR; *p++ = LF; p 235 mail/ngx_mail_smtp_module.c last = p; p 236 mail/ngx_mail_smtp_module.c *p++ = '2'; *p++ = '5'; *p++ = '0'; *p++ = '-'; p 237 mail/ngx_mail_smtp_module.c p = ngx_cpymem(p, c[i].data, c[i].len); p 238 mail/ngx_mail_smtp_module.c *p++ = CR; *p++ = LF; p 241 mail/ngx_mail_smtp_module.c auth = p; p 244 mail/ngx_mail_smtp_module.c last = p; p 246 mail/ngx_mail_smtp_module.c *p++ = '2'; *p++ = '5'; *p++ = '0'; *p++ = ' '; p 247 mail/ngx_mail_smtp_module.c *p++ = 'A'; *p++ = 'U'; *p++ = 'T'; *p++ = 'H'; p 254 mail/ngx_mail_smtp_module.c *p++ = ' '; p 255 mail/ngx_mail_smtp_module.c p = ngx_cpymem(p, ngx_mail_smtp_auth_methods_names[i].data, p 260 mail/ngx_mail_smtp_module.c *p++ = CR; *p = LF; p 268 mail/ngx_mail_smtp_module.c p = ngx_pnalloc(cf->pool, size); p 269 mail/ngx_mail_smtp_module.c if (p == NULL) { p 274 mail/ngx_mail_smtp_module.c conf->starttls_capability.data = p; p 276 mail/ngx_mail_smtp_module.c p = ngx_cpymem(p, conf->capability.data, conf->capability.len); p 278 mail/ngx_mail_smtp_module.c p = ngx_cpymem(p, "250 STARTTLS" CRLF, sizeof("250 STARTTLS" CRLF) - 1); p 279 mail/ngx_mail_smtp_module.c *p++ = CR; *p = LF; p 281 mail/ngx_mail_smtp_module.c p = conf->starttls_capability.data p 283 mail/ngx_mail_smtp_module.c *p = '-'; p 288 mail/ngx_mail_smtp_module.c p = ngx_pnalloc(cf->pool, size); p 289 mail/ngx_mail_smtp_module.c if (p == NULL) { p 294 mail/ngx_mail_smtp_module.c conf->starttls_only_capability.data = p; p 296 mail/ngx_mail_smtp_module.c p = ngx_cpymem(p, conf->capability.data, auth - conf->capability.data); p 298 mail/ngx_mail_smtp_module.c ngx_memcpy(p, "250 STARTTLS" CRLF, sizeof("250 STARTTLS" CRLF) - 1); p 301 mail/ngx_mail_smtp_module.c p = conf->starttls_only_capability.data p 303 mail/ngx_mail_smtp_module.c *p = '-'; p 19 os/unix/ngx_alloc.c void *p; p 21 os/unix/ngx_alloc.c p = malloc(size); p 22 os/unix/ngx_alloc.c if (p == NULL) { p 27 os/unix/ngx_alloc.c ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, "malloc: %p:%uz", p, size); p 29 os/unix/ngx_alloc.c return p; p 36 os/unix/ngx_alloc.c void *p; p 38 os/unix/ngx_alloc.c p = ngx_alloc(size, log); p 40 os/unix/ngx_alloc.c if (p) { p 41 os/unix/ngx_alloc.c ngx_memzero(p, size); p 44 os/unix/ngx_alloc.c return p; p 53 os/unix/ngx_alloc.c void *p; p 56 os/unix/ngx_alloc.c err = posix_memalign(&p, alignment, size); p 61 os/unix/ngx_alloc.c p = NULL; p 65 os/unix/ngx_alloc.c "posix_memalign: %p:%uz @%uz", p, size, alignment); p 67 os/unix/ngx_alloc.c return p; p 75 os/unix/ngx_alloc.c void *p; p 77 os/unix/ngx_alloc.c p = memalign(alignment, size); p 78 os/unix/ngx_alloc.c if (p == NULL) { p 84 os/unix/ngx_alloc.c "memalign: %p:%uz @%uz", p, size, alignment); p 86 os/unix/ngx_alloc.c return p; p 48 os/unix/ngx_errno.c u_char *p; p 68 os/unix/ngx_errno.c p = malloc(len); p 69 os/unix/ngx_errno.c if (p == NULL) { p 73 os/unix/ngx_errno.c ngx_memcpy(p, msg, len); p 75 os/unix/ngx_errno.c ngx_sys_errlist[err].data = p; p 129 os/unix/ngx_files.h #define ngx_linefeed(p) *p++ = LF; p 179 os/unix/ngx_files.h #define ngx_realpath(p, r) realpath((char *) p, (char *) r) p 49 os/unix/ngx_freebsd_rfork_thread.h #define ngx_thread_join(t, p) p 86 os/unix/ngx_process_cycle.c u_char *p; p 125 os/unix/ngx_process_cycle.c p = ngx_cpymem(title, master_process, sizeof(master_process) - 1); p 127 os/unix/ngx_process_cycle.c *p++ = ' '; p 128 os/unix/ngx_process_cycle.c p = ngx_cpystrn(p, (u_char *) ngx_argv[i], size); p 36 os/unix/ngx_setproctitle.c u_char *p; p 46 os/unix/ngx_setproctitle.c p = ngx_alloc(size, log); p 47 os/unix/ngx_setproctitle.c if (p == NULL) { p 65 os/unix/ngx_setproctitle.c ngx_cpystrn(p, (u_char *) environ[i], size); p 66 os/unix/ngx_setproctitle.c environ[i] = (char *) p; p 67 os/unix/ngx_setproctitle.c p += size; p 80 os/unix/ngx_setproctitle.c u_char *p; p 91 os/unix/ngx_setproctitle.c p = ngx_cpystrn((u_char *) ngx_os_argv[0], (u_char *) "nginx: ", p 94 os/unix/ngx_setproctitle.c p = ngx_cpystrn(p, (u_char *) title, ngx_os_argv_last - (char *) p); p 104 os/unix/ngx_setproctitle.c if (size > (size_t) ((char *) p - ngx_os_argv[0])) { p 111 os/unix/ngx_setproctitle.c p = ngx_cpystrn(p, (u_char *) " (", ngx_os_argv_last - (char *) p); p 114 os/unix/ngx_setproctitle.c p = ngx_cpystrn(p, (u_char *) ngx_argv[i], p 115 os/unix/ngx_setproctitle.c ngx_os_argv_last - (char *) p); p 116 os/unix/ngx_setproctitle.c p = ngx_cpystrn(p, (u_char *) " ", ngx_os_argv_last - (char *) p); p 119 os/unix/ngx_setproctitle.c if (*(p - 1) == ' ') { p 120 os/unix/ngx_setproctitle.c *(p - 1) = ')'; p 126 os/unix/ngx_setproctitle.c if (ngx_os_argv_last - (char *) p) { p 127 os/unix/ngx_setproctitle.c ngx_memset(p, NGX_SETPROCTITLE_PAD, ngx_os_argv_last - (char *) p); p 62 os/unix/ngx_thread.h #define ngx_thread_join(t, p) pthread_join(t, p)