xref: /inferno-os/man/2/workdir (revision 46439007cf417cbd9ac8049bb4122c890097a0fa)
WORKDIR 2
NAME
workdir - get the current working directory
SYNOPSIS
.EX 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 working directory.

SOURCE
/appl/lib/workdir.b
SEE ALSO
sys-chdir (2), sys-fd2path (2), sys-stat (2)