]> granicus.if.org Git - strace/commit
Fix dumping of io syscalls when descriptor argument has unused bits set
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 29 Nov 2016 22:56:49 +0000 (22:56 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 29 Nov 2016 22:56:49 +0000 (22:56 +0000)
commit07586a5b649c0b9c986ca8e60c40d63889d48d46
treee2d9c658c0853c0796e11fa18b8e225368509eb8
parent54e164f630aaba84089d107556849b590ed2d3f3
Fix dumping of io syscalls when descriptor argument has unused bits set

* syscall.c (dumpio): Explicitly cast the first argument of syscall
to "int", the same way as the kernel does.
* tests/read-write.c: Include <asm/unistd.h> and "kernel_types.h".
(k_read, k_write): New functions.
(test_dump, main): Use them.
syscall.c
tests/read-write.c