Lines Matching defs:tmpname
464 char *buff, *endbuff, *tmpname=0;
474 tmpname = (char*)malloc(strlen(name)+14);
478 pathtmp(tmpname,name,"hist",NIL(int*));
482 pathtmp(tmpname,".","hist",NIL(int*));
483 if(rename(name,tmpname) < 0)
485 free(tmpname);
486 tmpname = name;
488 fd = open(tmpname,O_RDONLY);
490 if(tmpname==name)
491 tmpname = 0;
546 if(tmpname)
548 unlink(tmpname);
549 free(tmpname);