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(statfs)
11 {
12 if (entering(tcp)) {
13 /* pathname */
14 printpath(tcp, tcp->u_arg[0]);
15 tprint_arg_next();
16 } else {
17 /* buf */
18 print_struct_statfs(tcp, tcp->u_arg[1]);
19 }
20 return 0;
21 }