HomeSort by: relevance | last modified time | path
    Searched refs:tempfd (Results 1 - 5 of 5) sorted by relevancy

  /src/external/gpl3/gdb/dist/gnulib/import/
dup2.c 113 int tempfd; local
116 tempfd = open ("NUL", O_RDONLY);
117 if (tempfd == -1)
120 if (tempfd == desired_fd)
122 close (tempfd);
133 close (tempfd);
  /src/external/gpl3/gdb.old/dist/gnulib/import/
dup2.c 113 int tempfd; local
116 tempfd = open ("NUL", O_RDONLY);
117 if (tempfd == -1)
120 if (tempfd == desired_fd)
122 close (tempfd);
133 close (tempfd);
  /src/usr.bin/last/
want.c 100 int tempfd; local
109 tempfd = mkstemp(tfile);
110 if (tempfd < 0) {
122 if (write(tempfd, buf, tlen) != tlen) {
126 wfd = tempfd;
  /src/libexec/makewhatis/
makewhatis.c 776 int tempfd, bytes, pipefd[2], status; local
789 if ((tempfd = mkstemp(tempname)) == -1)
793 if (write(tempfd, buffer, (size_t)bytes) != bytes) {
799 (void)close(tempfd);
803 if (lseek(tempfd, (off_t)0, SEEK_SET) == (off_t)-1) {
804 (void)close(tempfd);
809 (void)close(tempfd);
818 (void)close(tempfd);
824 if (tempfd != STDIN_FILENO) {
825 (void)dup2(tempfd, STDIN_FILENO)
    [all...]
  /src/external/bsd/libarchive/dist/libarchive/
archive_read_disk_entry_from_file.c 335 int tempfd = -1; local
364 tempfd = __archive_mkstemp(tempfile.s);
365 if (tempfd < 0) {
371 __archive_ensure_cloexec_flag(tempfd);
383 if (fstat(tempfd, &copyfile_stat)) {
396 if (copyfile_stat.st_size != read(tempfd, buff, copyfile_stat.st_size)) {
405 if (tempfd >= 0) {
406 close(tempfd);

Completed in 27 milliseconds