Lines Matching refs:ffd
74 auto ffd = std::make_shared<FileFDEntry>(sim_fd, O_RDONLY, input, false);
75 _fdArray[STDIN_FILENO] = ffd;
86 ffd = std::make_shared<FileFDEntry>(sim_fd, O_WRONLY | O_CREAT | O_TRUNC,
88 _fdArray[STDOUT_FILENO] = ffd;
97 ffd = std::make_shared<FileFDEntry>(sim_fd, O_WRONLY | O_CREAT | O_TRUNC,
99 _fdArray[STDERR_FILENO] = ffd;
111 auto ffd = std::dynamic_pointer_cast<FileFDEntry>(fdp);
113 if (!ffd)
120 int sim_fd = ffd->getSimFD();
121 ffd->setFileOffset(lseek(sim_fd, 0, SEEK_CUR));
135 auto seek = [] (std::shared_ptr<FileFDEntry> ffd)
137 if (lseek(ffd->getSimFD(), ffd->getFileOffset(), SEEK_SET) < 0)
138 fatal("Unable to seek to location in %s", ffd->getFileName());
269 if (auto ffd = std::dynamic_pointer_cast<FileFDEntry>(fdp)) {
277 int sim_fd = openFile(ffd->getFileName(), ffd->getFlags(), 0664);
278 ffd->setSimFD(sim_fd);
279 seek(ffd);