Home
last modified time | relevance | path

Searched refs:temp_fd (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangUtilityFunction.cpp43 int temp_fd = -1; in ClangUtilityFunction() local
45 llvm::sys::fs::createTemporaryFile("lldb", "expr", temp_fd, result_path); in ClangUtilityFunction()
46 if (temp_fd != -1) { in ClangUtilityFunction()
47 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ClangUtilityFunction()
H A DClangExpressionParser.cpp1038 int temp_fd = -1; in ParseInternal() local
1043 llvm::sys::fs::createUniqueFile(temp_source_path, temp_fd, result_path); in ParseInternal()
1045 llvm::sys::fs::createTemporaryFile("lldb", "expr", temp_fd, result_path); in ParseInternal()
1048 if (temp_fd != -1) { in ParseInternal()
1049 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ParseInternal()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_arc.c632 int temp_fd; in arc_start() local
648 temp_fd = refclock_open(&peer->srcadr, device, SPEED, LDISC_CLK); in arc_start()
649 if (temp_fd <= 0) in arc_start()
656 close(temp_fd); in arc_start()
659 close(temp_fd); in arc_start()
660 temp_fd = -1; /* not used after this, at *this* time. */ in arc_start()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_set_format_7zip.c191 int temp_fd; member
326 zip->temp_fd = -1; in archive_write_set_format_7zip()
550 if (zip->temp_fd == -1) { in write_to_temp()
552 zip->temp_fd = __archive_mktemp(NULL); in write_to_temp()
553 if (zip->temp_fd < 0) { in write_to_temp()
562 ws = write(zip->temp_fd, p, s); in write_to_temp()
693 lseek(zip->temp_fd, offset, SEEK_SET) < 0) { in copy_out()
707 rs = read(zip->temp_fd, wb, rsize); in copy_out()
1485 if (zip->temp_fd >= 0) in _7z_free()
1486 close(zip->temp_fd); in _7z_free()
H A Darchive_write_set_format_xar.c228 int temp_fd; member
354 xar->temp_fd = -1; in archive_write_set_format_xar()
594 if (xar->temp_fd == -1) { in xar_write_header()
597 xar->temp_fd = __archive_mktemp(NULL); in xar_write_header()
598 if (xar->temp_fd < 0) { in xar_write_header()
605 if (lseek(xar->temp_fd, algsize, SEEK_SET) < 0) { in xar_write_header()
665 ws = write(xar->temp_fd, p, s); in write_to_temp()
1801 if (lseek(xar->temp_fd, offset, SEEK_SET) < 0) { in copy_out()
1815 rs = read(xar->temp_fd, wb, rsize); in copy_out()
1912 if (xar->temp_fd >= 0) in xar_free()
[all …]
H A Darchive_write_set_format_iso9660.c684 int temp_fd; member
1070 iso9660->temp_fd = -1; in archive_write_set_format_iso9660()
1619 if (iso9660->temp_fd < 0) { in iso9660_write_header()
1620 iso9660->temp_fd = __archive_mktemp(NULL); in iso9660_write_header()
1621 if (iso9660->temp_fd < 0) { in iso9660_write_header()
1648 written = write(iso9660->temp_fd, b, s); in write_to_temp()
1715 if (iso9660->temp_fd < 0) { in write_iso9660_data()
2122 if (iso9660->temp_fd >= 0) in iso9660_free()
2123 close(iso9660->temp_fd); in iso9660_free()
3686 lseek(iso9660->temp_fd, iso9660->wbuff_offset, SEEK_SET); in wb_set_offset()
[all …]
/freebsd/usr.bin/xinstall/
H A Dxinstall.c807 int temp_fd, to_fd; in install()
903 temp_fd = to_fd; in install()
909 if (fstat(temp_fd, &temp_sb)) { in install()
916 if (compare(temp_fd, tempfile, (size_t)temp_sb.st_size, to_fd, in install()
932 (void) close(temp_fd); in install()
811 int tempcopy, temp_fd, to_fd; install() local