summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-10-15 21:54:59 -0400
committerGabe Black <gblack@eecs.umich.edu>2006-10-15 21:54:59 -0400
commit67794ace5c44866a85cecd39c881464ecbe74597 (patch)
treef1dc9a89430862218c1059b4494cf653f3f80c06
parent333a7c4ba27da0093d736b18c9355a214042fb01 (diff)
downloadgem5-67794ace5c44866a85cecd39c881464ecbe74597.tar.xz
Added in missing portions of the stat structure copying function.
--HG-- extra : convert_revision : cfabcb07b2c0c5655a757e8c98999ec3cf791e09
-rw-r--r--src/sim/syscall_emul.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
index edd4e331d..e79712a19 100644
--- a/src/sim/syscall_emul.hh
+++ b/src/sim/syscall_emul.hh
@@ -356,6 +356,14 @@ convertStatBuf(target_stat &tgt, host_stat *host, bool fakeTTY = false)
tgt->st_dev = htog(tgt->st_dev);
tgt->st_ino = host->st_ino;
tgt->st_ino = htog(tgt->st_ino);
+ tgt->st_mode = host->st_mode;
+ tgt->st_mode = htog(tgt->st_mode);
+ tgt->st_nlink = host->st_nlink;
+ tgt->st_nlink = htog(tgt->st_nlink);
+ tgt->st_uid = host->st_uid;
+ tgt->st_uid = htog(tgt->st_uid);
+ tgt->st_gid = host->st_gid;
+ tgt->st_gid = htog(tgt->st_gid);
if (fakeTTY)
tgt->st_rdev = 0x880d;
else