android_mt6572_jiabo/external/strace/tests/times-fail.c
2025-09-05 16:56:03 +08:00

18 lines
278 B
C

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
#include <unistd.h>
#include <sys/syscall.h>
int
main (void)
{
if (syscall(__NR_times, 0x42) != -1)
return 77;
puts("times(0x42) = -1 EFAULT (Bad address)");
puts("+++ exited with 0 +++");
return 0;
}