Lines Matching defs:needlen
822 unsigned int needlen;
824 needlen = strlen(httpd->protocol) + 1; /* protocol + space */
825 needlen += 3 + 1; /* room for response code, always 3 bytes */
826 needlen += strlen(httpd->retmsg) + 2; /* return msg + CRLF */
828 while (isc_buffer_availablelength(&httpd->headerbuffer) < needlen) {
836 isc_buffer_add(&httpd->headerbuffer, needlen);
846 unsigned int needlen;
848 needlen = strlen(name); /* name itself */
850 needlen += 2 + strlen(val); /* :<space> and val */
851 needlen += 2; /* CRLF */
853 while (isc_buffer_availablelength(&httpd->headerbuffer) < needlen) {
866 isc_buffer_add(&httpd->headerbuffer, needlen);
891 unsigned int needlen;
896 needlen = strlen(name); /* name itself */
897 needlen += 2 + strlen(buf); /* :<space> and val */
898 needlen += 2; /* CRLF */
900 while (isc_buffer_availablelength(&httpd->headerbuffer) < needlen) {
909 isc_buffer_add(&httpd->headerbuffer, needlen);