1#include "defs.h" 2 3SYS_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(", %lu", tcp->u_arg[1]); 11 } 12 return 0; 13} 14