blob: 1b97448514a565613af7a2bdd427170b753e0f23 [file] [log] [blame]
Dmitry V. Levina8364302014-12-06 03:53:16 +00001#include "defs.h"
2
3int
4sys_getcwd(struct tcb *tcp)
5{
6 if (exiting(tcp)) {
7 if (syserror(tcp))
8 tprintf("%#lx", tcp->u_arg[0]);
9 else
10 printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1);
11 tprintf(", %lu", tcp->u_arg[1]);
12 }
13 return 0;
14}