1 /*
2 * Copyright (c) 2014-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
10 SYS_FUNC(readahead)
11 {
12 /* fd */
13 printfd(tcp, tcp->u_arg[0]);
14 tprint_arg_next();
15
16 /* offset */
17 unsigned int argn = print_arg_lld(tcp, 1);
18 tprint_arg_next();
19
20 /* count */
21 PRINT_VAL_U(tcp->u_arg[argn]);
22
23 return RVAL_DECODED;
24 }