Lines Matching defs:needlen
1037 unsigned int needlen;
1039 needlen = strlen(httpd->protocol) + 1; /* protocol + space */
1040 needlen += 3 + 1; /* room for response code, always 3 bytes */
1041 needlen += strlen(httpd->retmsg) + 2; /* return msg + CRLF */
1043 while (isc_buffer_availablelength(&httpd->headerbuffer) < needlen) {
1053 isc_buffer_add(&httpd->headerbuffer, needlen);
1063 unsigned int needlen;
1065 needlen = strlen(name); /* name itself */
1067 needlen += 2 + strlen(val); /* :<space> and val */
1068 needlen += 2; /* CRLF */
1070 while (isc_buffer_availablelength(&httpd->headerbuffer) < needlen) {
1085 isc_buffer_add(&httpd->headerbuffer, needlen);
1110 unsigned int needlen;
1115 needlen = strlen(name); /* name itself */
1116 needlen += 2 + strlen(buf); /* :<space> and val */
1117 needlen += 2; /* CRLF */
1119 while (isc_buffer_availablelength(&httpd->headerbuffer) < needlen) {
1129 isc_buffer_add(&httpd->headerbuffer, needlen);