]> granicus.if.org Git - strace/blob - open_tree.c
bfin, csky, m68k, sh: fix build regression
[strace] / open_tree.c
1 /*
2  * Copyright (c) 2019 Dmitry V. Levin <ldv@altlinux.org>
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: LGPL-2.1-or-later
6  */
7
8 #include "defs.h"
9 #include <fcntl.h>
10 #ifdef HAVE_LINUX_MOUNT_H
11 # include <linux/mount.h>
12 #endif
13 #include "xlat/open_tree_flags.h"
14
15 SYS_FUNC(open_tree)
16 {
17         print_dirfd(tcp, tcp->u_arg[0]);
18         tprints(", ");
19         printpath(tcp, tcp->u_arg[1]);
20         tprints(", ");
21         printflags(open_tree_flags, tcp->u_arg[2], "OPEN_TREE_???");
22         return RVAL_DECODED | RVAL_FD;
23 }