summaryrefslogtreecommitdiff
path: root/tests/fchown.c
blob: 9f83ddf98ccfb71535b847a23f443e19036ff6c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2016-2018 The strace developers.
 * All rights reserved.
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#include "tests.h"
#include "scno.h"

#ifdef __NR_fchown

# define SYSCALL_NR __NR_fchown
# define SYSCALL_NAME "fchown"
# define ACCESS_BY_DESCRIPTOR

# if defined __NR_fchown32 && __NR_fchown != __NR_fchown32
#  define UGID_TYPE_IS_SHORT
# endif

# include "xchownx.c"

#else

SKIP_MAIN_UNDEFINED("__NR_fchown")

#endif