Lines Matching refs:tmpfile
153 char tmpfile[PATH_MAX];165 if (strlcpy(tmpfile, file, sizeof(tmpfile)) >= sizeof(tmpfile))167 if (strlcat(tmpfile, ".XXXXXXXX", sizeof(tmpfile)) >= sizeof(tmpfile))169 fd = mkstemp(tmpfile);220 unlink(tmpfile);222 if (rename(tmpfile, file) == -1) {224 unlink(tmpfile);