31 lines
793 B
C
31 lines
793 B
C
/*
|
|
* Check decoding of oldstat syscall.
|
|
*
|
|
* Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
|
|
* Copyright (c) 2016 Eugene Syromyatnikov <evgsyr@gmail.com>
|
|
* Copyright (c) 2016-2018 The strace developers.
|
|
* All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "tests.h"
|
|
#include <asm/unistd.h>
|
|
|
|
#if defined __NR_oldstat && HAVE_STRUCT___OLD_KERNEL_STAT
|
|
|
|
# define OLD_STAT 1
|
|
# define TEST_SYSCALL_NR __NR_oldstat
|
|
# define TEST_SYSCALL_STR "oldstat"
|
|
# define STRUCT_STAT struct __old_kernel_stat
|
|
# define STRUCT_STAT_STR "struct __old_kernel_stat"
|
|
# define STRUCT_STAT_IS_STAT64 0
|
|
# define SAMPLE_SIZE ((libc_off_t) (kernel_ulong_t) 131478418U)
|
|
# include "lstatx.c"
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_oldstat && HAVE_STRUCT___OLD_KERNEL_STAT")
|
|
|
|
#endif
|