Searched refs:tempfd (Results 1 – 3 of 3) sorted by relevance
| /freebsd-14.2/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-14.2/usr.bin/mail/ |
| H A D | collect.c | 338 int nullfd, tempfd, rc; in collect() local 349 if ((tempfd = mkstemp(tempname2)) == -1 || in collect() 350 (fbuf = Fdopen(tempfd, "w+")) == NULL) { in collect()
|
| /freebsd-14.2/usr.sbin/lpr/lpd/ |
| H A D | printjob.c | 166 int errcnt, jobcount, statok, tempfd; in printjob() local 254 if ((tempfd = mkstemp(tempstderr)) == -1) { in printjob() 259 if ((i = fchmod(tempfd, 0664)) == -1) { in printjob() 265 close(tempfd); in printjob()
|