Dmitry V. Levin
78ed3f3558
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.
17 lines
221 B
Bash
Executable File
17 lines
221 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check pipe/pipe2 syscalls decoding.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
syscall=pipe2
|
|
for n in pipe; do
|
|
$STRACE -e$n -h > /dev/null && syscall=$syscall,$n
|
|
done
|
|
|
|
run_prog
|
|
run_strace -e$syscall $args
|
|
match_grep
|
|
|
|
exit 0
|