Lines Matching refs:tgt

541 convertStatBuf(target_stat &tgt, host_stat *host, bool fakeTTY = false)
546 tgt->st_dev = 0xA;
548 tgt->st_dev = host->st_dev;
549 tgt->st_dev = TheISA::htog(tgt->st_dev);
550 tgt->st_ino = host->st_ino;
551 tgt->st_ino = TheISA::htog(tgt->st_ino);
552 tgt->st_mode = host->st_mode;
555 tgt->st_mode &= ~S_IFMT; // Clear S_IFMT
556 tgt->st_mode |= S_IFCHR; // Set S_IFCHR
558 tgt->st_mode = TheISA::htog(tgt->st_mode);
559 tgt->st_nlink = host->st_nlink;
560 tgt->st_nlink = TheISA::htog(tgt->st_nlink);
561 tgt->st_uid = host->st_uid;
562 tgt->st_uid = TheISA::htog(tgt->st_uid);
563 tgt->st_gid = host->st_gid;
564 tgt->st_gid = TheISA::htog(tgt->st_gid);
566 tgt->st_rdev = 0x880d;
568 tgt->st_rdev = host->st_rdev;
569 tgt->st_rdev = TheISA::htog(tgt->st_rdev);
570 tgt->st_size = host->st_size;
571 tgt->st_size = TheISA::htog(tgt->st_size);
572 tgt->st_atimeX = host->st_atime;
573 tgt->st_atimeX = TheISA::htog(tgt->st_atimeX);
574 tgt->st_mtimeX = host->st_mtime;
575 tgt->st_mtimeX = TheISA::htog(tgt->st_mtimeX);
576 tgt->st_ctimeX = host->st_ctime;
577 tgt->st_ctimeX = TheISA::htog(tgt->st_ctimeX);
580 tgt->st_blksize = 0x2000;
581 tgt->st_blksize = TheISA::htog(tgt->st_blksize);
582 tgt->st_blocks = host->st_blocks;
583 tgt->st_blocks = TheISA::htog(tgt->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;
597 tgt->st_atime_nsec = TheISA::htog(tgt->st_atime_nsec);
598 tgt->st_mtime_nsec = host->st_mtime_nsec;
599 tgt->st_mtime_nsec = TheISA::htog(tgt->st_mtime_nsec);
600 tgt->st_ctime_nsec = host->st_ctime_nsec;
601 tgt->st_ctime_nsec = TheISA::htog(tgt->st_ctime_nsec);
603 tgt->st_atime_nsec = 0;
604 tgt->st_mtime_nsec = 0;
605 tgt->st_ctime_nsec = 0;
616 tgt_stat_buf tgt(addr);
617 convertStatBuf<tgt_stat_buf, hst_stat>(tgt, host, fakeTTY);
618 tgt.copyOut(mem);
627 tgt_stat_buf tgt(addr);
628 convertStat64Buf<tgt_stat_buf, hst_stat64>(tgt, host, fakeTTY);
629 tgt.copyOut(mem);
637 TypedBufferArg<typename OS::tgt_statfs> tgt(addr);
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);
655 tgt->f_namelen = 0;
656 tgt->f_frsize = 0;
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));
668 memset(&tgt->f_spare, 0, sizeof(tgt->f_spare));
671 tgt.copyOut(mem);