Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (2) — Plan9 3rd Edition (Vita Nuova)

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sys-intro(2)

SYS-CHDIR(2)

NAME

chdir − change working directory

SYNOPSIS

include "sys.m";
sys := load Sys Sys->PATH;
 chdir:  fn(path: string): int;

DESCRIPTION

­Chdir changes the working directory of the invoking process and its file name space group to path.

The working directory is the starting point for evaluating file names that do not begin with ­/ or #, as explained in sys-intro(2).

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

Applications that invoke ­chdir normally use the ­FORKNS option of sys-pctl(2) to prevent the change from affecting the surrounding environment.

SEE ALSO

sys-intro(2)

Plan 9  —  June 29, 2000

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026