Searched refs:temp_fd (Results 1 - 6 of 6) sorted by relevance

/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_arc.c632 int temp_fd; local
648 temp_fd = refclock_open(device, SPEED, LDISC_CLK);
649 if (temp_fd <= 0)
656 close(temp_fd);
659 close(temp_fd);
660 temp_fd = -1; /* not used after this, at *this* time. */
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_write_set_format_xar.c229 int temp_fd; member in struct:xar
355 xar->temp_fd = -1;
595 if (xar->temp_fd == -1) {
598 xar->temp_fd = __archive_mktemp(NULL);
599 if (xar->temp_fd < 0) {
606 if (lseek(xar->temp_fd, algsize, SEEK_SET) < 0) {
666 ws = write(xar->temp_fd, p, s);
1806 if (lseek(xar->temp_fd, offset, SEEK_SET) < 0) {
1820 rs = read(xar->temp_fd, wb, rsize);
1917 if (xar->temp_fd >
[all...]
H A Darchive_write_set_format_7zip.c172 int temp_fd; member in struct:_7zip
307 zip->temp_fd = -1;
531 if (zip->temp_fd == -1) {
533 zip->temp_fd = __archive_mktemp(NULL);
534 if (zip->temp_fd < 0) {
543 ws = write(zip->temp_fd, p, s);
674 lseek(zip->temp_fd, offset, SEEK_SET) < 0) {
688 rs = read(zip->temp_fd, wb, rsize);
1461 if (zip->temp_fd >= 0)
1462 close(zip->temp_fd);
[all...]
H A Darchive_write_set_format_iso9660.c684 int temp_fd; member in struct:iso9660
766 * Copy a compressed file to iso9660.zisofs.temp_fd
768 * iso9660.temp_fd . If the number of logical block
1070 iso9660->temp_fd = -1;
1619 if (iso9660->temp_fd < 0) {
1620 iso9660->temp_fd = __archive_mktemp(NULL);
1621 if (iso9660->temp_fd < 0) {
1648 written = write(iso9660->temp_fd, b, s);
1715 if (iso9660->temp_fd < 0) {
2122 if (iso9660->temp_fd >
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExpressionParser.cpp904 int temp_fd = -1; local
909 llvm::sys::fs::createUniqueFile(temp_source_path, temp_fd, result_path);
911 llvm::sys::fs::createTemporaryFile("lldb", "expr", temp_fd, result_path);
914 if (temp_fd != -1) {
915 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWrite, true);
/freebsd-11-stable/usr.bin/xinstall/
H A Dxinstall.c754 int tempcopy, temp_fd, to_fd; local
872 temp_fd = to_fd;
878 if (fstat(temp_fd, &temp_sb)) {
885 if (compare(temp_fd, tempfile, (size_t)temp_sb.st_size, to_fd,
901 (void) close(temp_fd);

Completed in 177 milliseconds