diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-03-04 21:17:24 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-03-04 21:17:24 -0500 |
commit | 57e051d1a559c745420e6810c8dbdb308073ef63 (patch) | |
tree | bcc8996ed37a105338cc388668449683984162c2 | |
parent | f7e6bfbe78f81908b6f47510e97aab9cdb36e20c (diff) | |
parent | d2ee20073bcfa93988d7cfb47079281b58d5aa0a (diff) | |
download | gem5-57e051d1a559c745420e6810c8dbdb308073ef63.tar.xz |
Merge zizzer:/bk/m5
into zeep.eecs.umich.edu:/z/saidi/work/m5.head
--HG--
extra : convert_revision : faf71f4ed7d97734835fc7cd552e21b356b8d864
-rw-r--r-- | sim/syscall_emul.hh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sim/syscall_emul.hh b/sim/syscall_emul.hh index f49248dea..eca9f79e0 100644 --- a/sim/syscall_emul.hh +++ b/sim/syscall_emul.hh @@ -380,7 +380,7 @@ chmodFunc(SyscallDesc *desc, int callnum, Process *process, // do the chmod int result = chmod(path.c_str(), hostMode); if (result < 0) - return errno; + return -errno; return 0; } @@ -407,7 +407,7 @@ fchmodFunc(SyscallDesc *desc, int callnum, Process *process, // do the fchmod int result = fchmod(process->sim_fd(fd), hostMode); if (result < 0) - return errno; + return -errno; return 0; } @@ -428,7 +428,7 @@ statFunc(SyscallDesc *desc, int callnum, Process *process, int result = stat(path.c_str(), &hostBuf); if (result < 0) - return errno; + return -errno; OS::copyOutStatBuf(xc->mem, xc->getSyscallArg(1), &hostBuf); @@ -457,7 +457,7 @@ fstat64Func(SyscallDesc *desc, int callnum, Process *process, #endif if (result < 0) - return errno; + return -errno; OS::copyOutStat64Buf(xc->mem, fd, xc->getSyscallArg(1), &hostBuf); @@ -553,7 +553,7 @@ statfsFunc(SyscallDesc *desc, int callnum, Process *process, int result = statfs(path.c_str(), &hostBuf); if (result < 0) - return errno; + return -errno; OS::copyOutStatfsBuf(xc->mem, xc->getSyscallArg(1), &hostBuf); @@ -576,7 +576,7 @@ fstatfsFunc(SyscallDesc *desc, int callnum, Process *process, int result = fstatfs(fd, &hostBuf); if (result < 0) - return errno; + return -errno; OS::copyOutStatfsBuf(xc->mem, xc->getSyscallArg(1), &hostBuf); @@ -618,7 +618,7 @@ writevFunc(SyscallDesc *desc, int callnum, Process *process, } if (result < 0) - return errno; + return -errno; return 0; } |