Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (2) — Plan9 4th Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(2)

CHDIR(2)

NAME

chdir − change working directory

SYNOPSIS

­#include <u.h>
­#include <libc.h>

int chdir(char ∗dirname)

DESCRIPTION

­Chdir changes the working directory of the invoking process to dirname. The working directory is the starting point for evaluating file names that do not begin with ­/ or #, as explained in intro(2). When Plan 9 boots, the initial process has ­/ for its working directory. 

SOURCE

­/sys/src/libc/9syscall

SEE ALSO

intro(2)

DIAGNOSTICS

Sets errstr.

Plan 9  —  December 11, 1999

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