Searched refs:last (Results 1 - 25 of 113) sorted by relevance

12345

/tldk/app/nginx/src/core/
H A Dngx_list.c34 ngx_list_part_t *last; local
36 last = l->last;
38 if (last->nelts == l->nalloc) {
40 /* the last part is full, allocate a new list part */
42 last = ngx_palloc(l->pool, sizeof(ngx_list_part_t));
43 if (last == NULL) {
47 last->elts = ngx_palloc(l->pool, l->nalloc * l->size);
48 if (last->elts == NULL) {
52 last
[all...]
H A Dngx_proxy_protocol.h20 u_char *last);
22 u_char *last);
H A Dngx_proxy_protocol.c13 ngx_proxy_protocol_read(ngx_connection_t *c, u_char *buf, u_char *last) argument
20 len = last - buf;
46 if (p == last) {
76 if (p == last) {
88 if (p == last) {
112 for ( /* void */ ; p < last - 1; p++) {
121 "broken header: \"%*s\"", (size_t) (last - buf), buf);
128 ngx_proxy_protocol_write(ngx_connection_t *c, u_char *buf, u_char *last) argument
132 if (last - buf < NGX_PROXY_PROTOCOL_MAX_HEADER) {
157 buf += ngx_sock_ntop(c->sockaddr, c->socklen, buf, last
[all...]
H A Dngx_array.c37 if ((u_char *) a->elts + a->size * a->nalloc == p->d.last) {
38 p->d.last -= a->size * a->nalloc;
41 if ((u_char *) a + sizeof(ngx_array_t) == p->d.last) {
42 p->d.last = (u_char *) a;
62 if ((u_char *) a->elts + size == p->d.last
63 && p->d.last + a->size <= p->d.end)
66 * the array allocation is the last in the pool
70 p->d.last += a->size;
110 if ((u_char *) a->elts + a->size * a->nalloc == p->d.last
111 && p->d.last
[all...]
H A Dngx_list.h26 ngx_list_part_t *last; member in struct:__anon36
46 list->last = &list->part;
H A Dngx_log.c110 u_char *p, *last, *msg; local
115 last = errstr + NGX_MAX_ERROR_STR;
120 p = ngx_slprintf(p, last, " [%V] ", &err_levels[level]);
123 p = ngx_slprintf(p, last, "%P#" NGX_TID_T_FMT ": ",
127 p = ngx_slprintf(p, last, "*%uA ", log->connection);
135 p = ngx_vslprintf(p, last, fmt, args);
140 p = ngx_vslprintf(p, last, fmt, args);
145 p = ngx_log_errno(p, last, err);
149 p = log->handler(log, p, last - p);
152 if (p > last
261 u_char *p, *last; local
288 ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err) argument
[all...]
H A Dngx_output_chain.c49 ngx_int_t rc, last; local
88 last = NGX_NONE;
117 ctx->in->buf->last,
205 if (out == NULL && last != NGX_NONE) {
211 return last;
214 last = ctx->output_filter(ctx->filter_ctx, out);
216 if (last == NGX_ERROR || last == NGX_DONE) {
217 return last;
347 b->last
[all...]
H A Dngx_parse.c114 u_char *p, *last; local
139 last = p + line->len;
141 while (p < last) {
201 if (p < last && *p == 's') {
261 while (p < last && *p == ' ') {
/tldk/app/nginx/src/http/modules/
H A Dngx_http_autoindex_module.c155 u_char *last, *filename; local
185 last = ngx_http_map_uri_to_path(r, &path, &root,
187 if (last == NULL) {
192 path.len = last - path.data;
330 last = ngx_cpystrn(filename, path.data, path.len + 1);
331 *last++ = '/';
334 ngx_cpystrn(last, ngx_de_name(&dir), len + 1);
431 u_char *last, scale; local
516 b->last = ngx_cpymem(b->last, titl
[all...]
H A Dngx_http_memcached_module.c270 *b->last++ = 'g'; *b->last++ = 'e'; *b->last++ = 't'; *b->last++ = ' ';
274 ctx->key.data = b->last;
277 b->last = ngx_copy(b->last, vv->data, vv->len);
280 b->last = (u_char *) ngx_escape_uri(b->last, vv->data, vv->len,
284 ctx->key.len = b->last
471 u_char *last; local
[all...]
H A Dngx_http_stub_status_module.c137 b->last = ngx_sprintf(b->last, "Active connections: %uA \n", ac);
139 b->last = ngx_cpymem(b->last, "server accepts handled requests\n",
142 b->last = ngx_sprintf(b->last, " %uA %uA %uA \n", ap, hn, rq);
144 b->last = ngx_sprintf(b->last, "Reading: %uA Writing: %uA Waiting: %uA \n",
148 r->headers_out.content_length_n = b->last - b->pos;
H A Dngx_http_secure_link_module.c104 u_char *p, *last; local
129 last = val.data + val.len;
131 p = ngx_strlchr(val.data, last, ',');
137 expires = ngx_atotm(p, last - p);
149 ctx->expires.len = last - p;
204 u_char *p, *start, *end, *last; local
212 last = r->unparsed_uri.data + r->unparsed_uri.len;
214 while (p < last) {
225 while (p < last) {
236 len = last
[all...]
H A Dngx_http_random_index_module.c76 u_char *last, *filename; local
106 last = ngx_http_map_uri_to_path(r, &path, &root, len);
107 if (last == NULL) {
113 path.len = last - path.data - 1;
188 last = ngx_cpystrn(filename, path.data, path.len + 1);
189 *last++ = '/';
192 ngx_cpystrn(last, ngx_de_name(&dir), len + 1);
253 last = ngx_copy(uri.data, r->uri.data, r->uri.len);
254 ngx_memcpy(last, name[n].data, name[n].len);
H A Dngx_http_static_module.c51 u_char *last, *location; local
77 last = ngx_http_map_uri_to_path(r, &path, &root, 0);
78 if (last == NULL) {
82 path.len = last - path.data;
163 *last = '/';
175 last = ngx_copy(location, r->uri.data, r->uri.len);
177 *last = '/';
180 *++last = '?';
181 ngx_memcpy(++last, r->args.data, r->args.len);
H A Dngx_http_fastcgi_module.c79 u_char *last; member in struct:__anon128
1013 b->last = b->pos + sizeof(ngx_http_fastcgi_header_t)
1022 e.pos = b->last;
1079 b->last = e.pos;
1108 *b->last++ = (u_char) (((key_len >> 24) & 0x7f) | 0x80);
1109 *b->last++ = (u_char) ((key_len >> 16) & 0xff);
1110 *b->last++ = (u_char) ((key_len >> 8) & 0xff);
1111 *b->last++ = (u_char) (key_len & 0xff);
1114 *b->last++ = (u_char) key_len;
1119 *b->last
1348 ngx_uint_t next, last; local
1629 u_char *p, *msg, *start, *last, local
[all...]
H A Dngx_http_rewrite_module.c311 ngx_uint_t last; local
348 /* the last "?" drops the original arguments */
355 last = 0;
363 last = 1;
367 if (ngx_strcmp(value[3].data, "last") == 0) {
368 last = 1;
372 last = 1;
377 last = 1;
382 last = 1;
428 if (last) {
655 ngx_uint_t cur, last; local
[all...]
/tldk/app/nginx/src/http/
H A Dngx_http_header_filter_module.c439 b->last = ngx_cpymem(b->last, "HTTP/1.1 ", sizeof("HTTP/1.x ") - 1);
443 b->last = ngx_copy(b->last, status_line->data, status_line->len);
446 b->last = ngx_sprintf(b->last, "%03ui ", status);
448 *b->last++ = CR; *b->last++ = LF;
464 b->last = ngx_cpymem(b->last,
[all...]
H A Dngx_http_write_filter_module.c51 ngx_uint_t last, flush, sync; local
66 last = 0;
69 /* find the size, the flush point and the last link of the saved chain */
79 cl->buf->last - cl->buf->pos,
93 cl->buf->last,
114 last = 1;
135 cl->buf->last - cl->buf->pos,
149 cl->buf->last,
170 last = 1;
177 "http write filter: l:%ui f:%ui s:%O", last, flus
[all...]
H A Dngx_http_request_body.c88 preread = r->header_in->last - r->header_in->pos;
106 r->request_length += preread - (r->header_in->last - r->header_in->pos);
110 && rb->rest <= (off_t) (r->header_in->end - r->header_in->last))
123 b->last = r->header_in->last;
283 if (rb->buf->last == rb->buf->end) {
285 if (rb->buf->pos != rb->buf->last) {
326 rb->buf->last = rb->buf->start;
329 size = rb->buf->end - rb->buf->last;
330 rest = rb->rest - (rb->buf->last
[all...]
/tldk/app/nginx/src/os/win32/
H A Dngx_event_log.c17 u_char *p, *last; local
26 last = text + NGX_MAX_ERROR_STR;
33 p = ngx_vslprintf(p, last, fmt, args);
37 p = ngx_log_errno(p, last, err);
40 if (p > last - NGX_LINEFEED_SIZE - 1) {
41 p = last - NGX_LINEFEED_SIZE - 1;
H A Dngx_wsarecv_chain.c44 n = chain->buf->end - chain->buf->last;
56 if (prev == chain->buf->last) {
65 wsabuf->buf = (char *) chain->buf->last;
H A Dngx_wsasend_chain.c70 size = cl->buf->last - cl->buf->pos;
77 wsabuf->len += cl->buf->last - cl->buf->pos;
86 wsabuf->len = cl->buf->last - cl->buf->pos;
89 prev = cl->buf->last;
189 size = cl->buf->last - cl->buf->pos;
196 wsabuf->len += cl->buf->last - cl->buf->pos;
205 wsabuf->len = cl->buf->last - cl->buf->pos;
208 prev = cl->buf->last;
/tldk/app/nginx/src/mail/
H A Dngx_mail_auth_http_module.c261 size = ctx->request->last - ctx->request->pos;
334 size = ctx->response->end - ctx->response->last;
339 ctx->response->last += n;
375 for (p = ctx->response->pos; p < ctx->response->last; p++) {
934 for (p = ctx->response->pos; p < ctx->response->last; p++) {
1248 b->last = ngx_cpymem(b->last, "GET ", sizeof("GET ") - 1);
1249 b->last = ngx_copy(b->last, ahcf->uri.data, ahcf->uri.len);
1250 b->last
[all...]
H A Dngx_mail_smtp_module.c146 u_char *p, *auth, *last; local
233 last = p;
240 last = p;
249 last = p;
268 last[3] = ' ';
286 + (last - conf->capability.data) + 3;
304 if (last < auth) {
306 + (last - conf->capability.data) + 3;
/tldk/app/nginx/src/stream/
H A Dngx_stream_write_filter_module.c57 ngx_uint_t last, flush, sync; local
90 last = 0;
93 /* find the size, the flush point and the last link of the saved chain */
103 cl->buf->last - cl->buf->pos,
117 cl->buf->last,
138 last = 1;
159 cl->buf->last - cl->buf->pos,
173 cl->buf->last,
194 last = 1;
201 "stream write filter: l:%ui f:%ui s:%O", last, flus
[all...]

Completed in 16 milliseconds

12345