1 #include "defs.h" 2 SYS_FUNC(getcwd)3 SYS_FUNC(getcwd) 4 { 5 if (exiting(tcp)) { 6 if (syserror(tcp)) 7 printaddr(tcp->u_arg[0]); 8 else 9 printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1); 10 tprintf(", %" PRI_klu, tcp->u_arg[1]); 11 } 12 return 0; 13 } 14