Home
last modified time | relevance | path

Searched refs:tempfd (Results 1 – 4 of 4) sorted by relevance

/freebsd-12.1/contrib/libarchive/libarchive/
H A Darchive_read_disk_entry_from_file.c330 int tempfd = -1; in setup_mac_metadata() local
363 tempfd = mkstemp(tempfile.s); in setup_mac_metadata()
364 if (tempfd < 0) { in setup_mac_metadata()
370 __archive_ensure_cloexec_flag(tempfd); in setup_mac_metadata()
382 if (fstat(tempfd, &copyfile_stat)) { in setup_mac_metadata()
395 if (copyfile_stat.st_size != read(tempfd, buff, copyfile_stat.st_size)) { in setup_mac_metadata()
404 if (tempfd >= 0) { in setup_mac_metadata()
405 close(tempfd); in setup_mac_metadata()
/freebsd-12.1/usr.bin/mail/
H A Dcollect.c340 int nullfd, tempfd, rc; in collect() local
351 if ((tempfd = mkstemp(tempname2)) == -1 || in collect()
352 (fbuf = Fdopen(tempfd, "w+")) == NULL) { in collect()
/freebsd-12.1/usr.sbin/lpr/lpd/
H A Dprintjob.c168 int errcnt, jobcount, statok, tempfd; in printjob() local
256 if ((tempfd = mkstemp(tempstderr)) == -1) { in printjob()
261 if ((i = fchmod(tempfd, 0664)) == -1) { in printjob()
267 close(tempfd); in printjob()
/freebsd-12.1/contrib/amd/
H A DChangeLog3011 stdin/stdout/stderr failed. No need for tempfd.