Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ chdir(2) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chroot(2)

chdir(2)

csh(1)

ksh(1)

sh(1)




chdir(2) chdir(2)
NAME chdir - changes the working directory SYNOPSIS int chdir(path) char *path; DESCRIPTION chdir causes the named directory to become the current working directory, the starting point for path searches for pathnames not beginning with /. path points to the pathname of a directory. STATUS MESSAGES AND VALUES Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. The chdir command will fail and the current working directory will be unchanged if one or more of the following is true: EPERM A pathname contains a character with the high-order bit set. ENAMETOOLONG A component of a pathname exceeded NAME_MAX characters, or an entire pathname exceeded PATH_MAX. ELOOP Too many symbolic links were encountered in translating a pathname. ENOTDIR A component of the pathname is not a directory. ENOENT The named directory does not exist. EACCES Search permission is denied for any component of the pathname. EFAULT path points outside the allocated address space of the process. SEE ALSO chroot(2) January 1992 1



chdir(2) chdir(2)
csh(1), ksh(1), sh(1) in A/UX Command Reference 2 January 1992

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