strace/tests/fstatx.c

22 lines
528 B
C

/*
* Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
* Copyright (c) 2015-2018 The strace developers.
* All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#define IS_FSTAT 1
#define TEST_SYSCALL_INVOKE(sample, pst) \
syscall(TEST_SYSCALL_NR, 0, pst)
#define PRINT_SYSCALL_HEADER(sample) \
do { \
int saved_errno = errno; \
printf("%s(0, ", TEST_SYSCALL_STR)
#define PRINT_SYSCALL_FOOTER(rc) \
errno = saved_errno; \
printf(") = %s\n", sprintrc(rc)); \
} while (0)
#include "xstatx.c"