Lines Matching refs:ptr
226 char *ptr; in ProcessRequest() local
244 ptr = strrchr(doc, '/'); in ProcessRequest()
247 if(ptr) { in ProcessRequest()
257 if(!strncmp("/verifiedserver", ptr, 15)) { in ProcessRequest()
263 if(!strncmp("/quit", ptr, 5)) { in ProcessRequest()
269 ptr++; /* skip the slash */ in ProcessRequest()
272 while(*ptr && !ISDIGIT(*ptr)) in ProcessRequest()
273 ptr++; in ProcessRequest()
275 req->testno = strtol(ptr, &ptr, 10); in ProcessRequest()
316 ptr = cmd; in ProcessRequest()
322 if(!strncmp(CMD_AUTH_REQUIRED, ptr, strlen(CMD_AUTH_REQUIRED))) { in ProcessRequest()
326 else if(!strncmp(CMD_IDLE, ptr, strlen(CMD_IDLE))) { in ProcessRequest()
331 else if(!strncmp(CMD_STREAM, ptr, strlen(CMD_STREAM))) { in ProcessRequest()
335 else if(1 == sscanf(ptr, "pipe: %d", &num)) { in ProcessRequest()
343 else if(1 == sscanf(ptr, "skip: %d", &num)) { in ProcessRequest()
347 else if(3 <= sscanf(ptr, in ProcessRequest()
393 logmsg("funny instruction found: %s", ptr); in ProcessRequest()
396 ptr = strchr(ptr, '\n'); in ProcessRequest()
397 if(ptr) in ProcessRequest()
398 ptr++; in ProcessRequest()
400 ptr = NULL; in ProcessRequest()
401 } while(ptr && *ptr); in ProcessRequest()
473 char *ptr = line + 15; in ProcessRequest() local
475 while(*ptr && ISSPACE(*ptr)) in ProcessRequest()
476 ptr++; in ProcessRequest()
477 endptr = ptr; in ProcessRequest()
479 clen = strtoul(ptr, &endptr, 10); in ProcessRequest()
480 if((ptr == endptr) || !ISSPACE(*endptr) || (ERANGE == errno)) { in ProcessRequest()
482 logmsg("Found invalid Content-Length: (%s) in the request", ptr); in ProcessRequest()
769 char *ptr = NULL; in send_doc() local
867 error = getpart(&ptr, &count, "reply", partbuf, stream); in send_doc()
873 buffer = ptr; in send_doc()
877 free(ptr); in send_doc()
887 free(ptr); in send_doc()
896 free(ptr); in send_doc()
903 free(ptr); in send_doc()
928 free(ptr); in send_doc()
987 free(ptr); in send_doc()
996 free(ptr); in send_doc()
1003 free(ptr); in send_doc()
1009 ptr = cmd; in send_doc()
1011 if(2 == sscanf(ptr, "%31s %d", command, &num)) { in send_doc()
1034 ptr = strchr(ptr, '\n'); in send_doc()
1035 if(ptr) in send_doc()
1036 ptr++; in send_doc()
1038 ptr = NULL; in send_doc()
1039 } while(ptr && *ptr); in send_doc()