projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db36c3
)
SE: fix stat64 syscall on os x
author
Ali Saidi
<saidi@eecs.umich.edu>
Fri, 2 Nov 2007 06:11:15 +0000
(
02:11
-0400)
committer
Ali Saidi
<saidi@eecs.umich.edu>
Fri, 2 Nov 2007 06:11:15 +0000
(
02:11
-0400)
--HG--
extra : convert_revision :
40b62ef73d8e408cdd35b22147860f33533db57f
src/sim/syscall_emul.hh
patch
|
blob
|
history
diff --git
a/src/sim/syscall_emul.hh
b/src/sim/syscall_emul.hh
index e2d13067cd9fbccd0130617ff80ca5788ae2b8d4..abab356dfd31f0dafb1579b288f5a296f8bf9ec6 100644
(file)
--- a/
src/sim/syscall_emul.hh
+++ b/
src/sim/syscall_emul.hh
@@
-618,8
+618,13
@@
stat64Func(SyscallDesc *desc, int callnum, LiveProcess *process,
// Adjust path for current working directory
path = process->fullPath(path);
+#if NO_STAT64
+ struct stat hostBuf;
+ int result = stat(path.c_str(), &hostBuf);
+#else
struct stat64 hostBuf;
int result = stat64(path.c_str(), &hostBuf);
+#endif
if (result < 0)
return -errno;