Searched refs:tempfd (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_disk_entry_from_file.c | 335 int tempfd = -1; in setup_mac_metadata() local 368 tempfd = mkstemp(tempfile.s); in setup_mac_metadata() 369 if (tempfd < 0) { in setup_mac_metadata() 375 __archive_ensure_cloexec_flag(tempfd); in setup_mac_metadata() 387 if (fstat(tempfd, ©file_stat)) { in setup_mac_metadata() 400 if (copyfile_stat.st_size != read(tempfd, buff, copyfile_stat.st_size)) { in setup_mac_metadata() 409 if (tempfd >= 0) { in setup_mac_metadata() 410 close(tempfd); in setup_mac_metadata()
|
/freebsd/usr.bin/mail/ |
H A D | collect.c | 332 int nullfd, tempfd, rc; in collect() local 343 if ((tempfd = mkstemp(tempname2)) == -1 || in collect() 344 (fbuf = Fdopen(tempfd, "w+")) == NULL) { in collect()
|
/freebsd/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 154 int errcnt, jobcount, statok, tempfd; in printjob() local 242 if ((tempfd = mkstemp(tempstderr)) == -1) { in printjob() 247 if ((i = fchmod(tempfd, 0664)) == -1) { in printjob() 253 close(tempfd); in printjob()
|