]> granicus.if.org Git - strace/commit
tests/times.test: workaround libc bug on x32
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 15 Dec 2015 15:26:29 +0000 (15:26 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 15 Dec 2015 23:34:03 +0000 (23:34 +0000)
commitb6b38fa73b9e0810c68a19dcb3ade2974db20f8c
tree2deb4b8219ed2bb4f2a6f3f9ee63327eb3d4671b
parentc4afd6dc7a75e155e6c0c399dc90d4840bca53e7
tests/times.test: workaround libc bug on x32

As glibc times wrapper on x32 is known to wrongly truncate and then sign
extend the syscall return value, invoke the syscall directly on x32.

* tests/times.c (main) [__NR_times && __x86_64__ && __ILP32__]:
Invoke times syscall using inline asm.
tests/times.c