Lines Matching refs:std
50 FDArray::FDArray(std::string const& input, std::string const& output,
51 std::string const& errout)
63 std::map<std::string, int>::iterator it;
74 auto ffd = std::make_shared<FileFDEntry>(sim_fd, O_RDONLY, input, false);
86 ffd = std::make_shared<FileFDEntry>(sim_fd, O_WRONLY | O_CREAT | O_TRUNC,
97 ffd = std::make_shared<FileFDEntry>(sim_fd, O_WRONLY | O_CREAT | O_TRUNC,
111 auto ffd = std::dynamic_pointer_cast<FileFDEntry>(fdp);
135 auto seek = [] (std::shared_ptr<FileFDEntry> ffd)
141 std::map<std::string, int>::iterator it;
150 std::shared_ptr<FDEntry> stdin_fde = _fdArray[STDIN_FILENO];
151 auto stdin_ffd = std::dynamic_pointer_cast<FileFDEntry>(stdin_fde);
174 std::shared_ptr<FDEntry> stdout_fde = _fdArray[STDOUT_FILENO];
175 auto stdout_ffd = std::dynamic_pointer_cast<FileFDEntry>(stdout_fde);
198 std::shared_ptr<FDEntry> stderr_fde = _fdArray[STDERR_FILENO];
199 auto stderr_ffd = std::dynamic_pointer_cast<FileFDEntry>(stderr_fde);
219 std::shared_ptr<FDEntry> fdp = _fdArray[tgt_fd];
224 if (auto pfd = std::dynamic_pointer_cast<PipeFDEntry>(fdp)) {
249 std::shared_ptr<FDEntry> write_fdp = _fdArray[prs];
252 auto write_pfd = std::dynamic_pointer_cast<PipeFDEntry>(write_fdp);
259 if (auto dfd = std::dynamic_pointer_cast<DeviceFDEntry>(fdp)) {
269 if (auto ffd = std::dynamic_pointer_cast<FileFDEntry>(fdp)) {
285 FDArray::allocFD(std::shared_ptr<FDEntry> in)
288 std::shared_ptr<FDEntry> fdp = _fdArray[i];
298 FDArray::openFile(std::string const& filename, int flags, mode_t mode) const
307 FDArray::openInputFile(std::string const& filename) const
313 FDArray::openOutputFile(std::string const& filename) const
319 std::shared_ptr<FDEntry>
327 FDArray::setFDEntry(int tgt_fd, std::shared_ptr<FDEntry> fdep)
340 auto hbfdp = std::dynamic_pointer_cast<HBFDEntry>(_fdArray[tgt_fd]);