buf 114 core/ngx_buf.c cl->buf = b; buf 142 core/ngx_buf.c cl->buf = in->buf; buf 171 core/ngx_buf.c cl->buf = ngx_calloc_buf(p); buf 172 core/ngx_buf.c if (cl->buf == NULL) { buf 200 core/ngx_buf.c if (ngx_buf_size((*busy)->buf) != 0) { buf 204 core/ngx_buf.c if ((*busy)->buf->tag != tag) { buf 209 core/ngx_buf.c (*busy)->buf->pos = (*busy)->buf->start; buf 210 core/ngx_buf.c (*busy)->buf->last = (*busy)->buf->start; buf 59 core/ngx_buf.h ngx_buf_t *buf; buf 80 core/ngx_buf.h ngx_buf_t *buf; buf 107 core/ngx_conf_file.c ngx_buf_t buf; buf 141 core/ngx_conf_file.c cf->conf_file->buffer = &buf; buf 143 core/ngx_conf_file.c buf.start = ngx_alloc(NGX_CONF_BUFFER, cf->log); buf 144 core/ngx_conf_file.c if (buf.start == NULL) { buf 148 core/ngx_conf_file.c buf.pos = buf.start; buf 149 core/ngx_conf_file.c buf.last = buf.start; buf 150 core/ngx_conf_file.c buf.end = buf.last + NGX_CONF_BUFFER; buf 151 core/ngx_conf_file.c buf.temporary = 1; buf 14 core/ngx_cpuinfo.c static ngx_inline void ngx_cpuid(uint32_t i, uint32_t *buf); buf 20 core/ngx_cpuinfo.c ngx_cpuid(uint32_t i, uint32_t *buf) buf 41 core/ngx_cpuinfo.c : : "a" (i), "D" (buf) : "ecx", "edx", "esi", "memory" ); buf 49 core/ngx_cpuinfo.c ngx_cpuid(uint32_t i, uint32_t *buf) buf 59 core/ngx_cpuinfo.c buf[0] = eax; buf 60 core/ngx_cpuinfo.c buf[1] = ebx; buf 61 core/ngx_cpuinfo.c buf[2] = edx; buf 62 core/ngx_cpuinfo.c buf[3] = ecx; buf 1039 core/ngx_cycle.c u_char buf[NGX_INT64_LEN + 2]; buf 1057 core/ngx_cycle.c n = ngx_read_file(&file, buf, NGX_INT64_LEN + 2, 0); buf 1068 core/ngx_cycle.c while (n-- && (buf[n] == CR || buf[n] == LF)) { /* void */ } buf 1070 core/ngx_cycle.c pid = ngx_atoi(buf, ++n); buf 1075 core/ngx_cycle.c n, buf, file.name.data); buf 672 core/ngx_file.c char *buf; buf 681 core/ngx_file.c buf = NULL; buf 712 core/ngx_file.c buf = ngx_alloc(len, cf->log); buf 713 core/ngx_file.c if (buf == NULL) { buf 732 core/ngx_file.c n = ngx_read_fd(fd, buf, len); buf 747 core/ngx_file.c n = ngx_write_fd(nfd, buf, len); buf 791 core/ngx_file.c if (buf) { buf 792 core/ngx_file.c ngx_free(buf); buf 825 core/ngx_file.c ngx_str_t file, buf; buf 828 core/ngx_file.c ngx_str_null(&buf); buf 892 core/ngx_file.c if (file.len + NGX_DIR_MASK_LEN > buf.len) { buf 894 core/ngx_file.c if (buf.len) { buf 895 core/ngx_file.c ngx_free(buf.data); buf 898 core/ngx_file.c buf.len = tree->len + 1 + len + NGX_DIR_MASK_LEN; buf 900 core/ngx_file.c buf.data = ngx_alloc(buf.len + 1, ctx->log); buf 901 core/ngx_file.c if (buf.data == NULL) { buf 906 core/ngx_file.c p = ngx_cpymem(buf.data, tree->data, tree->len); buf 910 core/ngx_file.c file.data = buf.data; buf 976 core/ngx_file.c if (buf.len) { buf 977 core/ngx_file.c ngx_free(buf.data); buf 235 core/ngx_log.c ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err) buf 237 core/ngx_log.c if (buf > last - 50) { buf 241 core/ngx_log.c buf = last - 50; buf 242 core/ngx_log.c *buf++ = '.'; buf 243 core/ngx_log.c *buf++ = '.'; buf 244 core/ngx_log.c *buf++ = '.'; buf 248 core/ngx_log.c buf = ngx_slprintf(buf, last, ((unsigned) err < 0x80000000) buf 251 core/ngx_log.c buf = ngx_slprintf(buf, last, " (%d: ", err); buf 254 core/ngx_log.c buf = ngx_strerror(err, buf, last - buf); buf 256 core/ngx_log.c if (buf < last) { buf 257 core/ngx_log.c *buf++ = ')'; buf 260 core/ngx_log.c return buf; buf 44 core/ngx_log.h typedef u_char *(*ngx_log_handler_pt) (ngx_log_t *log, u_char *buf, size_t len); buf 203 core/ngx_log.h u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err); buf 30 core/ngx_output_chain.c ngx_output_chain_as_is(ngx_output_chain_ctx_t *ctx, ngx_buf_t *buf); buf 61 core/ngx_output_chain.c && !(in->buf->in_file && in->buf->file_last > NGX_SENDFILE_LIMIT) buf 63 core/ngx_output_chain.c && ngx_output_chain_as_is(ctx, in->buf)) buf 96 core/ngx_output_chain.c bsize = ngx_buf_size(ctx->in->buf); buf 98 core/ngx_output_chain.c if (bsize == 0 && !ngx_buf_special(ctx->in->buf)) { buf 103 core/ngx_output_chain.c ctx->in->buf->temporary, buf 104 core/ngx_output_chain.c ctx->in->buf->recycled, buf 105 core/ngx_output_chain.c ctx->in->buf->in_file, buf 106 core/ngx_output_chain.c ctx->in->buf->start, buf 107 core/ngx_output_chain.c ctx->in->buf->pos, buf 108 core/ngx_output_chain.c ctx->in->buf->last, buf 109 core/ngx_output_chain.c ctx->in->buf->file, buf 110 core/ngx_output_chain.c ctx->in->buf->file_pos, buf 111 core/ngx_output_chain.c ctx->in->buf->file_last); buf 120 core/ngx_output_chain.c if (ngx_output_chain_as_is(ctx, ctx->in->buf)) { buf 134 core/ngx_output_chain.c if (ctx->buf == NULL) { buf 149 core/ngx_output_chain.c ctx->buf = cl->buf; buf 180 core/ngx_output_chain.c if (ngx_buf_size(ctx->in->buf) == 0) { buf 189 core/ngx_output_chain.c cl->buf = ctx->buf; buf 193 core/ngx_output_chain.c ctx->buf = NULL; buf 218 core/ngx_output_chain.c ngx_output_chain_as_is(ngx_output_chain_ctx_t *ctx, ngx_buf_t *buf) buf 222 core/ngx_output_chain.c if (ngx_buf_special(buf)) { buf 226 core/ngx_output_chain.c if (buf->in_file && buf->file->directio) { buf 234 core/ngx_output_chain.c if (buf->in_file && buf->file_pos >= NGX_SENDFILE_LIMIT) { buf 242 core/ngx_output_chain.c if (!ngx_buf_in_memory(buf)) { buf 246 core/ngx_output_chain.c buf->in_file = 0; buf 249 core/ngx_output_chain.c if (ctx->need_in_memory && !ngx_buf_in_memory(buf)) { buf 253 core/ngx_output_chain.c if (ctx->need_in_temp && (buf->memory || buf->mmap)) { buf 267 core/ngx_output_chain.c ngx_buf_t *b, *buf; buf 285 core/ngx_output_chain.c buf = in->buf; buf 287 core/ngx_output_chain.c if (buf->in_file buf 288 core/ngx_output_chain.c && buf->file_pos < NGX_SENDFILE_LIMIT buf 289 core/ngx_output_chain.c && buf->file_last > NGX_SENDFILE_LIMIT) buf 298 core/ngx_output_chain.c ngx_memcpy(b, buf, sizeof(ngx_buf_t)); buf 300 core/ngx_output_chain.c if (ngx_buf_in_memory(buf)) { buf 301 core/ngx_output_chain.c buf->pos += (ssize_t) (NGX_SENDFILE_LIMIT - buf->file_pos); buf 302 core/ngx_output_chain.c b->last = buf->pos; buf 305 core/ngx_output_chain.c buf->file_pos = NGX_SENDFILE_LIMIT; buf 308 core/ngx_output_chain.c cl->buf = b; buf 311 core/ngx_output_chain.c cl->buf = buf; buf 316 core/ngx_output_chain.c cl->buf = in->buf; buf 336 core/ngx_output_chain.c in = ctx->in->buf; buf 362 core/ngx_output_chain.c ctx->buf = ngx_create_temp_buf(ctx->pool, size); buf 363 core/ngx_output_chain.c if (ctx->buf == NULL) { buf 387 core/ngx_output_chain.c in = ctx->in->buf; buf 449 core/ngx_output_chain.c ctx->buf = b; buf 464 core/ngx_output_chain.c src = ctx->in->buf; buf 465 core/ngx_output_chain.c dst = ctx->buf; buf 613 core/ngx_output_chain.c if (ngx_buf_size(in->buf) == 0 && !ngx_buf_special(in->buf)) { buf 618 core/ngx_output_chain.c size += ngx_buf_size(in->buf); buf 622 core/ngx_output_chain.c in->buf->flush, ngx_buf_size(in->buf)); buf 629 core/ngx_output_chain.c cl->buf = in->buf; buf 641 core/ngx_output_chain.c if (ngx_buf_size(cl->buf) == 0 && !ngx_buf_special(cl->buf)) { buf 647 core/ngx_output_chain.c size += ngx_buf_size(cl->buf); buf 69 core/ngx_resolver.c static void ngx_resolver_process_response(ngx_resolver_t *r, u_char *buf, buf 71 core/ngx_resolver.c static void ngx_resolver_process_a(ngx_resolver_t *r, u_char *buf, size_t n, buf 73 core/ngx_resolver.c static void ngx_resolver_process_ptr(ngx_resolver_t *r, u_char *buf, size_t n, buf 82 core/ngx_resolver.c u_char *buf, u_char *src, u_char *last); buf 90 core/ngx_resolver.c static u_char *ngx_resolver_log_error(ngx_log_t *log, u_char *buf, size_t len); buf 947 core/ngx_resolver.c u_char buf[NGX_RESOLVER_UDP_SIZE]; buf 952 core/ngx_resolver.c n = ngx_udp_recv(c, buf, NGX_RESOLVER_UDP_SIZE); buf 958 core/ngx_resolver.c ngx_resolver_process_response(c->data, buf, n); buf 965 core/ngx_resolver.c ngx_resolver_process_response(ngx_resolver_t *r, u_char *buf, size_t n) buf 980 core/ngx_resolver.c query = (ngx_resolver_query_t *) buf; buf 1036 core/ngx_resolver.c if (buf[i] == '\0') { buf 1040 core/ngx_resolver.c len = buf[i]; buf 1059 core/ngx_resolver.c qs = (ngx_resolver_qs_t *) &buf[i]; buf 1077 core/ngx_resolver.c ngx_resolver_process_a(r, buf, n, ident, code, nan, buf 1084 core/ngx_resolver.c ngx_resolver_process_ptr(r, buf, n, ident, code, nan); buf 1116 core/ngx_resolver.c ngx_resolver_process_a(ngx_resolver_t *r, u_char *buf, size_t last, buf 1130 core/ngx_resolver.c if (ngx_resolver_copy(r, &name, buf, &buf[12], &buf[last]) != NGX_OK) { buf 1199 core/ngx_resolver.c if (buf[i] & 0xc0) { buf 1204 core/ngx_resolver.c if (buf[i] == 0) { buf 1209 core/ngx_resolver.c i += 1 + buf[i]; buf 1227 core/ngx_resolver.c an = (ngx_resolver_an_t *) &buf[i]; buf 1240 core/ngx_resolver.c addr = htonl((buf[i] << 24) + (buf[i + 1] << 16) buf 1241 core/ngx_resolver.c + (buf[i + 2] << 8) + (buf[i + 3])); buf 1248 core/ngx_resolver.c cname = &buf[i] + sizeof(ngx_resolver_an_t); buf 1282 core/ngx_resolver.c if (buf[i] & 0xc0) { buf 1287 core/ngx_resolver.c if (buf[i] == 0) { buf 1292 core/ngx_resolver.c i += 1 + buf[i]; buf 1297 core/ngx_resolver.c an = (ngx_resolver_an_t *) &buf[i]; buf 1306 core/ngx_resolver.c addrs[n++] = htonl((buf[i] << 24) + (buf[i + 1] << 16) buf 1307 core/ngx_resolver.c + (buf[i + 2] << 8) + (buf[i + 3])); buf 1361 core/ngx_resolver.c if (ngx_resolver_copy(r, &name, buf, cname, &buf[last]) != NGX_OK) { buf 1417 core/ngx_resolver.c ngx_resolver_process_ptr(ngx_resolver_t *r, u_char *buf, size_t n, buf 1430 core/ngx_resolver.c if (ngx_resolver_copy(r, NULL, buf, &buf[12], &buf[n]) != NGX_OK) { buf 1438 core/ngx_resolver.c len = buf[i++]; buf 1440 core/ngx_resolver.c digit = ngx_atoi(&buf[i], len); buf 1449 core/ngx_resolver.c if (ngx_strcmp(&buf[i], "\7in-addr\4arpa") != 0) { buf 1510 core/ngx_resolver.c if (buf[i] != 0xc0 || buf[i + 1] != 0x0c) { buf 1515 core/ngx_resolver.c an = (ngx_resolver_an_t *) &buf[i + 2]; buf 1530 core/ngx_resolver.c if (ngx_resolver_copy(r, &name, buf, &buf[i], &buf[n]) != NGX_OK) { buf 1857 core/ngx_resolver.c ngx_resolver_copy(ngx_resolver_t *r, ngx_str_t *name, u_char *buf, u_char *src, buf 1882 core/ngx_resolver.c p = &buf[n]; buf 1938 core/ngx_resolver.c src = &buf[n]; buf 2080 core/ngx_resolver.c ngx_resolver_log_error(ngx_log_t *log, u_char *buf, size_t len) buf 2085 core/ngx_resolver.c p = buf; buf 2088 core/ngx_resolver.c p = ngx_snprintf(buf, len, " while %s", log->action); buf 2089 core/ngx_resolver.c len -= p - buf; buf 11 core/ngx_string.c static u_char *ngx_sprintf_num(u_char *buf, u_char *last, uint64_t ui64, buf 102 core/ngx_string.c ngx_sprintf(u_char *buf, const char *fmt, ...) buf 108 core/ngx_string.c p = ngx_vslprintf(buf, (void *) -1, fmt, args); buf 116 core/ngx_string.c ngx_snprintf(u_char *buf, size_t max, const char *fmt, ...) buf 122 core/ngx_string.c p = ngx_vslprintf(buf, buf + max, fmt, args); buf 130 core/ngx_string.c ngx_slprintf(u_char *buf, u_char *last, const char *fmt, ...) buf 136 core/ngx_string.c p = ngx_vslprintf(buf, last, fmt, args); buf 144 core/ngx_string.c ngx_vslprintf(u_char *buf, u_char *last, const char *fmt, va_list args) buf 157 core/ngx_string.c while (*fmt && buf < last) { buf 234 core/ngx_string.c len = ngx_min(((size_t) (last - buf)), v->len); buf 235 core/ngx_string.c buf = ngx_cpymem(buf, v->data, len); buf 243 core/ngx_string.c len = ngx_min(((size_t) (last - buf)), vv->len); buf 244 core/ngx_string.c buf = ngx_cpymem(buf, vv->data, len); buf 253 core/ngx_string.c while (*p && buf < last) { buf 254 core/ngx_string.c *buf++ = *p++; buf 258 core/ngx_string.c len = ngx_min(((size_t) (last - buf)), slen); buf 259 core/ngx_string.c buf = ngx_cpymem(buf, p, len); buf 362 core/ngx_string.c *buf++ = '-'; buf 368 core/ngx_string.c buf = ngx_sprintf_num(buf, last, ui64, zero, 0, width); buf 372 core/ngx_string.c if (buf < last) { buf 373 core/ngx_string.c *buf++ = '.'; buf 388 core/ngx_string.c buf = ngx_sprintf_num(buf, last, ui64, '0', 0, frac_width); buf 412 core/ngx_string.c *buf++ = (u_char) (d & 0xff); buf 418 core/ngx_string.c *buf++ = '\0'; buf 425 core/ngx_string.c *buf++ = CR; buf 427 core/ngx_string.c *buf++ = LF; buf 433 core/ngx_string.c *buf++ = '%'; buf 439 core/ngx_string.c *buf++ = *fmt++; buf 446 core/ngx_string.c *buf++ = '-'; buf 454 core/ngx_string.c buf = ngx_sprintf_num(buf, last, ui64, zero, hex, width); buf 459 core/ngx_string.c *buf++ = *fmt++; buf 463 core/ngx_string.c return buf; buf 468 core/ngx_string.c ngx_sprintf_num(u_char *buf, u_char *last, uint64_t ui64, u_char zero, buf 537 core/ngx_string.c while (len++ < width && buf < last) { buf 538 core/ngx_string.c *buf++ = zero; buf 545 core/ngx_string.c if (buf + len > last) { buf 546 core/ngx_string.c len = last - buf; buf 549 core/ngx_string.c return ngx_cpymem(buf, p, len); buf 85 core/ngx_string.h #define ngx_memzero(buf, n) (void) memset(buf, 0, n) buf 86 core/ngx_string.h #define ngx_memset(buf, c, n) (void) memset(buf, c, n) buf 148 core/ngx_string.h u_char * ngx_cdecl ngx_sprintf(u_char *buf, const char *fmt, ...); buf 149 core/ngx_string.h u_char * ngx_cdecl ngx_snprintf(u_char *buf, size_t max, const char *fmt, ...); buf 150 core/ngx_string.h u_char * ngx_cdecl ngx_slprintf(u_char *buf, u_char *last, const char *fmt, buf 152 core/ngx_string.h u_char *ngx_vslprintf(u_char *buf, u_char *last, const char *fmt, va_list args); buf 153 core/ngx_string.h #define ngx_vsnprintf(buf, max, fmt, args) \ buf 154 core/ngx_string.h ngx_vslprintf(buf, buf + (max), fmt, args) buf 233 core/ngx_times.c ngx_http_time(u_char *buf, time_t t) buf 239 core/ngx_times.c return ngx_sprintf(buf, "%s, %02d %s %4d %02d:%02d:%02d GMT", buf 251 core/ngx_times.c ngx_http_cookie_time(u_char *buf, time_t t) buf 262 core/ngx_times.c return ngx_sprintf(buf, buf 25 core/ngx_times.h u_char *ngx_http_time(u_char *buf, time_t t); buf 26 core/ngx_times.h u_char *ngx_http_cookie_time(u_char *buf, time_t t); buf 541 event/ngx_event.h u_char *ngx_accept_log_error(ngx_log_t *log, u_char *buf, size_t len); buf 552 event/ngx_event.h u_char *ngx_acceptex_log_error(ngx_log_t *log, u_char *buf, size_t len); buf 423 event/ngx_event_accept.c ngx_accept_log_error(ngx_log_t *log, u_char *buf, size_t len) buf 425 event/ngx_event_accept.c return ngx_snprintf(buf, len, " while accepting new connection on %V", buf 562 event/ngx_event_openssl.c char buf[129], *s, *d; buf 571 event/ngx_event_openssl.c SSL_CIPHER_description(cipher, &buf[1], 128); buf 573 event/ngx_event_openssl.c for (s = &buf[1], d = buf; *s; s++) { buf 593 event/ngx_event_openssl.c SSL_get_version(c->ssl->connection), &buf[1]); buf 703 event/ngx_event_openssl.c b = cl->buf; buf 721 event/ngx_event_openssl.c b = cl->buf; buf 743 event/ngx_event_openssl.c ngx_ssl_recv(ngx_connection_t *c, u_char *buf, size_t size) buf 769 event/ngx_event_openssl.c n = SSL_read(c->ssl->connection, buf, size); buf 787 event/ngx_event_openssl.c buf += n; buf 928 event/ngx_event_openssl.c ngx_buf_t *buf; buf 933 event/ngx_event_openssl.c if (ngx_buf_special(in->buf)) { buf 938 event/ngx_event_openssl.c n = ngx_ssl_write(c, in->buf->pos, in->buf->last - in->buf->pos); buf 949 event/ngx_event_openssl.c in->buf->pos += n; buf 951 event/ngx_event_openssl.c if (in->buf->pos == in->buf->last) { buf 966 event/ngx_event_openssl.c buf = c->ssl->buf; buf 968 event/ngx_event_openssl.c if (buf == NULL) { buf 969 event/ngx_event_openssl.c buf = ngx_create_temp_buf(c->pool, NGX_SSL_BUFSIZE); buf 970 event/ngx_event_openssl.c if (buf == NULL) { buf 974 event/ngx_event_openssl.c c->ssl->buf = buf; buf 977 event/ngx_event_openssl.c if (buf->start == NULL) { buf 978 event/ngx_event_openssl.c buf->start = ngx_palloc(c->pool, NGX_SSL_BUFSIZE); buf 979 event/ngx_event_openssl.c if (buf->start == NULL) { buf 983 event/ngx_event_openssl.c buf->pos = buf->start; buf 984 event/ngx_event_openssl.c buf->last = buf->start; buf 985 event/ngx_event_openssl.c buf->end = buf->start + NGX_SSL_BUFSIZE; buf 993 event/ngx_event_openssl.c while (in && buf->last < buf->end && send < limit) { buf 994 event/ngx_event_openssl.c if (in->buf->last_buf || in->buf->flush) { buf 998 event/ngx_event_openssl.c if (ngx_buf_special(in->buf)) { buf 1003 event/ngx_event_openssl.c size = in->buf->last - in->buf->pos; buf 1005 event/ngx_event_openssl.c if (size > buf->end - buf->last) { buf 1006 event/ngx_event_openssl.c size = buf->end - buf->last; buf 1017 event/ngx_event_openssl.c ngx_memcpy(buf->last, in->buf->pos, size); buf 1019 event/ngx_event_openssl.c buf->last += size; buf 1020 event/ngx_event_openssl.c in->buf->pos += size; buf 1023 event/ngx_event_openssl.c if (in->buf->pos == in->buf->last) { buf 1028 event/ngx_event_openssl.c size = buf->last - buf->pos; buf 1030 event/ngx_event_openssl.c if (!flush && buf->last < buf->end && c->ssl->buffer) { buf 1034 event/ngx_event_openssl.c n = ngx_ssl_write(c, buf->pos, size); buf 1045 event/ngx_event_openssl.c buf->pos += n; buf 1052 event/ngx_event_openssl.c if (buf->pos == buf->last) { buf 1053 event/ngx_event_openssl.c buf->pos = buf->start; buf 1054 event/ngx_event_openssl.c buf->last = buf->start; buf 1062 event/ngx_event_openssl.c if (buf->pos < buf->last) { buf 1164 event/ngx_event_openssl.c if (c->ssl->buf && c->ssl->buf->start) { buf 1165 event/ngx_event_openssl.c if (ngx_pfree(c->pool, c->ssl->buf->start) == NGX_OK) { buf 1166 event/ngx_event_openssl.c c->ssl->buf->start = NULL; buf 1573 event/ngx_event_openssl.c u_char buf[NGX_SSL_MAX_SESSION_SIZE]; buf 1583 event/ngx_event_openssl.c p = buf; buf 1633 event/ngx_event_openssl.c ngx_memcpy(cached_sess, buf, len); buf 1695 event/ngx_event_openssl.c u_char buf[NGX_SSL_MAX_SESSION_SIZE]; buf 1741 event/ngx_event_openssl.c ngx_memcpy(buf, sess_id->session, sess_id->len); buf 1745 event/ngx_event_openssl.c p = buf; buf 1984 event/ngx_event_openssl.c u_char *p, *buf; buf 1991 event/ngx_event_openssl.c buf = ngx_alloc(len, c->log); buf 1992 event/ngx_event_openssl.c if (buf == NULL) { buf 1999 event/ngx_event_openssl.c ngx_free(buf); buf 2003 event/ngx_event_openssl.c p = buf; buf 2006 event/ngx_event_openssl.c ngx_hex_dump(s->data, buf, len); buf 2008 event/ngx_event_openssl.c ngx_free(buf); buf 37 event/ngx_event_openssl.h ngx_buf_t *buf; buf 140 event/ngx_event_openssl.h ssize_t ngx_ssl_recv(ngx_connection_t *c, u_char *buf, size_t size); buf 17 event/ngx_event_pipe.c static ngx_inline void ngx_event_pipe_remove_shadow_links(ngx_buf_t *buf); buf 19 event/ngx_event_pipe.c ngx_buf_t *buf); buf 199 event/ngx_event_pipe.c chain->buf = b; buf 289 event/ngx_event_pipe.c ngx_event_pipe_remove_shadow_links(chain->buf); buf 309 event/ngx_event_pipe.c ngx_event_pipe_remove_shadow_links(cl->buf); buf 311 event/ngx_event_pipe.c size = cl->buf->end - cl->buf->last; buf 314 event/ngx_event_pipe.c cl->buf->last = cl->buf->end; buf 316 event/ngx_event_pipe.c /* STUB */ cl->buf->num = p->num++; buf 318 event/ngx_event_pipe.c if (p->input_filter(p, cl->buf) == NGX_ERROR) { buf 328 event/ngx_event_pipe.c cl->buf->last += n; buf 348 event/ngx_event_pipe.c (cl->buf->shadow ? 1 : 0), buf 349 event/ngx_event_pipe.c cl->buf->temporary, cl->buf->in_file, buf 350 event/ngx_event_pipe.c cl->buf->start, cl->buf->pos, buf 351 event/ngx_event_pipe.c cl->buf->last - cl->buf->pos, buf 352 event/ngx_event_pipe.c cl->buf->file_pos, buf 353 event/ngx_event_pipe.c cl->buf->file_last - cl->buf->file_pos); buf 361 event/ngx_event_pipe.c (cl->buf->shadow ? 1 : 0), buf 362 event/ngx_event_pipe.c cl->buf->temporary, cl->buf->in_file, buf 363 event/ngx_event_pipe.c cl->buf->start, cl->buf->pos, buf 364 event/ngx_event_pipe.c cl->buf->last - cl->buf->pos, buf 365 event/ngx_event_pipe.c cl->buf->file_pos, buf 366 event/ngx_event_pipe.c cl->buf->file_last - cl->buf->file_pos); buf 374 event/ngx_event_pipe.c (cl->buf->shadow ? 1 : 0), buf 375 event/ngx_event_pipe.c cl->buf->temporary, cl->buf->in_file, buf 376 event/ngx_event_pipe.c cl->buf->start, cl->buf->pos, buf 377 event/ngx_event_pipe.c cl->buf->last - cl->buf->pos, buf 378 event/ngx_event_pipe.c cl->buf->file_pos, buf 379 event/ngx_event_pipe.c cl->buf->file_last - cl->buf->file_pos); buf 387 event/ngx_event_pipe.c (cl->buf->shadow ? 1 : 0), buf 388 event/ngx_event_pipe.c cl->buf->temporary, cl->buf->in_file, buf 389 event/ngx_event_pipe.c cl->buf->start, cl->buf->pos, buf 390 event/ngx_event_pipe.c cl->buf->last - cl->buf->pos, buf 391 event/ngx_event_pipe.c cl->buf->file_pos, buf 392 event/ngx_event_pipe.c cl->buf->file_last - cl->buf->file_pos); buf 399 event/ngx_event_pipe.c /* STUB */ p->free_raw_bufs->buf->num = p->num++; buf 401 event/ngx_event_pipe.c if (p->input_filter(p, p->free_raw_bufs->buf) == NGX_ERROR) { buf 409 event/ngx_event_pipe.c if (cl->buf->shadow == NULL) { buf 410 event/ngx_event_pipe.c ngx_pfree(p->pool, cl->buf->start); buf 453 event/ngx_event_pipe.c cl->buf->recycled = 0; buf 461 event/ngx_event_pipe.c cl->buf->recycled = 0; buf 479 event/ngx_event_pipe.c cl->buf->recycled = 0; buf 494 event/ngx_event_pipe.c file.buf = p->buf_to_file; buf 527 event/ngx_event_pipe.c if (cl->buf->recycled) { buf 528 event/ngx_event_pipe.c if (prev == cl->buf->start) { buf 532 event/ngx_event_pipe.c bsize += cl->buf->end - cl->buf->start; buf 533 event/ngx_event_pipe.c prev = cl->buf->start; buf 555 event/ngx_event_pipe.c if (cl->buf->recycled buf 556 event/ngx_event_pipe.c && bsize + cl->buf->last - cl->buf->pos > p->busy_size) buf 564 event/ngx_event_pipe.c ngx_event_pipe_free_shadow_raw_buf(&p->free_raw_bufs, cl->buf); buf 571 event/ngx_event_pipe.c cl->buf->last_shadow, buf 572 event/ngx_event_pipe.c cl->buf->pos, buf 573 event/ngx_event_pipe.c cl->buf->last - cl->buf->pos); buf 575 event/ngx_event_pipe.c if (cl->buf->recycled buf 576 event/ngx_event_pipe.c && cl->buf->last_shadow buf 577 event/ngx_event_pipe.c && bsize + cl->buf->last - cl->buf->pos > p->busy_size) buf 595 event/ngx_event_pipe.c prev_last_shadow = cl->buf->last_shadow; buf 603 event/ngx_event_pipe.c if (cl->buf->recycled) { buf 604 event/ngx_event_pipe.c bsize += cl->buf->last - cl->buf->pos; buf 645 event/ngx_event_pipe.c if (cl->buf->temp_file) { buf 652 event/ngx_event_pipe.c if (cl->buf->file_last == p->temp_file->offset) { buf 661 event/ngx_event_pipe.c if (cl->buf->last_shadow) { buf 662 event/ngx_event_pipe.c if (ngx_event_pipe_add_free_buf(p, cl->buf->shadow) != NGX_OK) { buf 666 event/ngx_event_pipe.c cl->buf->last_shadow = 0; buf 669 event/ngx_event_pipe.c cl->buf->shadow = NULL; buf 685 event/ngx_event_pipe.c fl.buf = p->buf_to_file; buf 703 event/ngx_event_pipe.c bsize = cl->buf->last - cl->buf->pos; buf 707 event/ngx_event_pipe.c cl->buf->start, cl->buf->pos, bsize); buf 762 event/ngx_event_pipe.c b = cl->buf; buf 785 event/ngx_event_pipe.c tl->buf = b->shadow; buf 805 event/ngx_event_pipe.c ngx_event_pipe_copy_input_filter(ngx_event_pipe_t *p, ngx_buf_t *buf) buf 810 event/ngx_event_pipe.c if (buf->pos == buf->last) { buf 816 event/ngx_event_pipe.c b = cl->buf; buf 827 event/ngx_event_pipe.c ngx_memcpy(b, buf, sizeof(ngx_buf_t)); buf 828 event/ngx_event_pipe.c b->shadow = buf; buf 832 event/ngx_event_pipe.c buf->shadow = b; buf 839 event/ngx_event_pipe.c cl->buf = b; buf 856 event/ngx_event_pipe.c ngx_event_pipe_remove_shadow_links(ngx_buf_t *buf) buf 860 event/ngx_event_pipe.c b = buf->shadow; buf 882 event/ngx_event_pipe.c buf->shadow = NULL; buf 887 event/ngx_event_pipe.c ngx_event_pipe_free_shadow_raw_buf(ngx_chain_t **free, ngx_buf_t *buf) buf 892 event/ngx_event_pipe.c if (buf->shadow == NULL) { buf 896 event/ngx_event_pipe.c for (s = buf->shadow; !s->last_shadow; s = s->shadow) { /* void */ } buf 901 event/ngx_event_pipe.c if (cl->buf == s) { buf 906 event/ngx_event_pipe.c if (cl->buf->shadow) { buf 929 event/ngx_event_pipe.c cl->buf = b; buf 938 event/ngx_event_pipe.c if (p->free_raw_bufs->buf->pos == p->free_raw_bufs->buf->last) { buf 980 event/ngx_event_pipe.c if (cl->buf->last_shadow) { buf 981 event/ngx_event_pipe.c if (ngx_event_pipe_add_free_buf(p, cl->buf->shadow) != NGX_OK) { buf 985 event/ngx_event_pipe.c cl->buf->last_shadow = 0; buf 988 event/ngx_event_pipe.c cl->buf->shadow = NULL; buf 19 event/ngx_event_pipe.h ngx_buf_t *buf); buf 90 event/ngx_event_pipe.h ngx_int_t ngx_event_pipe_copy_input_filter(ngx_event_pipe_t *p, ngx_buf_t *buf); buf 170 http/modules/ngx_http_addition_filter_module.c if (cl->buf->last_buf) { buf 171 http/modules/ngx_http_addition_filter_module.c cl->buf->last_buf = 0; buf 172 http/modules/ngx_http_addition_filter_module.c cl->buf->sync = 1; buf 109 http/modules/ngx_http_auth_basic_module.c u_char buf[NGX_HTTP_AUTH_BUF_SIZE]; buf 182 http/modules/ngx_http_auth_basic_module.c n = ngx_read_file(&file, buf + left, NGX_HTTP_AUTH_BUF_SIZE - left, buf 200 http/modules/ngx_http_auth_basic_module.c if (buf[i] == '#' || buf[i] == CR) { buf 205 http/modules/ngx_http_auth_basic_module.c if (buf[i] == LF) { buf 210 http/modules/ngx_http_auth_basic_module.c if (buf[i] != r->headers_in.user.data[login]) { buf 225 http/modules/ngx_http_auth_basic_module.c if (buf[i] == LF || buf[i] == CR || buf[i] == ':') { buf 226 http/modules/ngx_http_auth_basic_module.c buf[i] = '\0'; buf 231 http/modules/ngx_http_auth_basic_module.c pwd.data = &buf[passwd]; buf 240 http/modules/ngx_http_auth_basic_module.c if (buf[i] == LF) { buf 251 http/modules/ngx_http_auth_basic_module.c ngx_memmove(buf, &buf[passwd], left); buf 270 http/modules/ngx_http_auth_basic_module.c ngx_cpystrn(pwd.data, &buf[passwd], pwd.len + 1); buf 15 http/modules/ngx_http_autoindex_module.c ngx_buf_t *buf; buf 546 http/modules/ngx_http_autoindex_module.c out.buf = b; buf 580 http/modules/ngx_http_autoindex_module.c if (ctx->buf) { buf 582 http/modules/ngx_http_autoindex_module.c if ((size_t) (ctx->buf->end - ctx->buf->last) >= size) { buf 583 http/modules/ngx_http_autoindex_module.c return ctx->buf; buf 586 http/modules/ngx_http_autoindex_module.c ctx->size += ctx->buf->last - ctx->buf->pos; buf 589 http/modules/ngx_http_autoindex_module.c ctx->buf = ngx_create_temp_buf(ctx->pool, ctx->alloc_size); buf 590 http/modules/ngx_http_autoindex_module.c if (ctx->buf == NULL) { buf 599 http/modules/ngx_http_autoindex_module.c cl->buf = ctx->buf; buf 605 http/modules/ngx_http_autoindex_module.c return ctx->buf; buf 100 http/modules/ngx_http_charset_filter_module.c ngx_buf_t *buf, ngx_http_charset_ctx_t *ctx); buf 102 http/modules/ngx_http_charset_filter_module.c ngx_buf_t *buf, ngx_http_charset_ctx_t *ctx); buf 561 http/modules/ngx_http_charset_filter_module.c b = cl->buf; buf 570 http/modules/ngx_http_charset_filter_module.c (*ll)->buf = b; buf 609 http/modules/ngx_http_charset_filter_module.c b = cl->buf; buf 639 http/modules/ngx_http_charset_filter_module.c (void) ngx_http_charset_recode(cl->buf, ctx->table); buf 680 http/modules/ngx_http_charset_filter_module.c ngx_http_charset_recode_from_utf8(ngx_pool_t *pool, ngx_buf_t *buf, buf 690 http/modules/ngx_http_charset_filter_module.c src = buf->pos; buf 694 http/modules/ngx_http_charset_filter_module.c for ( /* void */ ; src < buf->last; src++) { buf 700 http/modules/ngx_http_charset_filter_module.c len = src - buf->pos; buf 708 http/modules/ngx_http_charset_filter_module.c b = out->buf; buf 710 http/modules/ngx_http_charset_filter_module.c b->temporary = buf->temporary; buf 711 http/modules/ngx_http_charset_filter_module.c b->memory = buf->memory; buf 712 http/modules/ngx_http_charset_filter_module.c b->mmap = buf->mmap; buf 713 http/modules/ngx_http_charset_filter_module.c b->flush = buf->flush; buf 715 http/modules/ngx_http_charset_filter_module.c b->pos = buf->pos; buf 718 http/modules/ngx_http_charset_filter_module.c out->buf = b; buf 721 http/modules/ngx_http_charset_filter_module.c size = buf->last - src; buf 732 http/modules/ngx_http_charset_filter_module.c b->shadow = buf; buf 739 http/modules/ngx_http_charset_filter_module.c size = len + buf->last - src; buf 740 http/modules/ngx_http_charset_filter_module.c src = buf->pos; buf 759 http/modules/ngx_http_charset_filter_module.c b = cl->buf; buf 770 http/modules/ngx_http_charset_filter_module.c out->buf = buf; buf 786 http/modules/ngx_http_charset_filter_module.c if (p == buf->last) { buf 814 http/modules/ngx_http_charset_filter_module.c b = out->buf; buf 816 http/modules/ngx_http_charset_filter_module.c b->pos = buf->pos; buf 817 http/modules/ngx_http_charset_filter_module.c b->last = buf->last; buf 819 http/modules/ngx_http_charset_filter_module.c b->shadow = buf; buf 828 http/modules/ngx_http_charset_filter_module.c size = buf->last - buf->pos; buf 841 http/modules/ngx_http_charset_filter_module.c b = cl->buf; buf 874 http/modules/ngx_http_charset_filter_module.c while (src < buf->last) { buf 879 http/modules/ngx_http_charset_filter_module.c size = buf->last - src + NGX_HTML_ENTITY_LEN; buf 889 http/modules/ngx_http_charset_filter_module.c b = cl->buf; buf 898 http/modules/ngx_http_charset_filter_module.c len = buf->last - src; buf 950 http/modules/ngx_http_charset_filter_module.c b->last_buf = buf->last_buf; buf 951 http/modules/ngx_http_charset_filter_module.c b->last_in_chain = buf->last_in_chain; buf 952 http/modules/ngx_http_charset_filter_module.c b->flush = buf->flush; buf 954 http/modules/ngx_http_charset_filter_module.c b->shadow = buf; buf 961 http/modules/ngx_http_charset_filter_module.c ngx_http_charset_recode_to_utf8(ngx_pool_t *pool, ngx_buf_t *buf, buf 971 http/modules/ngx_http_charset_filter_module.c for (src = buf->pos; src < buf->last; src++) { buf 984 http/modules/ngx_http_charset_filter_module.c out->buf = buf; buf 996 http/modules/ngx_http_charset_filter_module.c len = src - buf->pos; buf 1004 http/modules/ngx_http_charset_filter_module.c b = out->buf; buf 1006 http/modules/ngx_http_charset_filter_module.c b->temporary = buf->temporary; buf 1007 http/modules/ngx_http_charset_filter_module.c b->memory = buf->memory; buf 1008 http/modules/ngx_http_charset_filter_module.c b->mmap = buf->mmap; buf 1009 http/modules/ngx_http_charset_filter_module.c b->flush = buf->flush; buf 1011 http/modules/ngx_http_charset_filter_module.c b->pos = buf->pos; buf 1014 http/modules/ngx_http_charset_filter_module.c out->buf = b; buf 1017 http/modules/ngx_http_charset_filter_module.c size = buf->last - src; buf 1023 http/modules/ngx_http_charset_filter_module.c size = buf->last - src; buf 1026 http/modules/ngx_http_charset_filter_module.c src = buf->pos; buf 1043 http/modules/ngx_http_charset_filter_module.c b = cl->buf; buf 1046 http/modules/ngx_http_charset_filter_module.c while (src < buf->last) { buf 1054 http/modules/ngx_http_charset_filter_module.c size = buf->last - src; buf 1065 http/modules/ngx_http_charset_filter_module.c b = cl->buf; buf 1077 http/modules/ngx_http_charset_filter_module.c b->last_buf = buf->last_buf; buf 1078 http/modules/ngx_http_charset_filter_module.c b->last_in_chain = buf->last_in_chain; buf 1079 http/modules/ngx_http_charset_filter_module.c b->flush = buf->flush; buf 1081 http/modules/ngx_http_charset_filter_module.c b->shadow = buf; buf 1097 http/modules/ngx_http_charset_filter_module.c cl->buf->shadow = NULL; buf 1108 http/modules/ngx_http_charset_filter_module.c cl->buf = ngx_calloc_buf(pool); buf 1109 http/modules/ngx_http_charset_filter_module.c if (cl->buf == NULL) { buf 1115 http/modules/ngx_http_charset_filter_module.c cl->buf->tag = (ngx_buf_tag_t) &ngx_http_charset_filter_module; buf 1132 http/modules/ngx_http_charset_filter_module.c b = cl->buf; buf 1151 http/modules/ngx_http_charset_filter_module.c cl->buf = ngx_create_temp_buf(pool, size); buf 1152 http/modules/ngx_http_charset_filter_module.c if (cl->buf == NULL) { buf 1158 http/modules/ngx_http_charset_filter_module.c cl->buf->temporary = 1; buf 1159 http/modules/ngx_http_charset_filter_module.c cl->buf->tag = (ngx_buf_tag_t) &ngx_http_charset_filter_module; buf 95 http/modules/ngx_http_chunked_filter_module.c out.buf = NULL; buf 103 http/modules/ngx_http_chunked_filter_module.c "http chunk: %d", ngx_buf_size(cl->buf)); buf 105 http/modules/ngx_http_chunked_filter_module.c size += ngx_buf_size(cl->buf); buf 107 http/modules/ngx_http_chunked_filter_module.c if (cl->buf->flush buf 108 http/modules/ngx_http_chunked_filter_module.c || cl->buf->sync buf 109 http/modules/ngx_http_chunked_filter_module.c || ngx_buf_in_memory(cl->buf) buf 110 http/modules/ngx_http_chunked_filter_module.c || cl->buf->in_file) buf 117 http/modules/ngx_http_chunked_filter_module.c tl->buf = cl->buf; buf 146 http/modules/ngx_http_chunked_filter_module.c out.buf = b; buf 149 http/modules/ngx_http_chunked_filter_module.c if (cl->buf->last_buf) { buf 160 http/modules/ngx_http_chunked_filter_module.c cl->buf->last_buf = 0; buf 164 http/modules/ngx_http_chunked_filter_module.c out.buf = b; buf 186 http/modules/ngx_http_chunked_filter_module.c tail.buf = b; buf 134 http/modules/ngx_http_fastcgi_module.c ngx_buf_t *buf); buf 834 http/modules/ngx_http_fastcgi_module.c cl->buf = b; buf 1006 http/modules/ngx_http_fastcgi_module.c if (body->buf->in_file) { buf 1007 http/modules/ngx_http_fastcgi_module.c file_pos = body->buf->file_pos; buf 1010 http/modules/ngx_http_fastcgi_module.c pos = body->buf->pos; buf 1021 http/modules/ngx_http_fastcgi_module.c ngx_memcpy(b, body->buf, sizeof(ngx_buf_t)); buf 1023 http/modules/ngx_http_fastcgi_module.c if (body->buf->in_file) { buf 1027 http/modules/ngx_http_fastcgi_module.c if (file_pos >= body->buf->file_last) { buf 1028 http/modules/ngx_http_fastcgi_module.c file_pos = body->buf->file_last; buf 1039 http/modules/ngx_http_fastcgi_module.c if (pos >= body->buf->last) { buf 1040 http/modules/ngx_http_fastcgi_module.c pos = body->buf->last; buf 1066 http/modules/ngx_http_fastcgi_module.c cl->buf = b; buf 1089 http/modules/ngx_http_fastcgi_module.c cl->buf = b; buf 1142 http/modules/ngx_http_fastcgi_module.c ngx_buf_t buf; buf 1393 http/modules/ngx_http_fastcgi_module.c buf.pos = p; buf 1402 http/modules/ngx_http_fastcgi_module.c buf.last = p; buf 1406 http/modules/ngx_http_fastcgi_module.c rc = ngx_http_parse_header_line(r, &buf, 1); buf 1569 http/modules/ngx_http_fastcgi_module.c ngx_http_fastcgi_input_filter(ngx_event_pipe_t *p, ngx_buf_t *buf) buf 1578 http/modules/ngx_http_fastcgi_module.c if (buf->pos == buf->last) { buf 1586 http/modules/ngx_http_fastcgi_module.c prev = &buf->shadow; buf 1588 http/modules/ngx_http_fastcgi_module.c f->pos = buf->pos; buf 1589 http/modules/ngx_http_fastcgi_module.c f->last = buf->last; buf 1698 http/modules/ngx_http_fastcgi_module.c b = p->free->buf; buf 1711 http/modules/ngx_http_fastcgi_module.c b->start = buf->start; buf 1712 http/modules/ngx_http_fastcgi_module.c b->end = buf->end; buf 1725 http/modules/ngx_http_fastcgi_module.c cl->buf = b; buf 1736 http/modules/ngx_http_fastcgi_module.c /* STUB */ b->num = buf->num; buf 1777 http/modules/ngx_http_fastcgi_module.c b->shadow = buf; buf 1788 http/modules/ngx_http_fastcgi_module.c if (ngx_event_pipe_add_free_buf(p, buf) != NGX_OK) { buf 202 http/modules/ngx_http_flv_module.c out[0].buf = b; buf 237 http/modules/ngx_http_flv_module.c out[1].buf = b; buf 524 http/modules/ngx_http_gzip_filter_module.c ngx_buf_t *b, *buf; buf 537 http/modules/ngx_http_gzip_filter_module.c buffered += cl->buf->last - cl->buf->pos; buf 549 http/modules/ngx_http_gzip_filter_module.c b = in->buf; buf 560 http/modules/ngx_http_gzip_filter_module.c buf = ngx_create_temp_buf(r->pool, size); buf 561 http/modules/ngx_http_gzip_filter_module.c if (buf == NULL) { buf 565 http/modules/ngx_http_gzip_filter_module.c buf->last = ngx_cpymem(buf->pos, b->pos, size); buf 568 http/modules/ngx_http_gzip_filter_module.c buf->last_buf = b->last_buf; buf 569 http/modules/ngx_http_gzip_filter_module.c buf->tag = (ngx_buf_tag_t) &ngx_http_gzip_filter_module; buf 571 http/modules/ngx_http_gzip_filter_module.c cl->buf = buf; buf 574 http/modules/ngx_http_gzip_filter_module.c cl->buf = b; buf 647 http/modules/ngx_http_gzip_filter_module.c cl->buf = b; buf 683 http/modules/ngx_http_gzip_filter_module.c ctx->in_buf = ctx->in->buf; buf 731 http/modules/ngx_http_gzip_filter_module.c ctx->out_buf = ctx->free->buf; buf 807 http/modules/ngx_http_gzip_filter_module.c cl->buf = ctx->out_buf; buf 830 http/modules/ngx_http_gzip_filter_module.c cl->buf = ctx->out_buf; buf 856 http/modules/ngx_http_gzip_filter_module.c cl->buf = ctx->out_buf; buf 895 http/modules/ngx_http_gzip_filter_module.c cl->buf = ctx->out_buf; buf 918 http/modules/ngx_http_gzip_filter_module.c cl->buf = b; buf 1017 http/modules/ngx_http_gzip_filter_module.c ngx_pfree(r->pool, cl->buf->start); buf 247 http/modules/ngx_http_gzip_static_module.c out.buf = b; buf 290 http/modules/ngx_http_image_filter_module.c out.buf = ngx_http_image_json(r, NULL); buf 292 http/modules/ngx_http_image_filter_module.c if (out.buf) { buf 340 http/modules/ngx_http_image_filter_module.c out.buf = ngx_http_image_process(r); buf 342 http/modules/ngx_http_image_filter_module.c if (out.buf == NULL) { buf 395 http/modules/ngx_http_image_filter_module.c p = in->buf->pos; buf 397 http/modules/ngx_http_image_filter_module.c if (in->buf->last - p < 16) { buf 454 http/modules/ngx_http_image_filter_module.c b = cl->buf; buf 14 http/modules/ngx_http_log_module.c typedef u_char *(*ngx_http_log_op_run_pt) (ngx_http_request_t *r, u_char *buf, buf 76 http/modules/ngx_http_log_module.c u_char *buf, size_t len); buf 78 http/modules/ngx_http_log_module.c ngx_http_log_script_t *script, u_char **name, u_char *buf, size_t len); buf 80 http/modules/ngx_http_log_module.c static u_char *ngx_http_log_connection(ngx_http_request_t *r, u_char *buf, buf 82 http/modules/ngx_http_log_module.c static u_char *ngx_http_log_pipe(ngx_http_request_t *r, u_char *buf, buf 84 http/modules/ngx_http_log_module.c static u_char *ngx_http_log_time(ngx_http_request_t *r, u_char *buf, buf 86 http/modules/ngx_http_log_module.c static u_char *ngx_http_log_iso8601(ngx_http_request_t *r, u_char *buf, buf 88 http/modules/ngx_http_log_module.c static u_char *ngx_http_log_msec(ngx_http_request_t *r, u_char *buf, buf 90 http/modules/ngx_http_log_module.c static u_char *ngx_http_log_request_time(ngx_http_request_t *r, u_char *buf, buf 92 http/modules/ngx_http_log_module.c static u_char *ngx_http_log_status(ngx_http_request_t *r, u_char *buf, buf 94 http/modules/ngx_http_log_module.c static u_char *ngx_http_log_bytes_sent(ngx_http_request_t *r, u_char *buf, buf 97 http/modules/ngx_http_log_module.c u_char *buf, ngx_http_log_op_t *op); buf 98 http/modules/ngx_http_log_module.c static u_char *ngx_http_log_request_length(ngx_http_request_t *r, u_char *buf, buf 105 http/modules/ngx_http_log_module.c static u_char *ngx_http_log_variable(ngx_http_request_t *r, u_char *buf, buf 314 http/modules/ngx_http_log_module.c ngx_http_log_write(ngx_http_request_t *r, ngx_http_log_t *log, u_char *buf, buf 324 http/modules/ngx_http_log_module.c n = ngx_write_fd(log->file->fd, buf, len); buf 328 http/modules/ngx_http_log_module.c n = ngx_http_log_script_write(r, log->script, &name, buf, len); buf 366 http/modules/ngx_http_log_module.c u_char **name, u_char *buf, size_t len) buf 456 http/modules/ngx_http_log_module.c n = ngx_write_fd(of.fd, buf, len); buf 463 http/modules/ngx_http_log_module.c ngx_http_log_copy_short(ngx_http_request_t *r, u_char *buf, buf 473 http/modules/ngx_http_log_module.c *buf++ = (u_char) (data & 0xff); buf 477 http/modules/ngx_http_log_module.c return buf; buf 482 http/modules/ngx_http_log_module.c ngx_http_log_copy_long(ngx_http_request_t *r, u_char *buf, buf 485 http/modules/ngx_http_log_module.c return ngx_cpymem(buf, (u_char *) op->data, op->len); buf 490 http/modules/ngx_http_log_module.c ngx_http_log_connection(ngx_http_request_t *r, u_char *buf, buf 493 http/modules/ngx_http_log_module.c return ngx_sprintf(buf, "%ui", r->connection->number); buf 498 http/modules/ngx_http_log_module.c ngx_http_log_pipe(ngx_http_request_t *r, u_char *buf, ngx_http_log_op_t *op) buf 501 http/modules/ngx_http_log_module.c *buf = 'p'; buf 503 http/modules/ngx_http_log_module.c *buf = '.'; buf 506 http/modules/ngx_http_log_module.c return buf + 1; buf 511 http/modules/ngx_http_log_module.c ngx_http_log_time(ngx_http_request_t *r, u_char *buf, ngx_http_log_op_t *op) buf 513 http/modules/ngx_http_log_module.c return ngx_cpymem(buf, ngx_cached_http_log_time.data, buf 518 http/modules/ngx_http_log_module.c ngx_http_log_iso8601(ngx_http_request_t *r, u_char *buf, ngx_http_log_op_t *op) buf 520 http/modules/ngx_http_log_module.c return ngx_cpymem(buf, ngx_cached_http_log_iso8601.data, buf 525 http/modules/ngx_http_log_module.c ngx_http_log_msec(ngx_http_request_t *r, u_char *buf, ngx_http_log_op_t *op) buf 531 http/modules/ngx_http_log_module.c return ngx_sprintf(buf, "%T.%03M", tp->sec, tp->msec); buf 536 http/modules/ngx_http_log_module.c ngx_http_log_request_time(ngx_http_request_t *r, u_char *buf, buf 548 http/modules/ngx_http_log_module.c return ngx_sprintf(buf, "%T.%03M", ms / 1000, ms % 1000); buf 553 http/modules/ngx_http_log_module.c ngx_http_log_status(ngx_http_request_t *r, u_char *buf, ngx_http_log_op_t *op) buf 564 http/modules/ngx_http_log_module.c *buf++ = '0'; buf 565 http/modules/ngx_http_log_module.c *buf++ = '0'; buf 566 http/modules/ngx_http_log_module.c *buf++ = '9'; buf 567 http/modules/ngx_http_log_module.c return buf; buf 573 http/modules/ngx_http_log_module.c return ngx_sprintf(buf, "%ui", status); buf 578 http/modules/ngx_http_log_module.c ngx_http_log_bytes_sent(ngx_http_request_t *r, u_char *buf, buf 581 http/modules/ngx_http_log_module.c return ngx_sprintf(buf, "%O", r->connection->sent); buf 591 http/modules/ngx_http_log_module.c ngx_http_log_body_bytes_sent(ngx_http_request_t *r, u_char *buf, buf 599 http/modules/ngx_http_log_module.c return ngx_sprintf(buf, "%O", length); buf 602 http/modules/ngx_http_log_module.c *buf = '0'; buf 604 http/modules/ngx_http_log_module.c return buf + 1; buf 609 http/modules/ngx_http_log_module.c ngx_http_log_request_length(ngx_http_request_t *r, u_char *buf, buf 612 http/modules/ngx_http_log_module.c return ngx_sprintf(buf, "%O", r->request_length); buf 657 http/modules/ngx_http_log_module.c ngx_http_log_variable(ngx_http_request_t *r, u_char *buf, ngx_http_log_op_t *op) buf 664 http/modules/ngx_http_log_module.c *buf = '-'; buf 665 http/modules/ngx_http_log_module.c return buf + 1; buf 669 http/modules/ngx_http_log_module.c return ngx_cpymem(buf, value->data, value->len); buf 672 http/modules/ngx_http_log_module.c return (u_char *) ngx_http_log_escape(buf, value->data, value->len); buf 856 http/modules/ngx_http_log_module.c ssize_t buf; buf 970 http/modules/ngx_http_log_module.c buf = ngx_parse_size(&name); buf 972 http/modules/ngx_http_log_module.c if (buf == NGX_ERROR) { buf 978 http/modules/ngx_http_log_module.c if (log->file->buffer && log->file->last - log->file->pos != buf) { buf 985 http/modules/ngx_http_log_module.c log->file->buffer = ngx_palloc(cf->pool, buf); buf 991 http/modules/ngx_http_log_module.c log->file->last = log->file->buffer + buf; buf 243 http/modules/ngx_http_memcached_module.c cl->buf = b; buf 441 http/modules/ngx_http_memcached_module.c cl->buf->flush = 1; buf 442 http/modules/ngx_http_memcached_module.c cl->buf->memory = 1; buf 447 http/modules/ngx_http_memcached_module.c cl->buf->pos = last; buf 449 http/modules/ngx_http_memcached_module.c cl->buf->last = b->last; buf 450 http/modules/ngx_http_memcached_module.c cl->buf->tag = u->output.tag; buf 470 http/modules/ngx_http_memcached_module.c cl->buf->last = last; buf 972 http/modules/ngx_http_proxy_module.c cl->buf = b; buf 1120 http/modules/ngx_http_proxy_module.c ngx_memcpy(b, body->buf, sizeof(ngx_buf_t)); buf 1128 http/modules/ngx_http_proxy_module.c cl->buf = b; buf 562 http/modules/ngx_http_range_filter_module.c if (ngx_buf_special(in->buf)) { buf 579 http/modules/ngx_http_range_filter_module.c ngx_buf_t *buf; buf 587 http/modules/ngx_http_range_filter_module.c buf = in->buf; buf 589 http/modules/ngx_http_range_filter_module.c if (!buf->last_buf) { buf 591 http/modules/ngx_http_range_filter_module.c if (buf->in_file) { buf 592 http/modules/ngx_http_range_filter_module.c start = buf->file_pos + ctx->offset; buf 593 http/modules/ngx_http_range_filter_module.c last = buf->file_last + ctx->offset; buf 596 http/modules/ngx_http_range_filter_module.c start = buf->pos - buf->start + ctx->offset; buf 597 http/modules/ngx_http_range_filter_module.c last = buf->last - buf->start + ctx->offset; buf 608 http/modules/ngx_http_range_filter_module.c ctx->offset = ngx_buf_size(buf); buf 626 http/modules/ngx_http_range_filter_module.c ngx_buf_t *buf; buf 636 http/modules/ngx_http_range_filter_module.c buf = cl->buf; buf 639 http/modules/ngx_http_range_filter_module.c last = ctx->offset + ngx_buf_size(buf); buf 646 http/modules/ngx_http_range_filter_module.c if (ngx_buf_special(buf)) { buf 657 http/modules/ngx_http_range_filter_module.c if (buf->in_file) { buf 658 http/modules/ngx_http_range_filter_module.c buf->file_pos = buf->file_last; buf 661 http/modules/ngx_http_range_filter_module.c buf->pos = buf->last; buf 662 http/modules/ngx_http_range_filter_module.c buf->sync = 1; buf 669 http/modules/ngx_http_range_filter_module.c if (buf->in_file) { buf 670 http/modules/ngx_http_range_filter_module.c buf->file_pos += range->start - start; buf 673 http/modules/ngx_http_range_filter_module.c if (ngx_buf_in_memory(buf)) { buf 674 http/modules/ngx_http_range_filter_module.c buf->pos += (size_t) (range->start - start); buf 680 http/modules/ngx_http_range_filter_module.c if (buf->in_file) { buf 681 http/modules/ngx_http_range_filter_module.c buf->file_last -= last - range->end; buf 684 http/modules/ngx_http_range_filter_module.c if (ngx_buf_in_memory(buf)) { buf 685 http/modules/ngx_http_range_filter_module.c buf->last -= (size_t) (last - range->end); buf 688 http/modules/ngx_http_range_filter_module.c buf->last_buf = 1; buf 712 http/modules/ngx_http_range_filter_module.c ngx_buf_t *b, *buf; buf 718 http/modules/ngx_http_range_filter_module.c buf = in->buf; buf 751 http/modules/ngx_http_range_filter_module.c hcl->buf = b; buf 770 http/modules/ngx_http_range_filter_module.c rcl->buf = b; buf 780 http/modules/ngx_http_range_filter_module.c b->in_file = buf->in_file; buf 781 http/modules/ngx_http_range_filter_module.c b->temporary = buf->temporary; buf 782 http/modules/ngx_http_range_filter_module.c b->memory = buf->memory; buf 783 http/modules/ngx_http_range_filter_module.c b->mmap = buf->mmap; buf 784 http/modules/ngx_http_range_filter_module.c b->file = buf->file; buf 786 http/modules/ngx_http_range_filter_module.c if (buf->in_file) { buf 791 http/modules/ngx_http_range_filter_module.c if (ngx_buf_in_memory(buf)) { buf 792 http/modules/ngx_http_range_filter_module.c b->pos = buf->start + (size_t) range[i].start; buf 793 http/modules/ngx_http_range_filter_module.c b->last = buf->start + (size_t) range[i].end; buf 801 http/modules/ngx_http_range_filter_module.c dcl->buf = b; buf 835 http/modules/ngx_http_range_filter_module.c hcl->buf = b; buf 101 http/modules/ngx_http_referer_module.c u_char buf[256]; buf 156 http/modules/ngx_http_referer_module.c buf[i] = ngx_tolower(*p); buf 157 http/modules/ngx_http_referer_module.c key = ngx_hash(key, buf[i++]); buf 164 http/modules/ngx_http_referer_module.c uri = ngx_hash_find_combined(&rlcf->hash, key, buf, p - ref); buf 633 http/modules/ngx_http_scgi_module.c cl->buf = b; buf 740 http/modules/ngx_http_scgi_module.c ngx_memcpy(b, body->buf, sizeof(ngx_buf_t)); buf 748 http/modules/ngx_http_scgi_module.c cl->buf = b; buf 388 http/modules/ngx_http_ssi_filter_module.c && ctx->buf == NULL buf 434 http/modules/ngx_http_ssi_filter_module.c while (ctx->in || ctx->buf) { buf 436 http/modules/ngx_http_ssi_filter_module.c if (ctx->buf == NULL) { buf 437 http/modules/ngx_http_ssi_filter_module.c ctx->buf = ctx->in->buf; buf 439 http/modules/ngx_http_ssi_filter_module.c ctx->pos = ctx->buf->pos; buf 449 http/modules/ngx_http_ssi_filter_module.c while (ctx->pos < ctx->buf->last) { buf 476 http/modules/ngx_http_ssi_filter_module.c b = cl->buf; buf 490 http/modules/ngx_http_ssi_filter_module.c cl->buf = b; buf 506 http/modules/ngx_http_ssi_filter_module.c b = cl->buf; buf 519 http/modules/ngx_http_ssi_filter_module.c cl->buf = b; buf 522 http/modules/ngx_http_ssi_filter_module.c ngx_memcpy(b, ctx->buf, sizeof(ngx_buf_t)); buf 534 http/modules/ngx_http_ssi_filter_module.c + (b->last - ctx->buf->pos); buf 535 http/modules/ngx_http_ssi_filter_module.c b->file_pos += b->pos - ctx->buf->pos; buf 570 http/modules/ngx_http_ssi_filter_module.c cl->buf = b; buf 662 http/modules/ngx_http_ssi_filter_module.c cl->buf = b; buf 815 http/modules/ngx_http_ssi_filter_module.c b = cl->buf; buf 829 http/modules/ngx_http_ssi_filter_module.c cl->buf = b; buf 843 http/modules/ngx_http_ssi_filter_module.c if (ctx->buf->last_buf || ngx_buf_in_memory(ctx->buf)) { buf 848 http/modules/ngx_http_ssi_filter_module.c b = cl->buf; buf 862 http/modules/ngx_http_ssi_filter_module.c cl->buf = b; buf 872 http/modules/ngx_http_ssi_filter_module.c b->last_buf = ctx->buf->last_buf; buf 873 http/modules/ngx_http_ssi_filter_module.c b->shadow = ctx->buf; buf 876 http/modules/ngx_http_ssi_filter_module.c b->recycled = ctx->buf->recycled; buf 880 http/modules/ngx_http_ssi_filter_module.c ctx->buf = NULL; buf 904 http/modules/ngx_http_ssi_filter_module.c "ssi out: %p %p", cl->buf, cl->buf->pos); buf 905 http/modules/ngx_http_ssi_filter_module.c if (cl->buf == b) { buf 911 http/modules/ngx_http_ssi_filter_module.c b = cl->buf; buf 931 http/modules/ngx_http_ssi_filter_module.c b = cl->buf; buf 960 http/modules/ngx_http_ssi_filter_module.c if (ctx->in || ctx->buf) { buf 978 http/modules/ngx_http_ssi_filter_module.c last = ctx->buf->last; buf 1011 http/modules/ngx_http_ssi_filter_module.c ctx->copy_start = ctx->buf->pos; buf 1446 http/modules/ngx_http_ssi_filter_module.c ctx->copy_start = ctx->buf->pos; buf 1495 http/modules/ngx_http_ssi_filter_module.c ctx->copy_start = ctx->buf->pos; buf 1516 http/modules/ngx_http_ssi_filter_module.c ctx->copy_start = ctx->buf->pos; buf 1959 http/modules/ngx_http_ssi_filter_module.c b = cl->buf; buf 1972 http/modules/ngx_http_ssi_filter_module.c cl->buf = b; buf 1975 http/modules/ngx_http_ssi_filter_module.c ngx_memcpy(b, tl->buf, sizeof(ngx_buf_t)); buf 2221 http/modules/ngx_http_ssi_filter_module.c cl->buf = b; buf 2601 http/modules/ngx_http_ssi_filter_module.c char buf[NGX_HTTP_SSI_DATE_LEN]; buf 2631 http/modules/ngx_http_ssi_filter_module.c v->len = strftime(buf, NGX_HTTP_SSI_DATE_LEN, buf 2642 http/modules/ngx_http_ssi_filter_module.c ngx_memcpy(v->data, buf, v->len); buf 39 http/modules/ngx_http_ssi_filter_module.h ngx_buf_t *buf; buf 252 http/modules/ngx_http_static_module.c out.buf = b; buf 100 http/modules/ngx_http_stub_status_module.c out.buf = b; buf 37 http/modules/ngx_http_sub_filter_module.c ngx_buf_t *buf; buf 192 http/modules/ngx_http_sub_filter_module.c && ctx->buf == NULL buf 199 http/modules/ngx_http_sub_filter_module.c if (ctx->once && (ctx->buf == NULL || ctx->in == NULL)) { buf 221 http/modules/ngx_http_sub_filter_module.c while (ctx->in || ctx->buf) { buf 223 http/modules/ngx_http_sub_filter_module.c if (ctx->buf == NULL) { buf 224 http/modules/ngx_http_sub_filter_module.c ctx->buf = ctx->in->buf; buf 226 http/modules/ngx_http_sub_filter_module.c ctx->pos = ctx->buf->pos; buf 236 http/modules/ngx_http_sub_filter_module.c while (ctx->pos < ctx->buf->last) { buf 261 http/modules/ngx_http_sub_filter_module.c b = cl->buf; buf 275 http/modules/ngx_http_sub_filter_module.c cl->buf = b; buf 296 http/modules/ngx_http_sub_filter_module.c b = cl->buf; buf 309 http/modules/ngx_http_sub_filter_module.c cl->buf = b; buf 312 http/modules/ngx_http_sub_filter_module.c ngx_memcpy(b, ctx->buf, sizeof(ngx_buf_t)); buf 321 http/modules/ngx_http_sub_filter_module.c b->file_last = b->file_pos + (b->last - ctx->buf->pos); buf 322 http/modules/ngx_http_sub_filter_module.c b->file_pos += b->pos - ctx->buf->pos; buf 376 http/modules/ngx_http_sub_filter_module.c cl->buf = b; buf 386 http/modules/ngx_http_sub_filter_module.c if (ctx->buf->last_buf || ngx_buf_in_memory(ctx->buf)) { buf 391 http/modules/ngx_http_sub_filter_module.c b = cl->buf; buf 405 http/modules/ngx_http_sub_filter_module.c cl->buf = b; buf 415 http/modules/ngx_http_sub_filter_module.c b->last_buf = ctx->buf->last_buf; buf 416 http/modules/ngx_http_sub_filter_module.c b->shadow = ctx->buf; buf 418 http/modules/ngx_http_sub_filter_module.c b->recycled = ctx->buf->recycled; buf 421 http/modules/ngx_http_sub_filter_module.c ctx->buf = NULL; buf 446 http/modules/ngx_http_sub_filter_module.c "sub out: %p %p", cl->buf, cl->buf->pos); buf 447 http/modules/ngx_http_sub_filter_module.c if (cl->buf == b) { buf 453 http/modules/ngx_http_sub_filter_module.c b = cl->buf; buf 473 http/modules/ngx_http_sub_filter_module.c b = cl->buf; buf 493 http/modules/ngx_http_sub_filter_module.c if (ctx->in || ctx->buf) { buf 513 http/modules/ngx_http_sub_filter_module.c ctx->copy_end = ctx->buf->last; buf 514 http/modules/ngx_http_sub_filter_module.c ctx->pos = ctx->buf->last; buf 524 http/modules/ngx_http_sub_filter_module.c last = ctx->buf->last; buf 562 http/modules/ngx_http_sub_filter_module.c ctx->copy_start = ctx->buf->pos; buf 589 http/modules/ngx_http_sub_filter_module.c ctx->copy_start = ctx->buf->pos; buf 614 http/modules/ngx_http_sub_filter_module.c ctx->copy_start = ctx->buf->pos; buf 670 http/modules/ngx_http_uwsgi_module.c cl->buf = b; buf 791 http/modules/ngx_http_uwsgi_module.c ngx_memcpy(b, body->buf, sizeof(ngx_buf_t)); buf 799 http/modules/ngx_http_uwsgi_module.c cl->buf = b; buf 227 http/modules/ngx_http_xslt_filter_module.c if (ngx_http_xslt_add_chunk(r, ctx, cl->buf) != NGX_OK) { buf 242 http/modules/ngx_http_xslt_filter_module.c if (cl->buf->last_buf || cl->buf->last_in_chain) { buf 316 http/modules/ngx_http_xslt_filter_module.c out.buf = b; buf 426 http/modules/ngx_http_xslt_filter_module.c u_char buf[NGX_MAX_ERROR_STR]; buf 430 http/modules/ngx_http_xslt_filter_module.c buf[0] = '\0'; buf 433 http/modules/ngx_http_xslt_filter_module.c n = (size_t) vsnprintf((char *) buf, NGX_MAX_ERROR_STR, msg, args); buf 436 http/modules/ngx_http_xslt_filter_module.c while (--n && (buf[n] == CR || buf[n] == LF)) { /* void */ } buf 439 http/modules/ngx_http_xslt_filter_module.c "libxml2 error: \"%*s\"", n + 1, buf); buf 451 http/modules/ngx_http_xslt_filter_module.c xmlChar *buf; buf 509 http/modules/ngx_http_xslt_filter_module.c rc = xsltSaveResultToString(&buf, &len, doc, sheet[i - 1].stylesheet); buf 527 http/modules/ngx_http_xslt_filter_module.c ngx_free(buf); buf 531 http/modules/ngx_http_xslt_filter_module.c b->pos = buf; buf 532 http/modules/ngx_http_xslt_filter_module.c b->last = buf + len; buf 24 http/ngx_http.h ngx_http_request_t *sr, u_char *buf, size_t len); buf 128 http/ngx_http.h size_t ngx_http_get_time(char *buf, time_t t); buf 76 http/ngx_http_cache.h ngx_buf_t *buf; buf 131 http/ngx_http_cache.h void ngx_http_file_cache_set_header(ngx_http_request_t *r, u_char *buf); buf 131 http/ngx_http_copy_filter_module.c if (in && in->buf && ngx_buf_size(in->buf)) { buf 1815 http/ngx_http_core_module.c out.buf = b; buf 250 http/ngx_http_file_cache.c if (c->buf) { buf 353 http/ngx_http_file_cache.c c->buf = ngx_create_temp_buf(r->pool, c->body_start); buf 354 http/ngx_http_file_cache.c if (c->buf == NULL) { buf 383 http/ngx_http_file_cache.c h = (ngx_http_file_cache_header_t *) c->buf->pos; buf 391 http/ngx_http_file_cache.c c->buf->last += n; buf 465 http/ngx_http_file_cache.c n = ngx_file_aio_read(&c->file, c->buf->pos, c->body_start, 0, r->pool); buf 483 http/ngx_http_file_cache.c return ngx_read_file(&c->file, c->buf->pos, c->body_start, 0); buf 742 http/ngx_http_file_cache.c ngx_http_file_cache_set_header(ngx_http_request_t *r, u_char *buf) buf 744 http/ngx_http_file_cache.c ngx_http_file_cache_header_t *h = (ngx_http_file_cache_header_t *) buf; buf 764 http/ngx_http_file_cache.c p = buf + sizeof(ngx_http_file_cache_header_t); buf 900 http/ngx_http_file_cache.c out.buf = b; buf 613 http/ngx_http_header_filter_module.c out.buf = b; buf 57 http/ngx_http_request.c static u_char *ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len); buf 59 http/ngx_http_request.c ngx_http_request_t *sr, u_char *buf, size_t len); buf 527 http/ngx_http_request.c u_char buf[1]; buf 546 http/ngx_http_request.c n = recv(c->fd, (char *) buf, 1, MSG_PEEK); buf 562 http/ngx_http_request.c if (buf[0] & 0x80 /* SSLv2 */ || buf[0] == 0x16 /* SSLv3/TLSv1 */) { buf 564 http/ngx_http_request.c "https ssl handshake: 0x%02Xd", buf[0]); buf 2308 http/ngx_http_request.c char buf[1]; buf 2335 http/ngx_http_request.c n = recv(c->fd, buf, 1, MSG_PEEK); buf 2860 http/ngx_http_request.c out.buf = b; buf 3052 http/ngx_http_request.c ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len) buf 3059 http/ngx_http_request.c p = ngx_snprintf(buf, len, " while %s", log->action); buf 3060 http/ngx_http_request.c len -= p - buf; buf 3061 http/ngx_http_request.c buf = p; buf 3066 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", client: %V", &ctx->connection->addr_text); buf 3067 http/ngx_http_request.c len -= p - buf; buf 3085 http/ngx_http_request.c u_char *buf, size_t len) buf 3094 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", server: %V", &cscf->server_name); buf 3095 http/ngx_http_request.c len -= p - buf; buf 3096 http/ngx_http_request.c buf = p; buf 3110 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", request: \"%V\"", &r->request_line); buf 3111 http/ngx_http_request.c len -= p - buf; buf 3112 http/ngx_http_request.c buf = p; buf 3116 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", subrequest: \"%V\"", &sr->uri); buf 3117 http/ngx_http_request.c len -= p - buf; buf 3118 http/ngx_http_request.c buf = p; buf 3133 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", upstream: \"%V%V%s%V\"", buf 3136 http/ngx_http_request.c len -= p - buf; buf 3137 http/ngx_http_request.c buf = p; buf 3141 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", host: \"%V\"", buf 3143 http/ngx_http_request.c len -= p - buf; buf 3144 http/ngx_http_request.c buf = p; buf 3148 http/ngx_http_request.c p = ngx_snprintf(buf, len, ", referrer: \"%V\"", buf 3150 http/ngx_http_request.c buf = p; buf 3153 http/ngx_http_request.c return buf; buf 274 http/ngx_http_request.h ngx_buf_t *buf; buf 135 http/ngx_http_request_body.c rb->bufs->buf = b; buf 138 http/ngx_http_request_body.c rb->buf = b; buf 204 http/ngx_http_request_body.c rb->buf = ngx_create_temp_buf(r->pool, size); buf 205 http/ngx_http_request_body.c if (rb->buf == NULL) { buf 214 http/ngx_http_request_body.c cl->buf = rb->buf; buf 219 http/ngx_http_request_body.c ngx_memcpy(rb->buf->pos, b->pos, size); buf 220 http/ngx_http_request_body.c rb->buf->last += size; buf 277 http/ngx_http_request_body.c if (rb->buf->last == rb->buf->end) { buf 284 http/ngx_http_request_body.c rb->buf->last = rb->buf->start; buf 287 http/ngx_http_request_body.c size = rb->buf->end - rb->buf->last; buf 293 http/ngx_http_request_body.c n = c->recv(c, rb->buf->last, size); buf 312 http/ngx_http_request_body.c rb->buf->last += n; buf 320 http/ngx_http_request_body.c if (rb->buf->last < rb->buf->end) { buf 367 http/ngx_http_request_body.c rb->bufs->next->buf = b; buf 370 http/ngx_http_request_body.c rb->bufs->buf = b; buf 93 http/ngx_http_script.c e.buf = *value; buf 100 http/ngx_http_script.c *value = e.buf; buf 1016 http/ngx_http_script.c e->buf.len = code->size; buf 1020 http/ngx_http_script.c e->buf.len += 2 * ngx_escape_uri(NULL, r->uri.data, r->uri.len, buf 1026 http/ngx_http_script.c e->buf.len += r->captures[n + 1] - r->captures[n]; buf 1044 http/ngx_http_script.c e->buf.len = len; buf 1049 http/ngx_http_script.c e->buf.len += r->args.len + 1; buf 1052 http/ngx_http_script.c e->buf.data = ngx_pnalloc(r->pool, e->buf.len); buf 1053 http/ngx_http_script.c if (e->buf.data == NULL) { buf 1061 http/ngx_http_script.c e->pos = e->buf.data; buf 1085 http/ngx_http_script.c dst = e->buf.data; buf 1086 http/ngx_http_script.c src = e->buf.data; buf 1088 http/ngx_http_script.c ngx_unescape_uri(&dst, &src, e->pos - e->buf.data, buf 1102 http/ngx_http_script.c e->buf.len = e->pos - e->buf.data; buf 1106 http/ngx_http_script.c "rewritten redirect: \"%V\"", &e->buf); buf 1118 http/ngx_http_script.c r->headers_out.location->value = e->buf; buf 1125 http/ngx_http_script.c e->buf.len = e->args - e->buf.data; buf 1138 http/ngx_http_script.c e->buf.len = e->pos - e->buf.data; buf 1148 http/ngx_http_script.c &e->buf, &r->args); buf 1152 http/ngx_http_script.c r->uri = e->buf; buf 1336 http/ngx_http_script.c value.data = e->buf.data; buf 1337 http/ngx_http_script.c value.len = e->pos - e->buf.data; buf 1347 http/ngx_http_script.c e->buf = value; buf 1626 http/ngx_http_script.c e->buf.len = len; buf 1627 http/ngx_http_script.c e->buf.data = ngx_pnalloc(e->request->pool, len); buf 1628 http/ngx_http_script.c if (e->buf.data == NULL) { buf 1634 http/ngx_http_script.c e->pos = e->buf.data; buf 1636 http/ngx_http_script.c e->sp->len = e->buf.len; buf 1637 http/ngx_http_script.c e->sp->data = e->buf.data; buf 21 http/ngx_http_script.h ngx_str_t buf; buf 669 http/ngx_http_special_response.c out[0].buf = b; buf 682 http/ngx_http_special_response.c out[1].buf = b; buf 696 http/ngx_http_special_response.c out[2].buf = b; buf 775 http/ngx_http_special_response.c out.buf = b; buf 788 http/ngx_http_upstream.c u->buffer = *c->buf; buf 929 http/ngx_http_upstream.c char buf[1]; buf 1000 http/ngx_http_upstream.c n = recv(c->fd, buf, 1, MSG_PEEK); buf 1149 http/ngx_http_upstream.c && r->request_body->buf buf 1165 http/ngx_http_upstream.c u->output.free->buf = r->request_body->buf; buf 1169 http/ngx_http_upstream.c r->request_body->buf->pos = r->request_body->buf->start; buf 1170 http/ngx_http_upstream.c r->request_body->buf->last = r->request_body->buf->start; buf 1171 http/ngx_http_upstream.c r->request_body->buf->tag = u->output.tag; buf 1286 http/ngx_http_upstream.c cl->buf->pos = cl->buf->start; buf 1287 http/ngx_http_upstream.c cl->buf->file_pos = 0; buf 1293 http/ngx_http_upstream.c && r != r->main && u->output.buf) buf 1300 http/ngx_http_upstream.c u->output.free->buf = u->output.buf; buf 1303 http/ngx_http_upstream.c u->output.buf->pos = u->output.buf->start; buf 1304 http/ngx_http_upstream.c u->output.buf->last = u->output.buf->start; buf 1307 http/ngx_http_upstream.c u->output.buf = NULL; buf 2245 http/ngx_http_upstream.c p->preread_bufs->buf = &u->buffer; buf 2497 http/ngx_http_upstream.c cl->buf->flush = 1; buf 2498 http/ngx_http_upstream.c cl->buf->memory = 1; buf 2502 http/ngx_http_upstream.c cl->buf->pos = b->last; buf 2504 http/ngx_http_upstream.c cl->buf->last = b->last; buf 2505 http/ngx_http_upstream.c cl->buf->tag = u->output.tag; buf 1547 http/ngx_http_variables.c ngx_buf_t *buf, *next; buf 1560 http/ngx_http_variables.c buf = cl->buf; buf 1563 http/ngx_http_variables.c v->len = buf->last - buf->pos; buf 1567 http/ngx_http_variables.c v->data = buf->pos; buf 1572 http/ngx_http_variables.c next = cl->next->buf; buf 1573 http/ngx_http_variables.c len = (buf->last - buf->pos) + (next->last - next->pos); buf 1582 http/ngx_http_variables.c p = ngx_cpymem(p, buf->pos, buf->last - buf->pos); buf 75 http/ngx_http_write_filter_module.c cl->buf->temporary, cl->buf->in_file, buf 76 http/ngx_http_write_filter_module.c cl->buf->start, cl->buf->pos, buf 77 http/ngx_http_write_filter_module.c cl->buf->last - cl->buf->pos, buf 78 http/ngx_http_write_filter_module.c cl->buf->file_pos, buf 79 http/ngx_http_write_filter_module.c cl->buf->file_last - cl->buf->file_pos); buf 82 http/ngx_http_write_filter_module.c if (ngx_buf_size(cl->buf) == 0 && !ngx_buf_special(cl->buf)) { buf 86 http/ngx_http_write_filter_module.c cl->buf->temporary, buf 87 http/ngx_http_write_filter_module.c cl->buf->recycled, buf 88 http/ngx_http_write_filter_module.c cl->buf->in_file, buf 89 http/ngx_http_write_filter_module.c cl->buf->start, buf 90 http/ngx_http_write_filter_module.c cl->buf->pos, buf 91 http/ngx_http_write_filter_module.c cl->buf->last, buf 92 http/ngx_http_write_filter_module.c cl->buf->file, buf 93 http/ngx_http_write_filter_module.c cl->buf->file_pos, buf 94 http/ngx_http_write_filter_module.c cl->buf->file_last); buf 101 http/ngx_http_write_filter_module.c size += ngx_buf_size(cl->buf); buf 103 http/ngx_http_write_filter_module.c if (cl->buf->flush || cl->buf->recycled) { buf 107 http/ngx_http_write_filter_module.c if (cl->buf->last_buf) { buf 120 http/ngx_http_write_filter_module.c cl->buf = ln->buf; buf 127 http/ngx_http_write_filter_module.c cl->buf->temporary, cl->buf->in_file, buf 128 http/ngx_http_write_filter_module.c cl->buf->start, cl->buf->pos, buf 129 http/ngx_http_write_filter_module.c cl->buf->last - cl->buf->pos, buf 130 http/ngx_http_write_filter_module.c cl->buf->file_pos, buf 131 http/ngx_http_write_filter_module.c cl->buf->file_last - cl->buf->file_pos); buf 134 http/ngx_http_write_filter_module.c if (ngx_buf_size(cl->buf) == 0 && !ngx_buf_special(cl->buf)) { buf 138 http/ngx_http_write_filter_module.c cl->buf->temporary, buf 139 http/ngx_http_write_filter_module.c cl->buf->recycled, buf 140 http/ngx_http_write_filter_module.c cl->buf->in_file, buf 141 http/ngx_http_write_filter_module.c cl->buf->start, buf 142 http/ngx_http_write_filter_module.c cl->buf->pos, buf 143 http/ngx_http_write_filter_module.c cl->buf->last, buf 144 http/ngx_http_write_filter_module.c cl->buf->file, buf 145 http/ngx_http_write_filter_module.c cl->buf->file_pos, buf 146 http/ngx_http_write_filter_module.c cl->buf->file_last); buf 153 http/ngx_http_write_filter_module.c size += ngx_buf_size(cl->buf); buf 155 http/ngx_http_write_filter_module.c if (cl->buf->flush || cl->buf->recycled) { buf 159 http/ngx_http_write_filter_module.c if (cl->buf->last_buf) { buf 428 mail/ngx_mail.c u_char buf[NGX_SOCKADDR_STRLEN]; buf 448 mail/ngx_mail.c len = ngx_sock_ntop(addr[i].sockaddr, buf, NGX_SOCKADDR_STRLEN, 1); buf 455 mail/ngx_mail.c ngx_memcpy(p, buf, len); buf 476 mail/ngx_mail.c u_char buf[NGX_SOCKADDR_STRLEN]; buf 496 mail/ngx_mail.c len = ngx_sock_ntop(addr[i].sockaddr, buf, NGX_SOCKADDR_STRLEN, 1); buf 503 mail/ngx_mail.c ngx_memcpy(p, buf, len); buf 390 mail/ngx_mail.h u_char *ngx_mail_log_error(ngx_log_t *log, u_char *buf, size_t len); buf 399 mail/ngx_mail_core_module.c u_char buf[NGX_SOCKADDR_STRLEN]; buf 421 mail/ngx_mail_core_module.c len = ngx_sock_ntop(sa, buf, NGX_SOCKADDR_STRLEN, 1); buf 425 mail/ngx_mail_core_module.c "on addr \"%*s\", ignored", len, buf); buf 727 mail/ngx_mail_handler.c ngx_mail_log_error(ngx_log_t *log, u_char *buf, size_t len) buf 734 mail/ngx_mail_handler.c p = ngx_snprintf(buf, len, " while %s", log->action); buf 735 mail/ngx_mail_handler.c len -= p - buf; buf 736 mail/ngx_mail_handler.c buf = p; buf 741 mail/ngx_mail_handler.c p = ngx_snprintf(buf, len, ", client: %V", ctx->client); buf 742 mail/ngx_mail_handler.c len -= p - buf; buf 743 mail/ngx_mail_handler.c buf = p; buf 751 mail/ngx_mail_handler.c p = ngx_snprintf(buf, len, "%s, server: %V", buf 754 mail/ngx_mail_handler.c len -= p - buf; buf 755 mail/ngx_mail_handler.c buf = p; buf 761 mail/ngx_mail_handler.c p = ngx_snprintf(buf, len, ", login: \"%V\"", &s->login); buf 762 mail/ngx_mail_handler.c len -= p - buf; buf 763 mail/ngx_mail_handler.c buf = p; buf 769 mail/ngx_mail_handler.c p = ngx_snprintf(buf, len, ", upstream: %V", s->proxy->upstream.name); buf 16 os/unix/ngx_aio_read.c ngx_aio_read(ngx_connection_t *c, u_char *buf, size_t size) buf 37 os/unix/ngx_aio_read.c rev->aiocb.aio_buf = buf; buf 16 os/unix/ngx_aio_read_chain.c u_char *buf, *prev; buf 35 os/unix/ngx_aio_read_chain.c buf = cl->buf->last; buf 36 os/unix/ngx_aio_read_chain.c prev = cl->buf->last; buf 41 os/unix/ngx_aio_read_chain.c while (cl && prev == cl->buf->last) { buf 42 os/unix/ngx_aio_read_chain.c size += cl->buf->end - cl->buf->last; buf 43 os/unix/ngx_aio_read_chain.c prev = cl->buf->end; buf 47 os/unix/ngx_aio_read_chain.c n = ngx_aio_read(c, buf, size); buf 16 os/unix/ngx_aio_write.c ngx_aio_write(ngx_connection_t *c, u_char *buf, size_t size) buf 34 os/unix/ngx_aio_write.c wev->aiocb.aio_buf = buf; buf 15 os/unix/ngx_aio_write_chain.c u_char *buf, *prev; buf 33 os/unix/ngx_aio_write_chain.c if (cl->buf->pos == cl->buf->last) { buf 44 os/unix/ngx_aio_write_chain.c buf = cl->buf->pos; buf 45 os/unix/ngx_aio_write_chain.c prev = buf; buf 50 os/unix/ngx_aio_write_chain.c while (cl && prev == cl->buf->pos && send < limit) { buf 51 os/unix/ngx_aio_write_chain.c if (ngx_buf_special(cl->buf)) { buf 55 os/unix/ngx_aio_write_chain.c size = cl->buf->last - cl->buf->pos; buf 62 os/unix/ngx_aio_write_chain.c prev = cl->buf->pos + size; buf 67 os/unix/ngx_aio_write_chain.c n = ngx_aio_write(c, buf, len); buf 85 os/unix/ngx_aio_write_chain.c if (sent >= cl->buf->last - cl->buf->pos) { buf 86 os/unix/ngx_aio_write_chain.c sent -= cl->buf->last - cl->buf->pos; buf 87 os/unix/ngx_aio_write_chain.c cl->buf->pos = cl->buf->last; buf 92 os/unix/ngx_aio_write_chain.c cl->buf->pos += sent; buf 109 os/unix/ngx_darwin_sendfile_chain.c if (ngx_buf_special(cl->buf)) { buf 113 os/unix/ngx_darwin_sendfile_chain.c if (!ngx_buf_in_memory_only(cl->buf)) { buf 117 os/unix/ngx_darwin_sendfile_chain.c size = cl->buf->last - cl->buf->pos; buf 123 os/unix/ngx_darwin_sendfile_chain.c if (prev == cl->buf->pos) { buf 132 os/unix/ngx_darwin_sendfile_chain.c iov->iov_base = (void *) cl->buf->pos; buf 136 os/unix/ngx_darwin_sendfile_chain.c prev = cl->buf->pos + (size_t) size; buf 142 os/unix/ngx_darwin_sendfile_chain.c if (cl && cl->buf->in_file && send < limit) { buf 143 os/unix/ngx_darwin_sendfile_chain.c file = cl->buf; buf 148 os/unix/ngx_darwin_sendfile_chain.c size = cl->buf->file_last - cl->buf->file_pos; buf 153 os/unix/ngx_darwin_sendfile_chain.c aligned = (cl->buf->file_pos + size + ngx_pagesize - 1) buf 156 os/unix/ngx_darwin_sendfile_chain.c if (aligned <= cl->buf->file_last) { buf 157 os/unix/ngx_darwin_sendfile_chain.c size = aligned - cl->buf->file_pos; buf 163 os/unix/ngx_darwin_sendfile_chain.c fprev = cl->buf->file_pos + size; buf 167 os/unix/ngx_darwin_sendfile_chain.c && cl->buf->in_file buf 169 os/unix/ngx_darwin_sendfile_chain.c && file->file->fd == cl->buf->file->fd buf 170 os/unix/ngx_darwin_sendfile_chain.c && fprev == cl->buf->file_pos); buf 182 os/unix/ngx_darwin_sendfile_chain.c if (ngx_buf_special(cl->buf)) { buf 187 os/unix/ngx_darwin_sendfile_chain.c if (!ngx_buf_in_memory_only(cl->buf)) { buf 191 os/unix/ngx_darwin_sendfile_chain.c size = cl->buf->last - cl->buf->pos; buf 197 os/unix/ngx_darwin_sendfile_chain.c if (prev == cl->buf->pos) { buf 206 os/unix/ngx_darwin_sendfile_chain.c iov->iov_base = (void *) cl->buf->pos; buf 210 os/unix/ngx_darwin_sendfile_chain.c prev = cl->buf->pos + (size_t) size; buf 315 os/unix/ngx_darwin_sendfile_chain.c if (ngx_buf_special(cl->buf)) { buf 323 os/unix/ngx_darwin_sendfile_chain.c size = ngx_buf_size(cl->buf); buf 328 os/unix/ngx_darwin_sendfile_chain.c if (ngx_buf_in_memory(cl->buf)) { buf 329 os/unix/ngx_darwin_sendfile_chain.c cl->buf->pos = cl->buf->last; buf 332 os/unix/ngx_darwin_sendfile_chain.c if (cl->buf->in_file) { buf 333 os/unix/ngx_darwin_sendfile_chain.c cl->buf->file_pos = cl->buf->file_last; buf 339 os/unix/ngx_darwin_sendfile_chain.c if (ngx_buf_in_memory(cl->buf)) { buf 340 os/unix/ngx_darwin_sendfile_chain.c cl->buf->pos += (size_t) sent; buf 343 os/unix/ngx_darwin_sendfile_chain.c if (cl->buf->in_file) { buf 344 os/unix/ngx_darwin_sendfile_chain.c cl->buf->file_pos += sent; buf 39 os/unix/ngx_file_aio_read.c ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset, buf 47 os/unix/ngx_file_aio_read.c return ngx_read_file(file, buf, size, offset); buf 96 os/unix/ngx_file_aio_read.c aio->aiocb.aio_buf = buf; buf 111 os/unix/ngx_file_aio_read.c return ngx_read_file(file, buf, size, offset); buf 119 os/unix/ngx_file_aio_read.c return ngx_read_file(file, buf, size, offset); buf 19 os/unix/ngx_files.c ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) buf 24 os/unix/ngx_files.c "read: %d, %p, %uz, %O", file->fd, buf, size, offset); buf 28 os/unix/ngx_files.c n = pread(file->fd, buf, size, offset); buf 48 os/unix/ngx_files.c n = read(file->fd, buf, size); buf 67 os/unix/ngx_files.c ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) buf 72 os/unix/ngx_files.c "write: %d, %p, %uz, %O", file->fd, buf, size, offset); buf 79 os/unix/ngx_files.c n = pwrite(file->fd, buf + written, size, offset); buf 111 os/unix/ngx_files.c n = write(file->fd, buf + written, size); buf 163 os/unix/ngx_files.c return ngx_write_file(file, cl->buf->pos, buf 164 os/unix/ngx_files.c (size_t) (cl->buf->last - cl->buf->pos), buf 183 os/unix/ngx_files.c if (prev == cl->buf->pos) { buf 184 os/unix/ngx_files.c iov->iov_len += cl->buf->last - cl->buf->pos; buf 192 os/unix/ngx_files.c iov->iov_base = (void *) cl->buf->pos; buf 193 os/unix/ngx_files.c iov->iov_len = cl->buf->last - cl->buf->pos; buf 196 os/unix/ngx_files.c size += cl->buf->last - cl->buf->pos; buf 197 os/unix/ngx_files.c prev = cl->buf->last; buf 95 os/unix/ngx_files.h ssize_t ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset); buf 102 os/unix/ngx_files.h ssize_t ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, buf 118 os/unix/ngx_files.h ngx_write_fd(ngx_fd_t fd, void *buf, size_t n) buf 120 os/unix/ngx_files.h return write(fd, buf, n); buf 181 os/unix/ngx_files.h #define ngx_getcwd(buf, size) (getcwd((char *) buf, size) != NULL) buf 330 os/unix/ngx_files.h ssize_t ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, buf 113 os/unix/ngx_freebsd_sendfile_chain.c if (ngx_buf_special(cl->buf)) { buf 117 os/unix/ngx_freebsd_sendfile_chain.c if (!ngx_buf_in_memory_only(cl->buf)) { buf 121 os/unix/ngx_freebsd_sendfile_chain.c size = cl->buf->last - cl->buf->pos; buf 127 os/unix/ngx_freebsd_sendfile_chain.c if (prev == cl->buf->pos) { buf 136 os/unix/ngx_freebsd_sendfile_chain.c iov->iov_base = (void *) cl->buf->pos; buf 140 os/unix/ngx_freebsd_sendfile_chain.c prev = cl->buf->pos + (size_t) size; buf 146 os/unix/ngx_freebsd_sendfile_chain.c if (cl && cl->buf->in_file && send < limit) { buf 147 os/unix/ngx_freebsd_sendfile_chain.c file = cl->buf; buf 152 os/unix/ngx_freebsd_sendfile_chain.c size = cl->buf->file_last - cl->buf->file_pos; buf 157 os/unix/ngx_freebsd_sendfile_chain.c aligned = (cl->buf->file_pos + size + ngx_pagesize - 1) buf 160 os/unix/ngx_freebsd_sendfile_chain.c if (aligned <= cl->buf->file_last) { buf 161 os/unix/ngx_freebsd_sendfile_chain.c size = aligned - cl->buf->file_pos; buf 167 os/unix/ngx_freebsd_sendfile_chain.c fprev = cl->buf->file_pos + size; buf 171 os/unix/ngx_freebsd_sendfile_chain.c && cl->buf->in_file buf 173 os/unix/ngx_freebsd_sendfile_chain.c && file->file->fd == cl->buf->file->fd buf 174 os/unix/ngx_freebsd_sendfile_chain.c && fprev == cl->buf->file_pos); buf 187 os/unix/ngx_freebsd_sendfile_chain.c if (ngx_buf_special(cl->buf)) { buf 192 os/unix/ngx_freebsd_sendfile_chain.c if (!ngx_buf_in_memory_only(cl->buf)) { buf 196 os/unix/ngx_freebsd_sendfile_chain.c size = cl->buf->last - cl->buf->pos; buf 202 os/unix/ngx_freebsd_sendfile_chain.c if (prev == cl->buf->pos) { buf 211 os/unix/ngx_freebsd_sendfile_chain.c iov->iov_base = (void *) cl->buf->pos; buf 215 os/unix/ngx_freebsd_sendfile_chain.c prev = cl->buf->pos + (size_t) size; buf 361 os/unix/ngx_freebsd_sendfile_chain.c if (ngx_buf_special(cl->buf)) { buf 369 os/unix/ngx_freebsd_sendfile_chain.c size = ngx_buf_size(cl->buf); buf 374 os/unix/ngx_freebsd_sendfile_chain.c if (ngx_buf_in_memory(cl->buf)) { buf 375 os/unix/ngx_freebsd_sendfile_chain.c cl->buf->pos = cl->buf->last; buf 378 os/unix/ngx_freebsd_sendfile_chain.c if (cl->buf->in_file) { buf 379 os/unix/ngx_freebsd_sendfile_chain.c cl->buf->file_pos = cl->buf->file_last; buf 385 os/unix/ngx_freebsd_sendfile_chain.c if (ngx_buf_in_memory(cl->buf)) { buf 386 os/unix/ngx_freebsd_sendfile_chain.c cl->buf->pos += (size_t) sent; buf 389 os/unix/ngx_freebsd_sendfile_chain.c if (cl->buf->in_file) { buf 390 os/unix/ngx_freebsd_sendfile_chain.c cl->buf->file_pos += sent; buf 27 os/unix/ngx_linux_aio_read.c ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset, buf 36 os/unix/ngx_linux_aio_read.c return ngx_read_file(file, buf, size, offset); buf 85 os/unix/ngx_linux_aio_read.c aio->aiocb.aio_buf = (uint64_t) (uintptr_t) buf; buf 108 os/unix/ngx_linux_aio_read.c return ngx_read_file(file, buf, size, offset); buf 116 os/unix/ngx_linux_aio_read.c return ngx_read_file(file, buf, size, offset); buf 95 os/unix/ngx_linux_sendfile_chain.c if (ngx_buf_special(cl->buf)) { buf 100 os/unix/ngx_linux_sendfile_chain.c if (!ngx_buf_in_memory(cl->buf) && !cl->buf->in_file) { buf 104 os/unix/ngx_linux_sendfile_chain.c cl->buf->temporary, buf 105 os/unix/ngx_linux_sendfile_chain.c cl->buf->recycled, buf 106 os/unix/ngx_linux_sendfile_chain.c cl->buf->in_file, buf 107 os/unix/ngx_linux_sendfile_chain.c cl->buf->start, buf 108 os/unix/ngx_linux_sendfile_chain.c cl->buf->pos, buf 109 os/unix/ngx_linux_sendfile_chain.c cl->buf->last, buf 110 os/unix/ngx_linux_sendfile_chain.c cl->buf->file, buf 111 os/unix/ngx_linux_sendfile_chain.c cl->buf->file_pos, buf 112 os/unix/ngx_linux_sendfile_chain.c cl->buf->file_last); buf 120 os/unix/ngx_linux_sendfile_chain.c if (!ngx_buf_in_memory_only(cl->buf)) { buf 124 os/unix/ngx_linux_sendfile_chain.c size = cl->buf->last - cl->buf->pos; buf 130 os/unix/ngx_linux_sendfile_chain.c if (prev == cl->buf->pos) { buf 139 os/unix/ngx_linux_sendfile_chain.c iov->iov_base = (void *) cl->buf->pos; buf 143 os/unix/ngx_linux_sendfile_chain.c prev = cl->buf->pos + (size_t) size; buf 152 os/unix/ngx_linux_sendfile_chain.c && cl->buf->in_file) buf 214 os/unix/ngx_linux_sendfile_chain.c if (header.nelts == 0 && cl && cl->buf->in_file && send < limit) { buf 215 os/unix/ngx_linux_sendfile_chain.c file = cl->buf; buf 220 os/unix/ngx_linux_sendfile_chain.c size = cl->buf->file_last - cl->buf->file_pos; buf 225 os/unix/ngx_linux_sendfile_chain.c aligned = (cl->buf->file_pos + size + ngx_pagesize - 1) buf 228 os/unix/ngx_linux_sendfile_chain.c if (aligned <= cl->buf->file_last) { buf 229 os/unix/ngx_linux_sendfile_chain.c size = aligned - cl->buf->file_pos; buf 235 os/unix/ngx_linux_sendfile_chain.c fprev = cl->buf->file_pos + size; buf 239 os/unix/ngx_linux_sendfile_chain.c && cl->buf->in_file buf 241 os/unix/ngx_linux_sendfile_chain.c && file->file->fd == cl->buf->file->fd buf 242 os/unix/ngx_linux_sendfile_chain.c && fprev == cl->buf->file_pos); buf 327 os/unix/ngx_linux_sendfile_chain.c if (ngx_buf_special(cl->buf)) { buf 335 os/unix/ngx_linux_sendfile_chain.c size = ngx_buf_size(cl->buf); buf 340 os/unix/ngx_linux_sendfile_chain.c if (ngx_buf_in_memory(cl->buf)) { buf 341 os/unix/ngx_linux_sendfile_chain.c cl->buf->pos = cl->buf->last; buf 344 os/unix/ngx_linux_sendfile_chain.c if (cl->buf->in_file) { buf 345 os/unix/ngx_linux_sendfile_chain.c cl->buf->file_pos = cl->buf->file_last; buf 351 os/unix/ngx_linux_sendfile_chain.c if (ngx_buf_in_memory(cl->buf)) { buf 352 os/unix/ngx_linux_sendfile_chain.c cl->buf->pos += (size_t) sent; buf 355 os/unix/ngx_linux_sendfile_chain.c if (cl->buf->in_file) { buf 356 os/unix/ngx_linux_sendfile_chain.c cl->buf->file_pos += sent; buf 18 os/unix/ngx_os.h typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size); buf 20 os/unix/ngx_os.h typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size); buf 43 os/unix/ngx_os.h ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); buf 45 os/unix/ngx_os.h ssize_t ngx_udp_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); buf 46 os/unix/ngx_os.h ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size); buf 51 os/unix/ngx_os.h ssize_t ngx_aio_read(ngx_connection_t *c, u_char *buf, size_t size); buf 53 os/unix/ngx_os.h ssize_t ngx_aio_write(ngx_connection_t *c, u_char *buf, size_t size); buf 69 os/unix/ngx_readv_chain.c if (prev == chain->buf->last) { buf 70 os/unix/ngx_readv_chain.c iov->iov_len += chain->buf->end - chain->buf->last; buf 78 os/unix/ngx_readv_chain.c iov->iov_base = (void *) chain->buf->last; buf 79 os/unix/ngx_readv_chain.c iov->iov_len = chain->buf->end - chain->buf->last; buf 82 os/unix/ngx_readv_chain.c size += chain->buf->end - chain->buf->last; buf 83 os/unix/ngx_readv_chain.c prev = chain->buf->end; buf 193 os/unix/ngx_readv_chain.c if (prev == chain->buf->last) { buf 194 os/unix/ngx_readv_chain.c iov->iov_len += chain->buf->end - chain->buf->last; buf 202 os/unix/ngx_readv_chain.c iov->iov_base = (void *) chain->buf->last; buf 203 os/unix/ngx_readv_chain.c iov->iov_len = chain->buf->end - chain->buf->last; buf 206 os/unix/ngx_readv_chain.c size += chain->buf->end - chain->buf->last; buf 207 os/unix/ngx_readv_chain.c prev = chain->buf->end; buf 15 os/unix/ngx_recv.c ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size) buf 51 os/unix/ngx_recv.c n = recv(c->fd, buf, size, 0); buf 126 os/unix/ngx_recv.c ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size) buf 135 os/unix/ngx_recv.c n = recv(c->fd, buf, size, 0); buf 13 os/unix/ngx_send.c ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size) buf 33 os/unix/ngx_send.c n = send(c->fd, buf, size, 0); buf 98 os/unix/ngx_solaris_sendfilev_chain.c if (ngx_buf_special(cl->buf)) { buf 102 os/unix/ngx_solaris_sendfilev_chain.c if (ngx_buf_in_memory_only(cl->buf)) { buf 105 os/unix/ngx_solaris_sendfilev_chain.c size = cl->buf->last - cl->buf->pos; buf 111 os/unix/ngx_solaris_sendfilev_chain.c if (prev == cl->buf->pos) { buf 122 os/unix/ngx_solaris_sendfilev_chain.c sfv->sfv_off = (off_t) (uintptr_t) cl->buf->pos; buf 126 os/unix/ngx_solaris_sendfilev_chain.c prev = cl->buf->pos + (size_t) size; buf 132 os/unix/ngx_solaris_sendfilev_chain.c size = cl->buf->file_last - cl->buf->file_pos; buf 137 os/unix/ngx_solaris_sendfilev_chain.c aligned = (cl->buf->file_pos + size + ngx_pagesize - 1) buf 140 os/unix/ngx_solaris_sendfilev_chain.c if (aligned <= cl->buf->file_last) { buf 141 os/unix/ngx_solaris_sendfilev_chain.c size = aligned - cl->buf->file_pos; buf 145 os/unix/ngx_solaris_sendfilev_chain.c if (fd == cl->buf->file->fd && fprev == cl->buf->file_pos) { buf 154 os/unix/ngx_solaris_sendfilev_chain.c fd = cl->buf->file->fd; buf 157 os/unix/ngx_solaris_sendfilev_chain.c sfv->sfv_off = cl->buf->file_pos; buf 161 os/unix/ngx_solaris_sendfilev_chain.c fprev = cl->buf->file_pos + size; buf 200 os/unix/ngx_solaris_sendfilev_chain.c if (ngx_buf_special(cl->buf)) { buf 208 os/unix/ngx_solaris_sendfilev_chain.c size = ngx_buf_size(cl->buf); buf 213 os/unix/ngx_solaris_sendfilev_chain.c if (ngx_buf_in_memory(cl->buf)) { buf 214 os/unix/ngx_solaris_sendfilev_chain.c cl->buf->pos = cl->buf->last; buf 217 os/unix/ngx_solaris_sendfilev_chain.c if (cl->buf->in_file) { buf 218 os/unix/ngx_solaris_sendfilev_chain.c cl->buf->file_pos = cl->buf->file_last; buf 224 os/unix/ngx_solaris_sendfilev_chain.c if (ngx_buf_in_memory(cl->buf)) { buf 225 os/unix/ngx_solaris_sendfilev_chain.c cl->buf->pos += sent; buf 228 os/unix/ngx_solaris_sendfilev_chain.c if (cl->buf->in_file) { buf 229 os/unix/ngx_solaris_sendfilev_chain.c cl->buf->file_pos += sent; buf 43 os/unix/ngx_time.c char buf[4]; buf 49 os/unix/ngx_time.c strftime(buf, 4, "%H", t); buf 15 os/unix/ngx_udp_recv.c ngx_udp_unix_recv(ngx_connection_t *c, u_char *buf, size_t size) buf 24 os/unix/ngx_udp_recv.c n = recv(c->fd, buf, size, 0); buf 73 os/unix/ngx_udp_recv.c ngx_udp_unix_recv(ngx_connection_t *c, u_char *buf, size_t size) buf 82 os/unix/ngx_udp_recv.c n = recv(c->fd, buf, size, 0); buf 75 os/unix/ngx_writev_chain.c if (ngx_buf_special(cl->buf)) { buf 80 os/unix/ngx_writev_chain.c if (!ngx_buf_in_memory(cl->buf)) { buf 85 os/unix/ngx_writev_chain.c size = cl->buf->last - cl->buf->pos; buf 91 os/unix/ngx_writev_chain.c if (prev == cl->buf->pos) { buf 100 os/unix/ngx_writev_chain.c iov->iov_base = (void *) cl->buf->pos; buf 104 os/unix/ngx_writev_chain.c prev = cl->buf->pos + size; buf 143 os/unix/ngx_writev_chain.c if (ngx_buf_special(cl->buf)) { buf 151 os/unix/ngx_writev_chain.c size = cl->buf->last - cl->buf->pos; buf 155 os/unix/ngx_writev_chain.c cl->buf->pos = cl->buf->last; buf 160 os/unix/ngx_writev_chain.c cl->buf->pos += sent;