]> granicus.if.org Git - strace/blob - getcwd.c
clone: fix print_tls_arg on x86
[strace] / getcwd.c
1 /*
2  * Copyright (c) 2014-2018 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(getcwd)
11 {
12         if (exiting(tcp)) {
13                 if (syserror(tcp))
14                         printaddr(tcp->u_arg[0]);
15                 else
16                         printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1);
17                 tprintf(", %" PRI_klu, tcp->u_arg[1]);
18         }
19         return 0;
20 }