Home | History | Annotate | Download | only in mod_ecs

Lines Matching full:len

94   int len;
110 int len;
116 len = ilen;
121 len = eol - idata + 1;
123 if (len > olen) len = olen;
124 memcpy (odata, idata, len);
125 odata[len] = '\0';
126 return len;
129 static int h_getline (char *buf, int len, void *h)
135 if (hbuf->loc > hbuf->len)
138 ret = buf_getline (hbuf->buf + hbuf->loc, hbuf->len - hbuf->loc, buf, len, &(hbuf->nonl));
149 int done, len;
156 len = buf_getline (data + done, dlen - done, buf, sizeof(buf), &(hbuf->nonl));
157 if (len == 0)
159 done += len;
160 if (hbuf->len + len > hbuf->max)
163 if (hbuf->len + len > hbuf->max)
165 hbuf->max += len + 1;
169 memcpy (hbuf->buf + hbuf->len, buf, len);
170 hbuf->len += len;
192 static int wrap_write (void *data, const char *buf, size_t len)
199 fprintf (stderr, "wrap_write (%s, %d)\n", buf, len);
203 wl = header_write (&(wrap->hbuf), buf, len);
206 return len;
218 if (len >= wl)
220 len = len - wl;
254 return len;
257 fprintf (stderr, "ap_rwrite(%s,%d)\n", buf, len);
259 ret = ap_rwrite (buf, len, wrap->r);
269 int len;
271 len = ap_vsnprintf (buf, sizeof(buf), fmt, ap);
272 return wrap_write (data, buf, len);
275 static int wrap_read (void *data, char *buf, size_t len)
282 fprintf (stderr, "wrap_read (%s, %d)\n", buf, len);
286 ret = ap_get_client_block(wrap->r, buf + x, len - x);
289 } while (x < len);