Review Board 2.0.15


syscall emulation: Return correct writev value

Review Request #2593 - Created Dec. 23, 2014 and submitted - Latest diff uploaded

Information
Joel Hestness
gem5
Reviewers
Default
Changeset 10629:0de378f6af0e
---------------------------
syscall emulation: 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.
Fixes infinite loop output printing in Delauney Mesh Refinement benchmark
(LonestarGPU), which uses ofstream to buffer output to file.