blob: 66af8345c9c21a669d917e1022a26de373fdfdbd [file] [log] [blame]
Dmitry V. Levina8364302014-12-06 03:53:16 +00001#include "defs.h"
2
Dmitry V. Levina0bd3742015-04-07 01:36:50 +00003SYS_FUNC(getcwd)
Dmitry V. Levina8364302014-12-06 03:53:16 +00004{
5 if (exiting(tcp)) {
6 if (syserror(tcp))
7 tprintf("%#lx", tcp->u_arg[0]);
8 else
9 printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1);
10 tprintf(", %lu", tcp->u_arg[1]);
11 }
12 return 0;
13}