]> granicus.if.org Git - strace/commit
Fix decoding of sgetmask and ssetmask syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 22 May 2017 10:48:13 +0000 (10:48 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 22 May 2017 17:33:51 +0000 (17:33 +0000)
commitba0bd3f1ec993d4becb674d17c0b3c0e2b2b0f1f
treefdb8ff56a9dcb61191f4a684173a097d5c05d44b
parent9d095c7860a42847970a0758f4079ab715937f55
Fix decoding of sgetmask and ssetmask syscalls

Old ssetmask syscall takes an argument and returns a value of type int.
Old sgetmask syscall may return an error.

* signal.c (SYS_FUNC(ssetmask)): Explicitly convert the argument
and return value to unsigned int, print it using sprint_old_sigmask_val.
(SYS_FUNC(sgetmask)): Do not print the mask in case of syserror.
* tests/sxetmask.c: New file.
* tests/gen_tests.in (sxetmask): New entry.
* tests/pure_executables.list: Add sxetmask.
* tests/.gitignore: Likewise.
* NEWS: Mention this fix.
NEWS
signal.c
tests/.gitignore
tests/gen_tests.in
tests/pure_executables.list
tests/sxetmask.c [new file with mode: 0644]