You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#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(", %" PRI_klu, tcp->u_arg[1]);
|
|
}
|
|
return 0;
|
|
}
|