changeset 7c649fc84bb9 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=7c649fc84bb9
description:
        syscall_emul: Return correct writev value

        According to Linux man pages, if writev is successful, it returns the 
total
        number of bytes written. Otherwise, it returns an error code. Instead of
        returning 0, return the result from the actual call to writev in the 
system
        call.

diffstat:

 src/sim/syscall_emul.hh |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c9b7e0c69f88 -r 7c649fc84bb9 src/sim/syscall_emul.hh
--- a/src/sim/syscall_emul.hh   Tue Dec 23 09:31:20 2014 -0500
+++ b/src/sim/syscall_emul.hh   Sat Dec 27 13:48:40 2014 -0600
@@ -1138,7 +1138,7 @@
     if (result < 0)
         return -errno;
 
-    return 0;
+    return result;
 }
 
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to