Home
last modified time | relevance | path

Searched refs:tempf (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/unbound/dnstap/
H A Ddnstap_fstrm.c213 char tempf[512]; in fstrm_describe_control() local
215 if(field_len < sizeof(tempf)-1) { in fstrm_describe_control()
216 memmove(tempf, pos+8, field_len); in fstrm_describe_control()
217 tempf[field_len] = 0; in fstrm_describe_control()
218 (void)sldns_str_print(&str, &slen, "%s", tempf); in fstrm_describe_control()
/freebsd/contrib/unbound/smallapp/
H A Dunbound-anchor.c1839 tempfile_open(char* tempf, size_t tempflen, const char* fname, const char* mode) in tempfile_open() argument
1841 snprintf(tempf, tempflen, "%s~", fname); in tempfile_open()
1842 return fopen(tempf, mode); in tempfile_open()
1847 tempfile_close(FILE* fd, const char* tempf, const char* fname) in tempfile_close() argument
1857 tempf, strerror(errno)); in tempfile_close()
1858 unlink(tempf); in tempfile_close()
1865 if(rename(tempf, fname) < 0) { in tempfile_close()
1866 printf("rename(%s to %s): %s", tempf, fname, strerror(errno)); in tempfile_close()
1876 char tempf[2048]; in write_unsigned_root() local
1877 out = tempfile_open(tempf, sizeof(tempf), root_anchor_file, "w"); in write_unsigned_root()
[all …]
/freebsd/contrib/unbound/validator/
H A Dautotrust.c1195 char tempf[2048]; in autr_write_file() local
1210 snprintf(tempf, sizeof(tempf), "%s.%d-%d-" ARG_LL "x", fname, (int)getpid(), in autr_write_file()
1213 verbose(VERB_ALGO, "autotrust: write to disk: %s", tempf); in autr_write_file()
1214 out = fopen(tempf, "w"); in autr_write_file()
1217 tempf, strerror(errno)); in autr_write_file()
1220 if(!autr_write_contents(out, tempf, tp)) { in autr_write_file()
1223 unlink(tempf); in autr_write_file()
1238 unlink(tempf); in autr_write_file()
1246 if(rename(tempf, fname) < 0) { in autr_write_file()
1247 fatal_exit("rename(%s to %s): %s", tempf, fname, strerror(errno)); in autr_write_file()