Lines Matching defs:pos

78     u_char                        *pos;
828 u_char ch, *pos, *lowcase_key;
1001 ngx_memcpy(b->pos, &ngx_http_fastcgi_request_start,
1005 (b->pos + sizeof(ngx_http_fastcgi_header_t)
1013 b->last = b->pos + sizeof(ngx_http_fastcgi_header_t)
1022 e.pos = b->last;
1055 *e.pos++ = (u_char) key_len;
1058 *e.pos++ = (u_char) (((val_len >> 24) & 0x7f) | 0x80);
1059 *e.pos++ = (u_char) ((val_len >> 16) & 0xff);
1060 *e.pos++ = (u_char) ((val_len >> 8) & 0xff);
1061 *e.pos++ = (u_char) (val_len & 0xff);
1064 *e.pos++ = (u_char) val_len;
1075 key_len, e.pos - (key_len + val_len),
1076 val_len, e.pos - val_len);
1079 b->last = e.pos;
1188 pos = NULL;
1202 pos = body->buf->pos;
1228 b->pos = pos;
1229 b->start = pos;
1230 pos += 32 * 1024;
1232 if (pos >= body->buf->last) {
1233 pos = body->buf->last;
1237 b->last = pos;
1238 len = (ngx_uint_t) (pos - b->pos);
1344 u_char *pos, *start;
1410 b->pos = b->start;
1423 pos = NULL;
1429 "fastcgi output in l:%d f:%d %p, pos %p, size: %z "
1433 in->buf->start, in->buf->pos,
1434 in->buf->last - in->buf->pos,
1451 pos = in->buf->pos;
1487 b->pos = pos;
1488 pos += 32 * 1024;
1490 if (pos >= in->buf->last) {
1491 pos = in->buf->last;
1495 b->last = pos;
1496 len = (ngx_uint_t) (pos - b->pos);
1543 b->pos = b->start;
1591 "fastcgi output out l:%d f:%d %p, pos %p, size: %z "
1595 cl->buf->start, cl->buf->pos,
1596 cl->buf->last - cl->buf->pos,
1615 b->pos = b->last;
1654 f->pos = u->buffer.pos;
1659 u->buffer.pos = f->pos;
1690 if (u->buffer.pos + f->padding < u->buffer.last) {
1692 u->buffer.pos += f->padding;
1697 if (u->buffer.pos + f->padding == u->buffer.last) {
1699 u->buffer.pos = u->buffer.last;
1704 f->padding -= u->buffer.last - u->buffer.pos;
1705 u->buffer.pos = u->buffer.last;
1716 msg = u->buffer.pos;
1718 if (u->buffer.pos + f->length <= u->buffer.last) {
1719 u->buffer.pos += f->length;
1724 f->length -= u->buffer.last - u->buffer.pos;
1725 u->buffer.pos = u->buffer.last;
1728 for (p = u->buffer.pos - 1; msg < p; p--) {
1754 if (u->buffer.pos == u->buffer.last) {
1765 u->buffer.pos = u->buffer.start
1768 u->buffer.pos = u->buffer.start;
1771 u->buffer.pos = u->buffer.start;
1773 u->buffer.last = u->buffer.pos;
1798 len = u->buffer.pos - start - 2 * sizeof(ngx_http_fastcgi_header_t);
1820 r->cache->header_start += u->buffer.pos - start
1831 start = u->buffer.pos;
1833 if (u->buffer.pos + f->length < u->buffer.last) {
1841 u->buffer.last = u->buffer.pos + f->length;
1849 part_start = u->buffer.pos;
1873 size = u->buffer.pos - part_start;
1884 buf.pos = p;
1891 p = ngx_cpymem(p, part_start, u->buffer.pos - part_start);
1961 if (u->buffer.pos < u->buffer.last) {
2021 f->length -= u->buffer.pos - start;
2056 if (u->buffer.pos < u->buffer.last) {
2091 if (buf->pos == buf->last) {
2102 f->pos = buf->pos;
2150 if (f->pos + f->padding < f->last) {
2155 if (f->pos + f->padding == f->last) {
2161 f->padding -= f->last - f->pos;
2166 if (f->pos + f->padding < f->last) {
2168 f->pos += f->padding;
2173 if (f->pos + f->padding == f->last) {
2179 f->padding -= f->last - f->pos;
2191 if (f->pos == f->last) {
2195 msg = f->pos;
2197 if (f->pos + f->length <= f->last) {
2198 f->pos += f->length;
2203 f->length -= f->last - f->pos;
2204 f->pos = f->last;
2207 for (m = f->pos - 1; msg < m; m--) {
2226 if (f->pos + f->length <= f->last) {
2228 f->pos += f->length;
2233 f->length -= f->last - f->pos;
2241 if (f->pos == f->last) {
2254 b->pos = f->pos;
2275 "input buf #%d %p", b->num, b->pos);
2277 if (f->pos + f->length <= f->last) {
2279 f->pos += f->length;
2280 b->last = f->pos;
2285 f->length -= f->last - f->pos;
2315 "input buf %p %z", b->pos, b->last - b->pos);
2347 buf->pos = buf->last;
2354 f->pos = buf->pos;
2384 if (f->pos + f->padding < f->last) {
2389 if (f->pos + f->padding == f->last) {
2395 f->padding -= f->last - f->pos;
2400 if (f->pos + f->padding < f->last) {
2402 f->pos += f->padding;
2407 if (f->pos + f->padding == f->last) {
2413 f->padding -= f->last - f->pos;
2425 if (f->pos == f->last) {
2429 msg = f->pos;
2431 if (f->pos + f->length <= f->last) {
2432 f->pos += f->length;
2437 f->length -= f->last - f->pos;
2438 f->pos = f->last;
2441 for (m = f->pos - 1; msg < m; m--) {
2460 if (f->pos + f->length <= f->last) {
2462 f->pos += f->length;
2467 f->length -= f->last - f->pos;
2475 if (f->pos == f->last) {
2492 b->pos = f->pos;
2496 "http fastcgi output buf %p", b->pos);
2498 if (f->pos + f->length <= f->last) {
2500 f->pos += f->length;
2501 b->last = f->pos;
2506 f->length -= f->last - f->pos;
2519 buf->pos = cl->buf->pos;
2522 buf->last = buf->pos;
2527 cl->buf->pos, cl->buf->last, ngx_buf_size(cl->buf));
2529 if (buf->last == cl->buf->pos) {
2534 buf->last = ngx_movemem(buf->last, cl->buf->pos,
2535 cl->buf->last - cl->buf->pos);
2537 cl->buf->pos = buf->last - (cl->buf->last - cl->buf->pos);
2555 for (p = f->pos; p < f->last; p++) {
2634 f->pos = p + 1;