Lines Matching defs:host

60 /// application on the host machine.
535 //// Helper function to convert a host stat buffer to a target stat
541 convertStatBuf(target_stat &tgt, host_stat *host, bool fakeTTY = false)
548 tgt->st_dev = host->st_dev;
550 tgt->st_ino = host->st_ino;
552 tgt->st_mode = host->st_mode;
559 tgt->st_nlink = host->st_nlink;
561 tgt->st_uid = host->st_uid;
563 tgt->st_gid = host->st_gid;
568 tgt->st_rdev = host->st_rdev;
570 tgt->st_size = host->st_size;
572 tgt->st_atimeX = host->st_atime;
574 tgt->st_mtimeX = host->st_mtime;
576 tgt->st_ctimeX = host->st_ctime;
582 tgt->st_blocks = host->st_blocks;
590 convertStat64Buf(target_stat &tgt, host_stat64 *host, bool fakeTTY = false)
594 convertStatBuf<target_stat, host_stat64>(tgt, host, fakeTTY);
596 tgt->st_atime_nsec = host->st_atime_nsec;
598 tgt->st_mtime_nsec = host->st_mtime_nsec;
600 tgt->st_ctime_nsec = host->st_ctime_nsec;
613 hst_stat *host, bool fakeTTY = false)
617 convertStatBuf<tgt_stat_buf, hst_stat>(tgt, host, fakeTTY);
624 hst_stat64 *host, bool fakeTTY = false)
628 convertStat64Buf<tgt_stat_buf, hst_stat64>(tgt, host, fakeTTY);
635 hst_statfs *host)
639 tgt->f_type = TheISA::htog(host->f_type);
641 tgt->f_bsize = TheISA::htog(host->f_iosize);
643 tgt->f_bsize = TheISA::htog(host->f_bsize);
645 tgt->f_blocks = TheISA::htog(host->f_blocks);
646 tgt->f_bfree = TheISA::htog(host->f_bfree);
647 tgt->f_bavail = TheISA::htog(host->f_bavail);
648 tgt->f_files = TheISA::htog(host->f_files);
649 tgt->f_ffree = TheISA::htog(host->f_ffree);
650 memcpy(&tgt->f_fsid, &host->f_fsid, sizeof(host->f_fsid));
652 tgt->f_namelen = TheISA::htog(host->f_namemax);
653 tgt->f_frsize = TheISA::htog(host->f_bsize);
658 tgt->f_namelen = TheISA::htog(host->f_namelen);
659 tgt->f_frsize = TheISA::htog(host->f_frsize);
662 memcpy(&tgt->f_spare, &host->f_spare, sizeof(host->f_spare));
774 * string from that memory space into the host's working memory space.
786 * Translate target flags into host flags. Flags exist which are not
816 * host) to work with after this block has been passed.
848 * Fall through here for pass through to host devices, such
860 * and files cannot be called on the host and need to be handled as
865 * the host open the file on our behalf. Again, the openImpl tries to
869 * 4) If the host cannot open the file, the open attempt failed in "3)".
870 * Return the host's error code back through the system call to the
1073 * replace them with host file descriptors but we need a temporary copy
1092 * underlying host for any other time than tmout a zero timeout.
1126 * Copy out the pollfd struct because the host may have updated fields
1775 // that resides on the host system. So, any write on a real system
1785 "will not be propagated to the host or shared mappings");
1811 warn("mmap: failed to map file into host address space");
1864 // on the host. We must know when to stop copying the file from
1865 // the host into the target address space.
2290 // Convert to host endianness
2439 * headers instead of the gem5 headers and libraries. If the host and
2460 * We need to translate the target file descriptor set into a host file
2483 * that we have a host mapping. Check that now.
2493 * then update them with hits returned from the host select call.
2498 * We know that the host file descriptor exists so now we check
2500 * the duplicated structure into the host.
2505 * Add the host file descriptor to the set that we are going to
2506 * pass into the host.
2547 * pass into the host select call. Unfortunately, we will need to
2581 * We need to translate the host file descriptor set into a target file
2671 * depending on host settings.