WORKDIR(2)                                             WORKDIR(2)

     NAME
          workdir - get the current working directory

     SYNOPSIS
          include "workdir.m";
          workdir := load Workdir Workdir->PATH;

          init:  fn(): string;

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

          When Inferno boots, the initial process has / for its work-
          ing directory.

     SOURCE
          /appl/lib/workdir.b

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

     Page 1                       Plan 9            (printed 11/22/24)