Dmitry V. Levin | a836430 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 1 | #include "defs.h" |
| 2 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 3 | SYS_FUNC(getcwd) |
Dmitry V. Levin | a836430 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 4 | { |
| 5 | if (exiting(tcp)) { |
| 6 | if (syserror(tcp)) |
Dmitry V. Levin | 071193f | 2015-07-20 11:35:03 +0000 | [diff] [blame] | 7 | printaddr(tcp->u_arg[0]); |
Dmitry V. Levin | a836430 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 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 | } |