Lines Matching refs:resbuf
221 readln(int sd, char * resbuf, int * resbuflen, int * resbufpos) in readln() argument
225 while (strnstr(resbuf + *resbufpos, "\r\n", in readln()
229 memmove(resbuf, resbuf + *resbufpos, in readln()
240 len = recv(sd, resbuf + *resbuflen, BUFSIZ - *resbuflen, 0); in readln()
253 copybytes(int sd, int fd, off_t copylen, char * resbuf, int * resbuflen, in copybytes() argument
265 len = write(fd, resbuf + *resbufpos, len); in copybytes()
274 len = recv(sd, resbuf, BUFSIZ, 0); in copybytes()
296 char * resbuf = NULL; /* Response buffer */ in main() local
335 resbuf = malloc(BUFSIZ); in main()
336 if (resbuf == NULL) in main()
457 error = readln(sd, resbuf, &resbuflen, &resbufpos); in main()
460 hln = resbuf + resbufpos; in main()
462 resbufpos = (eolp - resbuf) + 2; in main()
609 error = readln(sd, resbuf, &resbuflen, in main()
613 hln = resbuf + resbufpos; in main()
615 resbufpos = (eolp - resbuf) + 2; in main()
631 error = copybytes(sd, fd, clen, resbuf, in main()
640 error = readln(sd, resbuf, &resbuflen, in main()
644 hln = resbuf + resbufpos; in main()
646 resbufpos = (eolp - resbuf) + 2; in main()
649 error = copybytes(sd, fd, contentlength, resbuf, in main()
659 error = copybytes(sd, fd, OFF_MAX, resbuf, in main()
726 free(resbuf); in main()