Lines Matching refs:sim_fd
62 int sim_fd;
70 sim_fd = it->second;
72 sim_fd = openInputFile(input);
74 auto ffd = std::make_shared<FileFDEntry>(sim_fd, O_RDONLY, input, false);
82 sim_fd = it->second;
84 sim_fd = openOutputFile(output);
86 ffd = std::make_shared<FileFDEntry>(sim_fd, O_WRONLY | O_CREAT | O_TRUNC,
93 sim_fd = it->second;
95 sim_fd = openOutputFile(errout);
97 ffd = std::make_shared<FileFDEntry>(sim_fd, O_WRONLY | O_CREAT | O_TRUNC,
120 int sim_fd = ffd->getSimFD();
121 ffd->setFileOffset(lseek(sim_fd, 0, SEEK_CUR));
209 /* Reuse the same sim_fd file descriptor if these match. */
277 int sim_fd = openFile(ffd->getFileName(), ffd->getFlags(), 0664);
278 ffd->setSimFD(sim_fd);
300 int sim_fd = open(filename.c_str(), flags, mode);
301 if (sim_fd != -1)
302 return sim_fd;
339 int sim_fd = -1;
342 sim_fd = hbfdp->getSimFD();
345 if (sim_fd > 2)
346 status = close(sim_fd);