summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-02-26 12:24:25 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-02-26 12:24:25 +0100
commit1d58fe9b3b925735bde72cac96a042b3cef03037 (patch)
tree229a7db2039344d07f0337c405de5b0e62c25fb0 /syscall.c
parent05f325199a6cf36c92560d5a08b56652502705c2 (diff)
downloadstrace-1d58fe9b3b925735bde72cac96a042b3cef03037.tar.gz
strace-1d58fe9b3b925735bde72cac96a042b3cef03037.tar.bz2
strace-1d58fe9b3b925735bde72cac96a042b3cef03037.tar.xz
Make umoven report success as 0, not >=0, stop returning success on partial reads
umoven() uses process_vm_readv() when available but it returns the return value of that syscall, which is the number of bytes copied, while its callers expect it to simply return zero on success. It was causing syscalls that take a user-space argument to print the abbreviated version, e.g.: epoll_ctl(5, EPOLL_CTL_ADD, 10, {...}) Instead of: epoll_ctl(5, EPOLL_CTL_ADD, 10, {EPOLLIN, {u32=10, u64=10}}) * util.c (umoven): Make umove[n] report success as 0, not >=0, stop returning "success" on partial reads. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'syscall.c')
0 files changed, 0 insertions, 0 deletions