1 /*
2 * Copyright (c) 2020-2021 The strace developers.
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7
8 #include "defs.h"
9 #include <linux/close_range.h>
10 #include "xlat/close_range_flags.h"
11
12 SYS_FUNC(close_range)
13 {
14 /* fd */
15 PRINT_VAL_U((unsigned int) tcp->u_arg[0]);
16 tprint_arg_next();
17
18 /* max_fd */
19 PRINT_VAL_U((unsigned int) tcp->u_arg[1]);
20 tprint_arg_next();
21
22 /* flags */
23 printflags(close_range_flags, tcp->u_arg[2], "CLOSE_RANGE_???");
24 return RVAL_DECODED;
25 }