Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


chdir()                COHERENT System Call               chdir()




Change working directory

chdir(directory) char *directory;

The  working directory  (or current  directory) is  the directory
from which the search for a  file name begins if a path name does
not begin with `/'.  By convention, the working directory has the
name `.'.   chdir changes the working  directory to the directory
pointed  to by  directory.  This  change is  in effect  until the
program exits or calls chdir again.

***** See Also *****

cd, chmod(), chroot(), COHERENT system calls, directory

***** Diagnostics *****

chdir returns zero if successful.   It returns -1 if an error oc-
curred, e.g., that directory  does not exist, is not a directory,
or is not searchable.




































COHERENT Lexicon                                           Page 1


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