blob: 329762397ede99a1231d82fff09d889743625427 [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))
Dmitry V. Levin071193f2015-07-20 11:35:03 +00007 printaddr(tcp->u_arg[0]);
Dmitry V. Levina8364302014-12-06 03:53:16 +00008 else
9 printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1);
10 tprintf(", %lu", tcp->u_arg[1]);
11 }
12 return 0;
13}