Searched refs:tempfd (Results 1 – 3 of 3) sorted by relevance
| /src/contrib/libarchive/libarchive/ |
| H A D | archive_read_disk_entry_from_file.c | 335 int tempfd = -1; in setup_mac_metadata() local 364 tempfd = __archive_mkstemp(tempfile.s); in setup_mac_metadata() 365 if (tempfd < 0) { in setup_mac_metadata() 371 __archive_ensure_cloexec_flag(tempfd); in setup_mac_metadata() 383 if (fstat(tempfd, ©file_stat)) { in setup_mac_metadata() 396 if (copyfile_stat.st_size != read(tempfd, buff, copyfile_stat.st_size)) { in setup_mac_metadata() 405 if (tempfd >= 0) { in setup_mac_metadata() 406 close(tempfd); in setup_mac_metadata()
|
| /src/usr.bin/mail/ |
| H A D | collect.c | 336 int nullfd, tempfd, rc; in collect() local 347 if ((tempfd = mkstemp(tempname2)) == -1 || in collect() 348 (fbuf = Fdopen(tempfd, "w+")) == NULL) { in collect()
|
| /src/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()
|