]> granicus.if.org Git - strace/commit
times.test: workaround buggy libc
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 6 Dec 2015 05:28:11 +0000 (05:28 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 6 Dec 2015 07:59:20 +0000 (07:59 +0000)
commit4bbed305da2514696cffa25e1ecf3bc6bbe407e0
tree12c21304da268c83da58a7e6198524c7a8b02553
parentfc0a22d40b2e40d9a25e5f3c30e0144b8a15898f
times.test: workaround buggy libc

* tests/times.c: Include <sys/syscall.h>.
(main): On systems where user's and kernel's long types are the same,
prefer direct times syscall over libc's times function because
the latter is more prone to return value truncation.
tests/times.c