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.c1999 tempfile_open(char* tempf, size_t tempflen, const char* fname, const char* mode) in tempfile_open() argument
2001 snprintf(tempf, tempflen, "%s~", fname); in tempfile_open()
2002 return fopen(tempf, mode); in tempfile_open()
2007 tempfile_close(FILE* fd, const char* tempf, const char* fname) in tempfile_close() argument
2017 tempf, strerror(errno)); in tempfile_close()
2018 unlink(tempf); in tempfile_close()
2025 if(rename(tempf, fname) < 0) { in tempfile_close()
2026 printf("rename(%s to %s): %s", tempf, fname, strerror(errno)); in tempfile_close()
2036 char tempf[2048]; in write_unsigned_root() local
2037 out = tempfile_open(tempf, sizeof(tempf), root_anchor_file, "w"); in write_unsigned_root()
[all …]
/freebsd/contrib/unbound/validator/
H A Dautotrust.c1232 char tempf[2048]; in autr_write_file() local
1252 snprintf(tempf, sizeof(tempf), "%s.%d-%d-" ARG_LL "x", fname, (int)getpid(), in autr_write_file()
1255 verbose(VERB_ALGO, "autotrust: write to disk: %s", tempf); in autr_write_file()
1256 out = fopen(tempf, "w"); in autr_write_file()
1259 tempf, strerror(errno)); in autr_write_file()
1262 if(!autr_write_contents(out, tempf, tp)) { in autr_write_file()
1265 unlink(tempf); in autr_write_file()
1280 unlink(tempf); in autr_write_file()
1288 if(rename(tempf, fname) < 0) { in autr_write_file()
1289 fatal_exit("rename(%s to %s): %s", tempf, fname, strerror(errno)); in autr_write_file()