Searched refs:tempfd (Results 1 – 3 of 3) sorted by relevance
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_read_disk_entry_from_file.c | 336 int tempfd = -1; in setup_mac_metadata() local 369 tempfd = mkstemp(tempfile.s); in setup_mac_metadata() 370 if (tempfd < 0) { in setup_mac_metadata() 376 __archive_ensure_cloexec_flag(tempfd); in setup_mac_metadata() 388 if (fstat(tempfd, ©file_stat)) { in setup_mac_metadata() 401 if (copyfile_stat.st_size != read(tempfd, buff, copyfile_stat.st_size)) { in setup_mac_metadata() 410 if (tempfd >= 0) { in setup_mac_metadata() 411 close(tempfd); in setup_mac_metadata()
|
| /freebsd-13.1/usr.bin/mail/ |
| H A D | collect.c | 340 int nullfd, tempfd, rc; in collect() local 351 if ((tempfd = mkstemp(tempname2)) == -1 || in collect() 352 (fbuf = Fdopen(tempfd, "w+")) == NULL) { in collect()
|
| /freebsd-13.1/usr.sbin/lpr/lpd/ |
| H A D | printjob.c | 168 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()
|