strace/getcwd.c
Dmitry V. Levin 071193f620 getcwd.c: use printaddr
* getcwd.c (sys_getcwd): Use printaddr.
2015-07-20 22:03:07 +00:00

14 lines
219 B
C

#include "defs.h"
SYS_FUNC(getcwd)
{
if (exiting(tcp)) {
if (syserror(tcp))
printaddr(tcp->u_arg[0]);
else
printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1);
tprintf(", %lu", tcp->u_arg[1]);
}
return 0;
}