WORKDIR(2) System Calls Manual WORKDIR(2)

workdir - get the current working directory

include "workdir.m";
workdir := load Workdir Workdir->PATH;
init:  fn(): string;

Workdir returns a string representation of the working directory of the invoking process.

When Inferno boots, the initial process has / for its working directory.

/appl/lib/workdir.b

sys-chdir (2), sys-fd2path (2), sys-stat (2)