Lines Matching defs:tempf
1850 tempfile_open(char* tempf, size_t tempflen, const char* fname, const char* mode)
1852 snprintf(tempf, tempflen, "%s~", fname);
1853 return fopen(tempf, mode);
1858 tempfile_close(FILE* fd, const char* tempf, const char* fname)
1868 tempf, strerror(errno));
1869 unlink(tempf);
1876 if(rename(tempf, fname) < 0) {
1877 printf("rename(%s to %s): %s", tempf, fname, strerror(errno));
1887 char tempf[2048];
1888 out = tempfile_open(tempf, sizeof(tempf), root_anchor_file, "w");
1890 if(verb) printf("%s: %s\n", tempf, strerror(errno));
1905 tempfile_close(out, tempf, root_anchor_file);
1915 char tempf[2048];
1922 out = tempfile_open(tempf, sizeof(tempf), root_anchor_file, "w");
1924 if(verb) printf("%s: %s\n", tempf, strerror(errno));
1929 tempf);
1932 tempfile_close(out, tempf, root_anchor_file);
2076 char tempf[2048];
2078 FILE* out = tempfile_open(tempf, sizeof(tempf), file, "w");
2081 tempf, strerror(errno));
2086 tempf, strerror(errno));
2088 tempfile_close(out, tempf, file);