1 /*
2 * Copyright (c) 2019-2021 Dmitry V. Levin <ldv@strace.io>
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7
8 #include "defs.h"
9 #include <linux/mount.h>
10 #include "kernel_fcntl.h"
11 #include <linux/fcntl.h>
12 #include "xlat/open_tree_flags.h"
13
14 SYS_FUNC(open_tree)
15 {
16 /* dfd */
17 print_dirfd(tcp, tcp->u_arg[0]);
18 tprint_arg_next();
19
20 /* pathname */
21 printpath(tcp, tcp->u_arg[1]);
22 tprint_arg_next();
23
24 /* flags */
25 printflags(open_tree_flags, tcp->u_arg[2], "OPEN_TREE_???");
26
27 return RVAL_DECODED | RVAL_FD;
28 }