Lines Matching refs:tmppath
9295 char *tmppath; in writeconf() local
9309 tmppath = malloc(strlen("ipqosconf.tmp") + 1); in writeconf()
9310 if (tmppath == NULL) { in writeconf()
9314 (void) strcpy(tmppath, "ipqosconf.tmp"); in writeconf()
9319 tmppath = malloc(strlen("/ipqosconf.tmp") + 1); in writeconf()
9320 if (tmppath == NULL) { in writeconf()
9324 (void) strcpy(tmppath, "/ipqosconf.tmp"); in writeconf()
9330 tmppath = malloc(strlen(dstpath) + strlen("/ipqosconf.tmp") + in writeconf()
9332 if (tmppath == NULL) { in writeconf()
9336 (void) strcpy(tmppath, dstpath); in writeconf()
9337 (void) strcat(tmppath, "/ipqosconf.tmp"); in writeconf()
9344 tmpfp = fopen(tmppath, "w"); in writeconf()
9347 free(tmppath); in writeconf()
9364 free(tmppath); in writeconf()
9374 if (rename(tmppath, dstpath) != 0) { in writeconf()
9376 free(tmppath); in writeconf()
9379 free(tmppath); in writeconf()