Lines Matching refs:buf
31 static char buf[65536]; variable
79 rd = recv(fd, buf+offset, sizeof(buf)-offset, MSG_DONTWAIT); in scgi_process()
84 p = memchr(buf, ':', offset); in scgi_process()
91 } while (NULL == (p = memchr(buf,':',offset)) && offset < 21); in scgi_process()
94 rlen = strtoul(buf, &p, 10); in scgi_process()
95 if (*buf == '-' || *p != ':' || p == buf || rlen == ULONG_MAX) in scgi_process()
97 if (rlen > sizeof(buf) - (p - buf) - 2) in scgi_process()
99 rlen += (p - buf) + 2; in scgi_process()
114 rd = recv(fd, buf+offset, sizeof(buf)-offset, MSG_DONTWAIT); in scgi_process()
127 if (buf[rlen-1] != ',') in scgi_process()
129 rlen -= (p - buf) + 2; in scgi_process()
152 cl -= (offset - (r+rlen+1 - buf)); in scgi_process()