]> granicus.if.org Git - strace/commit
alpha, ia64, sh, sparc, sparc64: fix pipe and pipe2 syscalls decoding
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 23 Mar 2015 00:04:27 +0000 (00:04 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 23 Mar 2015 03:16:51 +0000 (03:16 +0000)
commit78ed3f3558942b7c042aeb84ee0f4a2dccf64791
tree02ca48d39fdc42d3c03e6a6df245ce7af79e177c
parentc215569efe58a0045c921219635da02ee8e5451b
alpha, ia64, sh, sparc, sparc64: fix pipe and pipe2 syscalls decoding

Fix pipe syscall decoding on alpha.
Fix pipe2 syscall decoding on ia64, sh, sparc, and sparc64.

* configure.ac (AC_CHECK_FUNCS): Add pipe2.
* defs.h [ALPHA || IA64 || SH || SPARC || SPARC64] (HAVE_GETRVAL2):
Define.
* net.c (do_pipe): Check HAVE_GETRVAL2 instead of architecture macros.
Do not use getrval2 for pipe2 decoding.
Print address if umove call fails.
* syscall.c (getrval2): Check HAVE_GETRVAL2 instead of architecture
macros.  Implement for [ALPHA].
* tests/pipe.c: New file.
* tests/pipe.expected: New file.
* tests/pipe.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add pipe.
(TESTS): Add pipe.test.
(EXTRA_DIST): Add pipe.expected.
* tests/.gitignore: Add pipe.
configure.ac
defs.h
net.c
syscall.c
tests/.gitignore
tests/Makefile.am
tests/pipe.c [new file with mode: 0644]
tests/pipe.expected [new file with mode: 0644]
tests/pipe.test [new file with mode: 0755]