Lines Matching refs:sim_fd

874      * Any success will set sim_fd to something other than -1 and skip the
877 int sim_fd = -1;
883 sim_fd = OS::openSpecialFile(abs_path, p, tc);
887 if (sim_fd == -1) {
888 sim_fd = open(redir_path.c_str(), host_flags, mode);
891 if (sim_fd == -1) {
907 auto ffdp = std::make_shared<FileFDEntry>(sim_fd, host_flags, path, 0);
909 DPRINTF_SYSCALL(Verbose, "open%s: sim_fd[%d], target_fd[%d] -> path:%s\n"
911 sim_fd, tgt_fd, used_path.c_str(), path.c_str());
1147 int sim_fd = ffdp->getSimFD();
1151 int result = fchmod(sim_fd, hostMode);
1350 int sim_fd = ffdp->getSimFD();
1354 int result = fstat(sim_fd, &hostBuf);
1357 int result = fstat64(sim_fd, &hostBuf);
1363 copyOutStat64Buf<OS>(tc->getVirtProxy(), bufPtr, &hostBuf, (sim_fd == 1));
1447 int sim_fd = ffdp->getSimFD();
1450 int result = fstat(sim_fd, &hostBuf);
1455 copyOutStatBuf<OS>(tc->getVirtProxy(), bufPtr, &hostBuf, (sim_fd == 1));
1645 int sim_fd = ffdp->getSimFD();
1648 int result = fstatfs(sim_fd, &hostBuf);
1670 int sim_fd = ffdp->getSimFD();
1684 int result = readv(sim_fd, hiov, count);
1710 int sim_fd = hbfdp->getSimFD();
1727 int result = writev(sim_fd, hiov, count);
1790 int sim_fd = -1;
1805 sim_fd = ffdp->getSimFD();
1808 sim_fd, offset);
1867 if (fstat(sim_fd, &file_stat) > 0)
1928 int sim_fd = ffdp->getSimFD();
1933 int bytes_written = pwrite(sim_fd, bufArg.bufferPtr(), nbytes, offset);
2381 int sim_fd = socket(domain, type, prot);
2382 if (sim_fd == -1)
2385 auto sfdp = std::make_shared<SocketFDEntry>(sim_fd, domain, type, prot);
2488 auto sim_fd = hbfdp->getSimFD();
2491 * Add the sim_fd to tgt_fd translation into trans_map for use
2495 trans_map[sim_fd] = iter;
2502 nfds_h = std::max(nfds_h - 1, sim_fd + 1);
2508 FD_SET(sim_fd, hst_set_entry);
2627 int sim_fd = hbfdp->getSimFD();
2630 pfd.fd = sim_fd;
2637 int bytes_read = read(sim_fd, buf_arg.bufferPtr(), nbytes);
2658 int sim_fd = hbfdp->getSimFD();
2664 pfd.fd = sim_fd;
2679 int bytes_written = write(sim_fd, buf_arg.bufferPtr(), nbytes);
2682 fsync(sim_fd);
2768 int sim_fd = sfdp->getSimFD();
2777 pfd.fd = sim_fd;
2797 host_fd = accept(sim_fd, &sa, &addrLen);
2830 int sim_fd = eventfd(initval, in_flags);
2831 if (sim_fd == -1)
2839 auto hbfdp = std::make_shared<HBFDEntry>(flags, sim_fd, cloexec);