]> granicus.if.org Git - strace/commit
tests: add compatibility layer for accept call
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 13 Feb 2018 01:03:16 +0000 (02:03 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 13 Feb 2018 03:12:29 +0000 (03:12 +0000)
commit46c6c7d7762c0a65fd09f5893caa4ed76ba0fb64
tree31a7adeb4d8956c71a0c1dd5d7d6fab0e2791d4e
parent66c1739d86b9e2cbe3d4189852a618e839dd3573
tests: add compatibility layer for accept call

Recent glibc (since version 2.26) uses accept4 syscall for implementing
accept call on sparc.  Unfortunately, it's impossible to simply fall
back on raw syscall as it had not been wired up until linux commit
v4.4-rc8~4^2~1.

* tests/accept_compat.h: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/net-y-unix.c: Include accept_compat.h, use do_accept()
instead of accept() calls.
* tests/net-yy-inet.c: Likewise.
* tests/net-yy-unix.c: Likewise.
* tests/net.expected: Allow accept4.
tests/Makefile.am
tests/accept_compat.h [new file with mode: 0644]
tests/net-y-unix.c
tests/net-yy-inet.c
tests/net-yy-unix.c
tests/net.expected