Lines Matching refs:resbuf
223 readln(int sd, char * resbuf, int * resbuflen, int * resbufpos) in readln() argument
227 while (strnstr(resbuf + *resbufpos, "\r\n", in readln()
231 memmove(resbuf, resbuf + *resbufpos, in readln()
242 len = recv(sd, resbuf + *resbuflen, BUFSIZ - *resbuflen, 0); in readln()
255 copybytes(int sd, int fd, off_t copylen, char * resbuf, int * resbuflen, in copybytes() argument
267 len = write(fd, resbuf + *resbufpos, len); in copybytes()
276 len = recv(sd, resbuf, BUFSIZ, 0); in copybytes()
298 char * resbuf = NULL; /* Response buffer */ in main() local
337 resbuf = malloc(BUFSIZ); in main()
338 if (resbuf == NULL) in main()
459 error = readln(sd, resbuf, &resbuflen, &resbufpos); in main()
462 hln = resbuf + resbufpos; in main()
464 resbufpos = (eolp - resbuf) + 2; in main()
611 error = readln(sd, resbuf, &resbuflen, in main()
615 hln = resbuf + resbufpos; in main()
617 resbufpos = (eolp - resbuf) + 2; in main()
633 error = copybytes(sd, fd, clen, resbuf, in main()
642 error = readln(sd, resbuf, &resbuflen, in main()
646 hln = resbuf + resbufpos; in main()
648 resbufpos = (eolp - resbuf) + 2; in main()
651 error = copybytes(sd, fd, contentlength, resbuf, in main()
661 error = copybytes(sd, fd, OFF_MAX, resbuf, in main()
728 free(resbuf); in main()